Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewProvider = func(server string) *RegistryProvider { return &RegistryProvider{ server: server, cache: cache.New(time.Hour, time.Hour), } }
NewProvider new default provider
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry interface {
Authenticate(ctx context.Context, user, password string) (ok bool, err error)
Reg(ctx context.Context, dumpReq, dumpRes []byte) error
}
Registry registrador
type RegistryProvider ¶
type RegistryProvider struct {
// contains filtered or unexported fields
}
RegistryProvider struct to provide
func (*RegistryProvider) Get ¶
func (reg *RegistryProvider) Get(username string) Registry
Get get registry
type SideCarRegistry ¶
type SideCarRegistry struct {
// contains filtered or unexported fields
}
SideCarRegistry registry
func (*SideCarRegistry) Authenticate ¶
func (r *SideCarRegistry) Authenticate(ctx context.Context, user string, password string) (ok bool, err error)
Authenticate authenticate
Click to show internal directories.
Click to hide internal directories.