docker

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: BSD-3-Clause Imports: 7 Imported by: 4

Documentation

Index

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 New

func New(endpoint string) *Docker

New instantiates a new Docker runtime object

func (Docker) ExtractFileSystem added in v0.3.0

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 added in v0.5.9

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

func (d Docker) ExtractImage(imageID, imageName, path string) error

ExtractImage creates the tarball out of image and extracts it

func (Docker) GetFileSystemPathsForContainer added in v0.8.0

func (d Docker) GetFileSystemPathsForContainer(containerId string, namespace string) ([]byte, error)

ExtractFileSystemContainer Extract the file system of an existing container to tar

func (Docker) GetImageID

func (d Docker) GetImageID(imageName string) ([]byte, error)

GetImageID returns the image id

func (Docker) GetSocket

func (d Docker) GetSocket() string

GetSocket is socket getter

func (Docker) Save

func (d Docker) Save(imageName, outputParam string) ([]byte, error)

Save just saves image using -o flag

Jump to

Keyboard shortcuts

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