Documentation ¶
Index ¶
- func NewResolver(reg runtime.Registries) remotes.Resolver
- func PrepareAuth(auth *runtime.RegistryAuthConfig, host, expectedHost string) (string, string, error)
- func Pull(ctx context.Context, reg runtime.Registries, client *containerd.Client, ...) (img containerd.Image, err error)
- func RegistryEndpoints(reg runtime.Registries, host string) ([]string, error)
- func RegistryHosts(reg runtime.Registries) docker.RegistryHosts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResolver ¶ added in v0.4.0
func NewResolver(reg runtime.Registries) remotes.Resolver
NewResolver builds registry resolver based on Talos configuration.
func PrepareAuth ¶ added in v0.4.0
func PrepareAuth(auth *runtime.RegistryAuthConfig, host, expectedHost string) (string, string, error)
PrepareAuth returns authentication info in the format expected by containerd.
func Pull ¶
func Pull(ctx context.Context, reg runtime.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 runtime.Registries, host string) ([]string, error)
RegistryEndpoints returns registry endpoints per host using reg.
func RegistryHosts ¶ added in v0.4.0
func RegistryHosts(reg runtime.Registries) docker.RegistryHosts
RegistryHosts returns host configuration per registry.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.