image

package
v0.7.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2020 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

func PrepareAuth(auth config.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 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL