Documentation ¶
Index ¶
- func Exec(bin string, args ...string) error
- func Exists(path string) (bool, error)
- func GetManifest(acipath string) (*schema.ImageManifest, error)
- func ModifyManifest(fn func(*schema.ImageManifest), acipath string) error
- func RmAndMkdir(path string) error
- func UnTar(tarpath, dst string, fileMap map[string]struct{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exec ¶
Exec will execute the given binary with the given args, sending all messages from the binary's stdout and stderr to this program's stdout and stderr.
func GetManifest ¶
func GetManifest(acipath string) (*schema.ImageManifest, error)
GetManifest will read in the manifest from the untarred ACI stored at acipath
func ModifyManifest ¶
func ModifyManifest(fn func(*schema.ImageManifest), 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 RmAndMkdir ¶
RmAndMkdir will remove anything at path if it exists, and then create a directory at path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.