Documentation ¶
Index ¶
- func ExtractImage(path, dst string, fileMap map[string]struct{}) error
- func GetManifest(acipath string) (*schema.ImageManifest, error)
- func IsMounted(path string) (bool, error)
- func MaybeUnmount(path string) error
- func ModifyManifest(fn func(*schema.ImageManifest) error, acipath string) error
- func PrintManifest(man *schema.ImageManifest, prettyPrint bool) error
- func RmAndMkdir(path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractImage ¶ added in v0.2.0
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 MaybeUnmount ¶ added in v0.3.0
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 PrintManifest ¶ added in v0.2.0
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.