layout

package
v5.30.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 34 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Transport is an ImageTransport for OCI directories.
	Transport = ociTransport{}

	// ErrMoreThanOneImage is an error returned when the manifest includes
	// more than one image and the user should choose which one to use.
	ErrMoreThanOneImage = errors.New("more than one image in oci, choose an image")
)

Functions

func LoadManifestDescriptor

func LoadManifestDescriptor(imgRef types.ImageReference) (imgspecv1.Descriptor, error)

LoadManifestDescriptor loads the manifest descriptor to be used to retrieve the image name when pulling an image

func NewReference

func NewReference(dir, image string) (types.ImageReference, error)

NewReference returns an OCI reference for a directory and a image.

We do not expose an API supplying the resolvedDir; we could, but recomputing it is generally cheap enough that we prefer being confident about the properties of resolvedDir.

func ParseReference

func ParseReference(reference string) (types.ImageReference, error)

ParseReference converts a string, which should not start with the ImageTransport.Name prefix, into an OCI ImageReference.

Types

type ImageNotFoundError added in v5.24.0

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

ImageNotFoundError is used when the OCI structure, in principle, exists and seems valid enough, but nothing matches the “image” part of the provided reference.

func (ImageNotFoundError) Error added in v5.24.0

func (e ImageNotFoundError) Error() string

Jump to

Keyboard shortcuts

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