Documentation ¶
Overview ¶
Package oci provides transparent caching of oci-like refs
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertReference ¶
func ConvertReference(src types.ImageReference) (types.ImageReference, error)
ConvertReference converts a source reference into a cache.ImageReference to cache its blobs
func ParseImageName ¶
func ParseImageName(uri string) (types.ImageReference, error)
ParseImageName parses a uri (e.g. docker://ubuntu) into it's transport:reference combination and then returns the proper reference
Types ¶
type ImageReference ¶
type ImageReference struct { types.ImageReference // contains filtered or unexported fields }
ImageReference wraps containers/image ImageReference type
func (*ImageReference) NewImageSource ¶
func (t *ImageReference) NewImageSource(ctx context.Context, sys *types.SystemContext) (types.ImageSource, error)
NewImageSource wraps the cache's oci-layout ref to first download the real source image to the cache
Click to show internal directories.
Click to hide internal directories.