util

package
v0.0.0-...-6911d3d Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2015 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StoreDir string
)

Functions

func ACIEnvironmentToList

func ACIEnvironmentToList(env types.Environment) []string

aciEnvironmentToList converts a aci Environment object to a list of strings that libcontainer understands

func BuildACI

func BuildACI(root string, tgt string, overwrite bool, nocompress bool) (ret error)

BuildACI takes an input directory that conforms to the ACI specification, and outputs an optionally compressed ACI image.

func ExtractLayerInfo

func ExtractLayerInfo(store *store.Store, in string) (types.Dependency, error)

ExtractLayerInfo extracts the image name and ID from a path to an ACI

func ExtractLayers

func ExtractLayers(store *store.Store, in string) (types.Dependencies, error)

ExtractLayers extracts layers from an ACI and treats its rootfs as the last layer

func GetManifestFromImage

func GetManifestFromImage(in string) (*schema.ImageManifest, error)

getManifestfromImage extracts the image manifest of an ACI given by a path

func GetStore

func GetStore() (*store.Store, error)

func GetStoreWithPath

func GetStoreWithPath(path string) (*store.Store, error)

func GetTmpStore

func GetTmpStore() (*store.Store, error)

func Hash

func Hash(strings ...string) (string, error)

Hash takes an array of strings and returns their hash.

func OverwriteManifest

func OverwriteManifest(in io.ReadSeeker, out io.Writer, manifest *schema.ImageManifest) error

OverwriteManifest takes an ACI and outputs another with the original manifest overwritten by the given manifest.

func PrepareACIDir

func PrepareACIDir(manifest *schema.ImageManifest, rootfs string) (string, error)

PrepareACIDir takes a manifest and a path to rootfs and lay them out in a temp directory that conforms to the layout of ACI image.

func SupportsOverlay

func SupportsOverlay() bool

SupportsOverlay returns whether the system supports overlay filesystem

Types

This section is empty.

Jump to

Keyboard shortcuts

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