// installFakeAccessController installs an authorizer that allows access anywhere to anybody.
func installFakeAccessController(t *testing.T) {
	registryauth.Register(fakeAuthorizerName, registryauth.InitFunc(
		func(options map[string]interface{}) (registryauth.AccessController, error) {
			t.Log("instantiating fake access controller")
			return &fakeAccessController{t: t}, nil
		}))
}
Example #2
0
func init() {
	registryauth.Register(OpenShiftAuth, registryauth.InitFunc(newAccessController))
}
Example #3
0
// init handles registering the token auth backend.
func init() {
	auth.Register("token", auth.InitFunc(newAccessController))
}
Example #4
0
func init() {
	registryauth.Register("openshift", registryauth.InitFunc(newAccessController))
}
Example #5
0
func init() {
	auth.Register("htpasswd", auth.InitFunc(newAccessController))
}
Example #6
0
// init registers the silly auth backend.
func init() {
	auth.Register("silly", auth.InitFunc(newAccessController))
}
Example #7
0
// init handles registering the entitlement auth backend.
func init() {
	auth.Register("entitlement", auth.InitFunc(newAccessController))
}
Example #8
0
func init() {
	registryauth.Register("atomicenterprise", registryauth.InitFunc(newAccessController))
}
Example #9
0
func init() {
	auth.Register("flynn", auth.InitFunc(newAuth))
}