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