Documentation
¶
Index ¶
- type DockerClient
- func (d *DockerClient) ContainerExists(containerId string) bool
- func (d *DockerClient) CopyFileToVolume(filePath string, targetPath string, volumeName string) error
- func (d *DockerClient) CreateVolume(volumeOptions volume.CreateOptions) error
- func (d *DockerClient) CreateVolumeFromFile(filePath string, targetPath string, volumeOptions volume.CreateOptions) error
- func (d *DockerClient) DeleteContainer(containerId string) error
- func (d *DockerClient) DeleteVolume(volumeId string) error
- func (d *DockerClient) GetContainerDetails(containerId string) (types.ContainerJSON, error)
- func (d *DockerClient) ListContainers() error
- func (d *DockerClient) ListImages() error
- func (d *DockerClient) ListServiceComponentsContainers() error
- func (d *DockerClient) RunContainer(name string, imagePullOptions image.PullOptions, ...) (string, error)
- func (d *DockerClient) StopContainer(containerId string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerClient ¶
func NewDockerClient ¶
func NewDockerClient() (*DockerClient, error)
func (*DockerClient) ContainerExists ¶
func (d *DockerClient) ContainerExists(containerId string) bool
func (*DockerClient) CopyFileToVolume ¶
func (d *DockerClient) CopyFileToVolume(filePath string, targetPath string, volumeName string) error
func (*DockerClient) CreateVolume ¶
func (d *DockerClient) CreateVolume(volumeOptions volume.CreateOptions) error
func (*DockerClient) CreateVolumeFromFile ¶
func (d *DockerClient) CreateVolumeFromFile(filePath string, targetPath string, volumeOptions volume.CreateOptions) error
func (*DockerClient) DeleteContainer ¶
func (d *DockerClient) DeleteContainer(containerId string) error
func (*DockerClient) DeleteVolume ¶
func (d *DockerClient) DeleteVolume(volumeId string) error
func (*DockerClient) GetContainerDetails ¶
func (d *DockerClient) GetContainerDetails(containerId string) (types.ContainerJSON, error)
func (*DockerClient) ListContainers ¶
func (d *DockerClient) ListContainers() error
func (*DockerClient) ListImages ¶
func (d *DockerClient) ListImages() error
func (*DockerClient) ListServiceComponentsContainers ¶
func (d *DockerClient) ListServiceComponentsContainers() error
func (*DockerClient) RunContainer ¶
func (d *DockerClient) RunContainer(name string, imagePullOptions image.PullOptions, containerConfig *container.Config, hostConfig *container.HostConfig) (string, error)
func (*DockerClient) StopContainer ¶
func (d *DockerClient) StopContainer(containerId string) error
Click to show internal directories.
Click to hide internal directories.