image

package
v0.6.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 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 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.

Jump to

Keyboard shortcuts

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