Documentation
¶
Overview ¶
Package registry defines the RegistryProvider interface and global registry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotImplemented = fmt.Errorf("not implemented")
ErrNotImplemented is returned by stub providers.
Functions ¶
func Register ¶
func Register(p RegistryProvider)
Register adds p to the global registry. Safe to call from init().
Types ¶
type Context ¶
Context carries request-scoped values for registry operations.
func NewContext ¶
NewContext creates a Context with an output writer and dry-run flag.
type ProviderConfig ¶
type ProviderConfig struct {
Registry config.CIRegistry
}
ProviderConfig carries the registry config for a single operation.
type RegistryProvider ¶
type RegistryProvider interface {
Name() string
Login(ctx Context, cfg ProviderConfig) error
Logout(ctx Context, cfg ProviderConfig) error
Push(ctx Context, cfg ProviderConfig, imageRef string) error
Prune(ctx Context, cfg ProviderConfig) error
}
RegistryProvider is implemented by each container registry backend.
func Get ¶
func Get(name string) (RegistryProvider, bool)
Get returns the provider registered under name.
Click to show internal directories.
Click to hide internal directories.