Documentation ¶
Index ¶
- type Docker
- func (d Docker) ExtractFileSystem(imageTarPath string, outputTarPath string, imageName string) error
- func (d Docker) ExtractFileSystemContainer(containerId string, namespace string, outputTarPath string) error
- func (d Docker) ExtractImage(imageID, imageName, path string) error
- func (d Docker) GetFileSystemPathsForContainer(containerId string, namespace string) ([]byte, error)
- func (d Docker) GetImageID(imageName string) ([]byte, error)
- func (d Docker) GetSocket() string
- func (d Docker) Save(imageName, outputParam string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
func (Docker) ExtractFileSystem ¶
func (d Docker) ExtractFileSystem(imageTarPath string, outputTarPath string, imageName string) error
ExtractFileSystem Extract the file system from tar of an image by creating a temporary dormant container instance
func (Docker) ExtractFileSystemContainer ¶
func (d Docker) ExtractFileSystemContainer(containerId string, namespace string, outputTarPath string) error
ExtractFileSystemContainer Extract the file system of an existing container to tar
func (Docker) ExtractImage ¶
ExtractImage creates the tarball out of image and extracts it
func (Docker) GetFileSystemPathsForContainer ¶
func (d Docker) GetFileSystemPathsForContainer(containerId string, namespace string) ([]byte, error)
ExtractFileSystemContainer Extract the file system of an existing container to tar
func (Docker) GetImageID ¶
GetImageID returns the image id
Click to show internal directories.
Click to hide internal directories.