util

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(bin string, args ...string) error

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 Exists

func Exists(path string) (bool, error)

Exists will return whether or not anything exists at path

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

func RmAndMkdir(path string) error

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

func UnTar

func UnTar(tarpath, dst string, fileMap map[string]struct{}) error

UnTar will extract the contents at the tar file at tarpath to the directory at dst. If fileMap is set, only files in it will be extracted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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