Documentation ¶
Index ¶
- Variables
- func BuildEmptyImage(dclient *dockerapi.Client) error
- func CleanImageID(id string) string
- func CopyFromContainer(dclient *dockerapi.Client, containerID, remote, local string, ...) error
- func CopyToVolume(dclient *dockerapi.Client, volumeName, source, dstRootDir, dstTargetDir string) error
- func CreateVolumeWithData(dclient *dockerapi.Client, source, name string, labels map[string]string) error
- func DeleteVolume(dclient *dockerapi.Client, name string) error
- func GenStateDirsTar(rootDir, stateDir string) (io.Reader, error)
- func HasEmptyImage(dclient *dockerapi.Client) error
- func HasVolume(dclient *dockerapi.Client, name string) error
- func ListImages(dclient *dockerapi.Client, imageNameFilter string) (map[string]BasicImageProps, error)
- func ListNetworks(dclient *dockerapi.Client, nameFilter string) ([]string, error)
- func ListVolumes(dclient *dockerapi.Client, nameFilter string) ([]string, error)
- func PrepareContainerDataArchive(fullPath, newName, removePrefix string, removeOrig bool) error
- func SaveImage(dclient *dockerapi.Client, imageRef, local string, extract, removeOrig bool) error
- type BasicImageProps
- type ImageIdentity
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadParam = errors.New("bad parameter") ErrNotFound = errors.New("not found") )
Functions ¶
func BuildEmptyImage ¶
func CleanImageID ¶
func CopyFromContainer ¶
func CopyToVolume ¶
func CreateVolumeWithData ¶
func HasEmptyImage ¶
func ListImages ¶
func ListNetworks ¶
Types ¶
type BasicImageProps ¶
type ImageIdentity ¶
type ImageIdentity struct { ID string ShortTags []string RepoTags []string ShortDigests []string RepoDigests []string }
func APIImagesToIdentity ¶
func APIImagesToIdentity(info *dockerapi.APIImages) *ImageIdentity
func ImageToIdentity ¶
func ImageToIdentity(info *dockerapi.Image) *ImageIdentity
Click to show internal directories.
Click to hide internal directories.