registry

package
v0.0.0-...-ac6e8c9 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidPullPolicy = errors.New("invalid pull policy")

Functions

func Pull

func Pull(img *image.Image, opts PullOpts) error

Pull downloads and unpacks an image from a registry.

func PullFromRegistry

func PullFromRegistry(img *image.Image, pullOpts PullOpts, opts registryOpts) error

Types

type PullOpts

type PullOpts struct {
	Policy PullPolicy
	Output io.Writer
}

PullOpts contains options for the pull operation.

type PullPolicy

type PullPolicy string
const (
	// PullAlways means that we always pull the image.
	PullAlways PullPolicy = "always"
	// PullMissing means that we pull the image if it does not already exist.
	PullMissing PullPolicy = "missing"
	// PullNever means that we never pull the image.
	PullNever PullPolicy = "never"
)

func ParsePullPolicy

func ParsePullPolicy(value string) (PullPolicy, error)

Jump to

Keyboard shortcuts

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