package
3.8.7+incompatible
Repository: https://github.com/hpcng/singularity.git
Documentation: pkg.go.dev
# Functions
DownloadImage downloads a SIF image specified by an oci reference to a file using the included credentials.
ImageHash returns the appropriate hash for a provided image file e.g.
ImageSHA returns the sha256 digest of the SIF layer of the OCI manifest oci spec dictates only sha256 and sha512 are supported at time creation for this function sha512 is currently optional for implementations, this function will return an error when encountering such digests.
Pull will pull an oras image to the cache or direct to a temporary file if cache is disabled.
PullToFile will pull an oras image to the specified location, through the cache, or directly if cache is disabled.
UploadImage uploads the image specified by path and pushes it to the provided oci reference, it will use credentials if supplied.
# Constants
SifConfigMediaTypeV1 is the config descriptor mediaType Since we only ever send a null config this should not have the format extension appended: https://github.com/deislabs/oras/#pushing-artifacts-with-single-files If a null config is passed, the config extension must be removed.
SifDefaultTag is the tag to use when a tag is not specified.
SifLayerMediaTypeProto is the mediaType from prototyping and Singularity <3.7 which unfortunately includes a typo and doesn't have a version suffix See: https://github.com/hpcng/singularity/issues/4437.
SifLayerMediaTypeV1 is the mediaType for the "layer" which contains the actual SIF file.