util

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractImage added in v0.2.0

func ExtractImage(path, dst string, fileMap map[string]struct{}) error

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 IsMounted added in v0.3.0

func IsMounted(path string) (bool, error)

func MaybeUnmount added in v0.3.0

func MaybeUnmount(path string) error

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

func RmAndMkdir(path string) error

RmAndMkdir will remove anything at path if it exists, and then create a directory at path.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL