docker

package
v0.0.0-...-9babe8c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerClient

type DockerClient struct {
	Client *client.Client
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL