Documentation ¶
Index ¶
- Constants
- Variables
- func ContainerInspect(inspect InstanceInspect, dockerClient *client.Client) (types.ContainerJSON, error)
- func ContainerRemove(containerSpec v3.Container, dockerClient *client.Client) error
- func ContainerStart(containerSpec v3.Container, volumes []v3.Volume, networkKind string, ...) error
- func ContainerStop(containerSpec v3.Container, volumes []v3.Volume, client *client.Client, ...) error
- func DoInstancePull(params PullParams, progress *progress.Progress, dockerClient *client.Client, ...) (types.ImageInspect, error)
- func DoVolumeActivate(volume v3.Volume, client *engineCli.Client, progress *progress.Progress) error
- func ImagePull(progress *progress.Progress, client *client.Client, imageName string, ...) error
- func IsContainerRemoved(containerSpec v3.Container, dockerClient *client.Client) (bool, error)
- func IsContainerStarted(containerSpec v3.Container, client *client.Client) (bool, bool, error)
- func IsContainerStopped(containerSpec v3.Container, client *client.Client) (bool, error)
- func IsRancherVolume(volume v3.Volume) bool
- func IsVolumeActive(volume v3.Volume, dockerClient *engineCli.Client) (bool, error)
- func IsVolumeRemoved(volume v3.Volume, client *client.Client) (bool, error)
- func VolumeRemove(volume v3.Volume, dockerClient *client.Client, pro *progress.Progress) error
- func VolumeRemoveDocker(volume v3.Volume, dockerClient *client.Client, pro *progress.Progress) error
- func VolumeRemoveFlex(volume v3.Volume) error
- type Capability
- type InstanceInspect
- type InstancePull
- type PullParams
- type RegistryCredential
- type Response
- type Volume
Constants ¶
View Source
const ( ContainerNameLabel = "io.rancher.container.name" PullImageLabels = "io.rancher.container.pull_image" UUIDLabel = "io.rancher.container.uuid" AgentIDLabel = "io.rancher.container.agent_id" )
View Source
const ( Create = "Create" Remove = "Remove" Attach = "Attach" Mount = "Mount" Path = "Path" Unmount = "Unmount" Get = "Get" List = "List" Capabilities = "Capabilities" )
Variables ¶
View Source
var (
HTTPProxyList = []string{"http_proxy", "HTTP_PROXY", "https_proxy", "HTTPS_PROXY", "no_proxy", "NO_PROXY"}
)
Functions ¶
func ContainerInspect ¶
func ContainerInspect(inspect InstanceInspect, dockerClient *client.Client) (types.ContainerJSON, error)
func ContainerRemove ¶
func ContainerStart ¶
func ContainerStop ¶
func DoInstancePull ¶
func DoInstancePull(params PullParams, progress *progress.Progress, dockerClient *client.Client, credential v3.Credential) (types.ImageInspect, error)
func DoVolumeActivate ¶
func IsContainerRemoved ¶
func IsContainerStarted ¶
func IsContainerStopped ¶
func IsRancherVolume ¶
func IsVolumeActive ¶
func VolumeRemove ¶
func VolumeRemoveDocker ¶
func VolumeRemoveFlex ¶
Types ¶
type Capability ¶
type Capability struct {
Scope string
}
Capability represents the list of capabilities a volume driver can return
type InstanceInspect ¶
type InstancePull ¶
type RegistryCredential ¶
Click to show internal directories.
Click to hide internal directories.