Documentation
¶
Index ¶
- Constants
- func GetSize(byt int64) string
- type ContainerInfo
- type DClient
- func (d *DClient) CreateContainer(repository, imageName, version string, volument []string, ports map[int][]int, ...) (id string, err error)
- func (d *DClient) GetAllContainer() ([]ContainerInfo, error)
- func (d *DClient) GetAllImageList() ([]ImageInfo, error)
- func (d *DClient) ImageIsExists(image, version string) (bool, error)
- func (d *DClient) PullImage(repository, imageName, version string) (isDownload bool, err error)
- func (d *DClient) StartContainer(id string) error
- type ImageInfo
- type MountInfo
- type PortInfo
Constants ¶
View Source
const DefaultRepository = "docker.io/library"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContainerInfo ¶
type ContainerInfo struct {
ID string `json:"id"`
Names []string `json:"names"`
Image string `json:"image"`
ImageID string `json:"image_id"`
Command string `json:"command"`
SizeRw string `json:"size_rw,omitempty"`
SizeRootFs string `json:"size_rootfs,omitempty"`
Created string `json:"created"`
State string `json:"state"`
Status string `json:"status"`
Ports []PortInfo `json:"ports"`
Mounts []MountInfo `json:"mounts"`
}
type DClient ¶
type DClient struct {
// contains filtered or unexported fields
}
func (*DClient) CreateContainer ¶
func (*DClient) GetAllContainer ¶
func (d *DClient) GetAllContainer() ([]ContainerInfo, error)
func (*DClient) GetAllImageList ¶
func (*DClient) ImageIsExists ¶
func (*DClient) StartContainer ¶
Click to show internal directories.
Click to hide internal directories.