imagegetter

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PullAlways  = "always"
	PullMissing = "missing"
	PullNever   = "never"
)

Variables

This section is empty.

Functions

func Load

func Load(ctx context.Context, stdout io.Writer, transferrer transfer.Transferrer, tarR io.Reader, plats []ocispec.Platform, foreknownRef string) error

func Pull

func Pull(ctx context.Context, stdout io.Writer, transferrer transfer.Transferrer, credHelper registry.CredentialHelper, ref string, plats []ocispec.Platform) error

Types

type ImageGetter

type ImageGetter struct {
	// contains filtered or unexported fields
}

func New

func New(progressWriter io.Writer, backend backend.Backend) (*ImageGetter, error)

func (*ImageGetter) Get

func (g *ImageGetter) Get(ctx context.Context, rawRef string, plats []ocispec.Platform, pullMode PullMode) (*images.Image, error)

type PullMode

type PullMode string

Jump to

Keyboard shortcuts

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