// 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
		}))
}
示例#2
0
func init() {
	registryauth.Register(OpenShiftAuth, registryauth.InitFunc(newAccessController))
}
示例#3
0
// init handles registering the token auth backend.
func init() {
	auth.Register("token", auth.InitFunc(newAccessController))
}
示例#4
0
func init() {
	registryauth.Register("openshift", registryauth.InitFunc(newAccessController))
}
示例#5
0
文件: access.go 项目: useidel/notary
func init() {
	auth.Register("htpasswd", auth.InitFunc(newAccessController))
}
示例#6
0
文件: access.go 项目: useidel/notary
// init registers the silly auth backend.
func init() {
	auth.Register("silly", auth.InitFunc(newAccessController))
}
示例#7
0
// init handles registering the entitlement auth backend.
func init() {
	auth.Register("entitlement", auth.InitFunc(newAccessController))
}
示例#8
0
func init() {
	registryauth.Register("atomicenterprise", registryauth.InitFunc(newAccessController))
}
示例#9
0
文件: auth.go 项目: ably-forks/flynn
func init() {
	auth.Register("flynn", auth.InitFunc(newAuth))
}