Documentation
¶
Overview ¶
internal/container/client/docker_client.go
Index ¶
- type DockerClient
- func (dc *DockerClient) Create(ctx context.Context, config *model.ContainerConfig) (string, error)
- func (dc *DockerClient) Inspect(ctx context.Context, containerID string) (*model.ContainerInfo, error)
- func (dc *DockerClient) List(ctx context.Context) ([]model.Container, error)
- func (dc *DockerClient) ListContainer() ([]model.ContainerInfo, error)
- func (dc *DockerClient) Remove(ctx context.Context, containerID string) error
- func (dc *DockerClient) Start(ctx context.Context, containerID string) error
- func (dc *DockerClient) Stop(ctx context.Context, containerID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerClient ¶
type DockerClient struct {
// contains filtered or unexported fields
}
DockerClient is a client for interacting with the Docker daemon
func (*DockerClient) Create ¶
func (dc *DockerClient) Create(ctx context.Context, config *model.ContainerConfig) (string, error)
Create creates a new container
func (*DockerClient) Inspect ¶
func (dc *DockerClient) Inspect(ctx context.Context, containerID string) (*model.ContainerInfo, error)
Inspect returns detailed information about a container
func (*DockerClient) ListContainer ¶
func (dc *DockerClient) ListContainer() ([]model.ContainerInfo, error)
ListContainer is kept for backward compatibility Deprecated: Use List instead
func (*DockerClient) Remove ¶
func (dc *DockerClient) Remove(ctx context.Context, containerID string) error
Remove removes a container by ID
Click to show internal directories.
Click to hide internal directories.