Documentation ¶
Index ¶
- func ExtractImage(path, dst string, fileMap map[string]struct{}) error
- func GetManifest(acipath string) (*schema.ImageManifest, error)
- func HashBlob(blob []byte) string
- func IsMounted(path string) (bool, error)
- func MarshalHashAndWrite(ociPath string, data interface{}) (string, string, int, error)
- func MaybeUnmount(path string) error
- func ModifyManifest(fn func(*schema.ImageManifest) error, acipath string) error
- func OCIExtractLayers(layerIDs []string, imageLoc, blobsDest string) error
- func OCINewExpandedLayer(ociExpandedBlobsPath string) (string, error)
- func PathWalker(twriter *tar.Writer, tarSrcPath string) func(string, os.FileInfo, error) error
- func PrintManifest(man *schema.ImageManifest, prettyPrint bool) error
- func RmAndMkdir(path string) error
- func SplitOCILayerID(layerID string) (string, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractImage ¶
ExtractImage will extract the contents of the image at path to the directory at dst. If fileMap is set, only files in it will be extracted.
func GetManifest ¶
func GetManifest(acipath string) (*schema.ImageManifest, error)
GetManifest will read in the manifest from the untarred ACI stored at acipath
func MarshalHashAndWrite ¶
func MaybeUnmount ¶
func ModifyManifest ¶
func ModifyManifest(fn func(*schema.ImageManifest) error, acipath string) error
ModifyManifest will read in the manifest from the untarred ACI stored at acipath, run the fn function (which is intended to modify the manifest), and then write the resulting manifest back to the file it was read from.
func OCIExtractLayers ¶
func OCINewExpandedLayer ¶
func PathWalker ¶
func PrintManifest ¶
func PrintManifest(man *schema.ImageManifest, prettyPrint bool) error
PrintManifest will print the given manifest to stdout, optionally inserting whitespace to make it more human readable.
func RmAndMkdir ¶
RmAndMkdir will remove anything at path if it exists, and then create a directory at path.
Types ¶
This section is empty.