Documentation ¶
Index ¶
- Constants
- func Import(ctx context.Context, imagePath, indexName string) error
- func NewResolver(reg config.Registries) remotes.Resolver
- func PrepareAuth(auth config.RegistryAuthConfig, host, expectedHost string) (string, string, error)
- func Pull(ctx context.Context, reg config.Registries, client *containerd.Client, ...) (img containerd.Image, err error)
- func RegistryEndpoints(reg config.Registries, host string) ([]string, error)
- func RegistryHosts(reg config.Registries) docker.RegistryHosts
Constants ¶
View Source
const ( PullTimeout = 20 * time.Minute PullRetryInterval = 5 * time.Second )
Image pull retry settings.
View Source
const ( ImportTimeout = 5 * time.Minute ImportRetryInterval = 5 * time.Second ImportRetryJitter = time.Second )
Image import retry settings.
Variables ¶
This section is empty.
Functions ¶
func Import ¶ added in v0.7.0
Import is a convenience function that wraps containerd image import with retries.
func NewResolver ¶ added in v0.4.0
func NewResolver(reg config.Registries) remotes.Resolver
NewResolver builds registry resolver based on Talos configuration.
func PrepareAuth ¶ added in v0.4.0
PrepareAuth returns authentication info in the format expected by containerd.
func Pull ¶
func Pull(ctx context.Context, reg config.Registries, client *containerd.Client, ref string) (img containerd.Image, err error)
Pull is a convenience function that wraps the containerd image pull func with retry functionality.
func RegistryEndpoints ¶ added in v0.4.0
func RegistryEndpoints(reg config.Registries, host string) ([]string, error)
RegistryEndpoints returns registry endpoints per host using reg.
func RegistryHosts ¶ added in v0.4.0
func RegistryHosts(reg config.Registries) docker.RegistryHosts
RegistryHosts returns host configuration per registry.
nolint: gocyclo
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.