client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

internal/container/client/docker_client.go

Index

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 NewClient

func NewClient() (*DockerClient, error)

NewClient creates a new Docker client

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) List

func (dc *DockerClient) List(ctx context.Context) ([]model.Container, error)

List lists all containers

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

func (*DockerClient) Start

func (dc *DockerClient) Start(ctx context.Context, containerID string) error

Start starts a container by ID

func (*DockerClient) Stop

func (dc *DockerClient) Stop(ctx context.Context, containerID string) error

Stop stops a running container by ID

Jump to

Keyboard shortcuts

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