Documentation ¶
Index ¶
- Constants
- 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 string, source string, dstRootDir string, ...) error
- func CreateVolumeWithData(dclient *dockerapi.Client, source string, name string, ...) error
- func DeleteVolume(dclient *dockerapi.Client, name string) error
- func GenStateDirsTar(rootDir, stateDir string) (io.Reader, error)
- func GetContainerLogs(dclient *dockerapi.Client, containerID string, rawTerminal bool) (string, string, error)
- func HasEmptyImage(dclient *dockerapi.Client) error
- func HasVolume(dclient *dockerapi.Client, name string) error
- func ListContainers(dclient *dockerapi.Client, nameFilter string, all bool) (map[string]BasicContainerProps, error)
- func ListImages(dclient *dockerapi.Client, imageNameFilter string) (map[string]BasicImageProps, error)
- func ListNetworks(dclient *dockerapi.Client, nameFilter string) ([]string, error)
- func ListVolumeFiles(dclient *dockerapi.Client, name string) ([]string, error)
- func ListVolumes(dclient *dockerapi.Client, nameFilter string) ([]string, error)
- func LoadImage(dclient *dockerapi.Client, locaTarFilePath string, inputStream io.Reader, ...) error
- func PrepareContainerDataArchive(fullPath, newName, removePrefix string, removeOrig bool) error
- func SaveImage(dclient *dockerapi.Client, imageRef, local string, extract, removeOrig bool, ...) error
- func VolumePathExists(dclient *dockerapi.Client, volume string, pth string) (bool, error)
- type BasicContainerProps
- type BasicImageProps
- type ImageIdentity
- type VolumeInfo
Constants ¶
View Source
const ( SaveImageInactivityTimeout = 30 CopyFromContainerInactivityTimeout = 30 )
View Source
const ( CSCreated = "created" CSRestarting = "restarting" CSRunning = "running" CSRemoving = "removing" CSPaused = "paused" CSExited = "exited" CSDead = "dead" )
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 GetContainerLogs ¶
func HasEmptyImage ¶
func ListContainers ¶
func ListImages ¶
func ListNetworks ¶
func ListVolumeFiles ¶
Types ¶
type BasicContainerProps ¶
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
type VolumeInfo ¶
func GetVolumeInfo ¶
Click to show internal directories.
Click to hide internal directories.