Documentation ¶
Index ¶
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, destroy func() error, 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.
type RegistryConfig ¶
type RegistryOption ¶
type RegistryOption func(config *RegistryConfig)
func PreserveCache ¶
func PreserveCache(preserve bool) RegistryOption
func SkipTLS ¶ added in v1.7.0
func SkipTLS(skip bool) RegistryOption
func WithCacheDir ¶
func WithCacheDir(dir string) RegistryOption
func WithLog ¶
func WithLog(log *logrus.Entry) RegistryOption
func WithResolverConfigDir ¶
func WithResolverConfigDir(path string) RegistryOption
Click to show internal directories.
Click to hide internal directories.