Documentation ¶
Index ¶
- func NewResolver(client *http.Client, configDir string, plainHTTP bool, repo string) (remotes.Resolver, error)
- type Registry
- type RegistryConfig
- type RegistryOption
- func PreserveCache(preserve bool) RegistryOption
- func SkipTLSVerify(skip bool) RegistryOption
- func WithCacheDir(dir string) RegistryOption
- func WithLog(log *logrus.Entry) RegistryOption
- func WithPlainHTTP(insecure bool) RegistryOption
- func WithResolverConfigDir(path string) RegistryOption
- func WithRootCAs(pool *x509.CertPool) RegistryOption
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Registry ¶
type Registry struct { Store // contains filtered or unexported fields }
Registry enables manipulation of images via containerd modules.
func NewRegistry ¶
func NewRegistry(options ...RegistryOption) (registry *Registry, err error)
NewRegistry returns a new containerd Registry and a function to destroy it after use. The destroy function is safe to call more than once, but is a no-op after the first call.
func (*Registry) Destroy ¶
Destroy cleans up the on-disk boltdb file and other cache files, unless preserve cache is true
type RegistryConfig ¶
type RegistryOption ¶
type RegistryOption func(config *RegistryConfig)
func PreserveCache ¶
func PreserveCache(preserve bool) RegistryOption
func SkipTLSVerify ¶
func SkipTLSVerify(skip bool) RegistryOption
func WithCacheDir ¶
func WithCacheDir(dir string) RegistryOption
func WithLog ¶
func WithLog(log *logrus.Entry) RegistryOption
func WithPlainHTTP ¶
func WithPlainHTTP(insecure bool) RegistryOption
func WithResolverConfigDir ¶
func WithResolverConfigDir(path string) RegistryOption
func WithRootCAs ¶
func WithRootCAs(pool *x509.CertPool) RegistryOption
Click to show internal directories.
Click to hide internal directories.