Documentation ¶
Index ¶
- Variables
- func ACIEnvironmentToList(env types.Environment) []string
- func BuildACI(root string, tgt string, overwrite bool, nocompress bool) (ret error)
- func ExtractLayerInfo(store *store.Store, in string) (types.Dependency, error)
- func ExtractLayers(store *store.Store, in string) (types.Dependencies, error)
- func GetManifestFromImage(in string) (*schema.ImageManifest, error)
- func GetStore() (*store.Store, error)
- func GetStoreWithPath(path string) (*store.Store, error)
- func GetTmpStore() (*store.Store, error)
- func Hash(strings ...string) (string, error)
- func OverwriteManifest(in io.ReadSeeker, out io.Writer, manifest *schema.ImageManifest) error
- func PrepareACIDir(manifest *schema.ImageManifest, rootfs string) (string, error)
- func SupportsOverlay() bool
Constants ¶
This section is empty.
Variables ¶
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 ¶
BuildACI takes an input directory that conforms to the ACI specification, and outputs an optionally compressed ACI image.
func ExtractLayerInfo ¶
ExtractLayerInfo extracts the image name and ID from a path to an ACI
func ExtractLayers ¶
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 GetTmpStore ¶
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.