// 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 })) }
func init() { registryauth.Register(OpenShiftAuth, registryauth.InitFunc(newAccessController)) }
// init handles registering the token auth backend. func init() { auth.Register("token", auth.InitFunc(newAccessController)) }
func init() { registryauth.Register("openshift", registryauth.InitFunc(newAccessController)) }
func init() { auth.Register("htpasswd", auth.InitFunc(newAccessController)) }
// init registers the silly auth backend. func init() { auth.Register("silly", auth.InitFunc(newAccessController)) }
// init handles registering the entitlement auth backend. func init() { auth.Register("entitlement", auth.InitFunc(newAccessController)) }
func init() { registryauth.Register("atomicenterprise", registryauth.InitFunc(newAccessController)) }
func init() { auth.Register("flynn", auth.InitFunc(newAuth)) }