Documentation ¶
Index ¶
- Variables
- func LoadManifestDescriptor(imgRef types.ImageReference) (imgspecv1.Descriptor, error)
- func LoadManifestDescriptorWithContext(sys *types.SystemContext, imgRef types.ImageReference) (imgspecv1.Descriptor, error)
- func NewReference(file, image string) (types.ImageReference, error)
- func ParseReference(reference string) (types.ImageReference, error)
- type ArchiveFileNotFoundError
- type ImageNotFoundError
Constants ¶
This section is empty.
Variables ¶
var Transport = ociArchiveTransport{}
Transport is an ImageTransport for OCI archive it creates an oci-archive tar file by calling into the OCI transport tarring the directory created by oci and deleting the directory
Functions ¶
func LoadManifestDescriptor ¶
func LoadManifestDescriptor(imgRef types.ImageReference) (imgspecv1.Descriptor, error)
LoadManifestDescriptor loads the manifest Deprecated: use LoadManifestDescriptorWithContext instead
func LoadManifestDescriptorWithContext ¶ added in v5.1.0
func LoadManifestDescriptorWithContext(sys *types.SystemContext, imgRef types.ImageReference) (imgspecv1.Descriptor, error)
LoadManifestDescriptorWithContext loads the manifest
func NewReference ¶
func NewReference(file, image string) (types.ImageReference, error)
NewReference returns an OCI reference for a file and a image.
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 ArchiveFileNotFoundError ¶ added in v5.29.0
type ArchiveFileNotFoundError struct {
// contains filtered or unexported fields
}
ArchiveFileNotFoundError occurs when the archive file does not exist.
func (ArchiveFileNotFoundError) Error ¶ added in v5.29.0
func (e ArchiveFileNotFoundError) Error() string
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