execregistry

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandRunner

type CommandRunner interface {
	containertools.CommandRunner

	Unpack(image, src, dst string) error
}

CommandRunner provides some basic methods for manipulating images via an external container tool.

type Registry

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

Registry enables manipulation of images via exec podman/docker commands.

func NewRegistry

func NewRegistry(tool containertools.ContainerTool, logger *logrus.Entry, opts ...containertools.RunnerOption) (registry *Registry, err error)

NewRegistry instantiates and returns a new registry which manipulates images via exec podman/docker commands.

func (*Registry) Destroy

func (r *Registry) Destroy() error

Destroy is no-op for exec tools

func (*Registry) Labels

func (r *Registry) Labels(ctx context.Context, ref image.Reference) (map[string]string, error)

Labels gets the labels for an image reference.

func (*Registry) Pull

func (r *Registry) Pull(ctx context.Context, ref image.Reference) error

Pull fetches and stores an image by reference.

func (*Registry) Unpack

func (r *Registry) Unpack(ctx context.Context, ref image.Reference, dir string) error

Unpack writes the unpackaged content of an image to a directory. If the referenced image does not exist in the registry, an error is returned.

Jump to

Keyboard shortcuts

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