Documentation ¶
Index ¶
- Constants
- func DownloadAndUnpackImage(sourceImage, output string, opts *DownloadOpts) error
- func ExtractLayer(opts *ExtractOpts) error
- func NewDocker() (*docker.Client, error)
- func PullImage(client *docker.Client, image string) error
- func Squash(client *docker.Client, image string, toImage string) error
- func Unpack(client *docker.Client, image string, dirname string, fatal bool) error
- func Untar(in io.Reader, dest string, sameOwner bool) error
- type DownloadOpts
- type Export
- type ExportedImage
- type ExtractOpts
Constants ¶
View Source
const ROOTFS = "." + SEPARATOR + "rootfs_overlay"
ROOTFS is our temporary rootfs path
View Source
const SEPARATOR = string(filepath.Separator)
SEPARATOR contains system-specific separator
View Source
const TarCmd = "tar"
Variables ¶
This section is empty.
Functions ¶
func DownloadAndUnpackImage ¶
func DownloadAndUnpackImage(sourceImage, output string, opts *DownloadOpts) error
func ExtractLayer ¶
func ExtractLayer(opts *ExtractOpts) error
Types ¶
type DownloadOpts ¶
type Export ¶
type Export struct { Entries map[string]*ExportedImage Path string }
func CreateExport ¶
func (*Export) ExtractLayers ¶
type ExportedImage ¶
type ExportedImage struct { Path string JsonPath string VersionPath string LayerTarPath string LayerDirPath string }
func (*ExportedImage) CreateDirs ¶
func (e *ExportedImage) CreateDirs() error
func (*ExportedImage) ExtractLayerDir ¶
func (e *ExportedImage) ExtractLayerDir(unpackmode string) error
func (*ExportedImage) RemoveLayerDir ¶
func (e *ExportedImage) RemoveLayerDir() error
func (*ExportedImage) TarLayer ¶
func (e *ExportedImage) TarLayer() error
type ExtractOpts ¶
Click to show internal directories.
Click to hide internal directories.