Documentation ¶
Index ¶
- type AuthConfig
- type DockerClient
- func (d *DockerClient) CreateContainer(ctx context.Context, config *container.Config, ...) (container.CreateResponse, error)
- func (d *DockerClient) ExecuteContainerCommand(ctx context.Context, containerID string, command []string) (types.IDResponse, error)
- func (d *DockerClient) GetContainerLogs(ctx context.Context, containerID string) (io.ReadCloser, error)
- func (d *DockerClient) HealthCheck(ctx context.Context, containerID string) (types.ContainerState, error)
- func (d *DockerClient) ImageExists(ctx context.Context, imageName string) (bool, error)
- func (d *DockerClient) ListContainers(ctx context.Context) ([]types.Container, error)
- func (d *DockerClient) ListImages(ctx context.Context) ([]image.Summary, error)
- func (d *DockerClient) PullImageFromPrivateRegistry(ctx context.Context, fullImageName, username, password string) error
- func (d *DockerClient) RemoveContainer(ctx context.Context, containerID string, options container.RemoveOptions) error
- func (d *DockerClient) RemoveImage(ctx context.Context, imageName string) error
- func (d *DockerClient) RestartContainer(ctx context.Context, containerID string, timeout *int) error
- func (d *DockerClient) StartContainer(ctx context.Context, containerID string) error
- func (d *DockerClient) StopContainer(ctx context.Context, containerID string, timeout *int) error
- type PullOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type DockerClient ¶
type DockerClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient() (*DockerClient, error)
func (*DockerClient) CreateContainer ¶
func (d *DockerClient) CreateContainer(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, containerName string) (container.CreateResponse, error)
func (*DockerClient) ExecuteContainerCommand ¶
func (d *DockerClient) ExecuteContainerCommand(ctx context.Context, containerID string, command []string) (types.IDResponse, error)
func (*DockerClient) GetContainerLogs ¶
func (d *DockerClient) GetContainerLogs(ctx context.Context, containerID string) (io.ReadCloser, error)
func (*DockerClient) HealthCheck ¶
func (d *DockerClient) HealthCheck(ctx context.Context, containerID string) (types.ContainerState, error)
func (*DockerClient) ImageExists ¶
func (*DockerClient) ListContainers ¶
func (*DockerClient) ListImages ¶
func (*DockerClient) PullImageFromPrivateRegistry ¶
func (d *DockerClient) PullImageFromPrivateRegistry(ctx context.Context, fullImageName, username, password string) error
PullImageFromPrivateRegistry pulls an image from a private registry but not if the exact image exits locally
func (*DockerClient) RemoveContainer ¶
func (d *DockerClient) RemoveContainer(ctx context.Context, containerID string, options container.RemoveOptions) error
func (*DockerClient) RemoveImage ¶
func (d *DockerClient) RemoveImage(ctx context.Context, imageName string) error
func (*DockerClient) RestartContainer ¶
func (*DockerClient) StartContainer ¶
func (d *DockerClient) StartContainer(ctx context.Context, containerID string) error
func (*DockerClient) StopContainer ¶
type PullOptions ¶
type PullOptions struct {
RegistryAuth string
}
Click to show internal directories.
Click to hide internal directories.