Documentation ¶
Index ¶
Constants ¶
View Source
const SquashfsLayerMediaType types.MediaType = "application/vnd.sylabs.image.layer.v1.squashfs"
TODO - Replace when exported from SIF / oci-tools
Variables ¶
View Source
var ErrFailedSquashfsConversion = errors.New("could not convert layer to squashfs")
Functions ¶
func PullOCISIF ¶
func PullOCISIF(ctx context.Context, imgCache *cache.Handle, directTo, pullFrom string, opts PullOptions) (imagePath string, err error)
PullOCISIF will create an OCI-SIF image in the cache if directTo="", or a specific file if directTo is set.
func PushOCISIF ¶
func PushOCISIF(_ context.Context, sourceFile, destRef string, ociAuth *ocitypes.DockerAuthConfig) error
PushOCISIF pushes a single image from sourceFile to the OCI registry destRef.
FIXME: Use context for cancellation.
Types ¶
Click to show internal directories.
Click to hide internal directories.