Versions in this module Expand all Collapse all v0 v0.2.0 Oct 3, 2026 v0.1.0 Oct 1, 2026 Changes in this version + type APIClient interface + ContainerCreate func(ctx context.Context, config *container.Config, ...) (container.CreateResponse, error) + ContainerExecAttach func(ctx context.Context, execID string, options container.ExecStartOptions) (types.HijackedResponse, error) + ContainerExecCreate func(ctx context.Context, container string, options container.ExecOptions) (common.IDResponse, error) + ContainerExecInspect func(ctx context.Context, execID string) (container.ExecInspect, error) + ContainerInspect func(ctx context.Context, containerID string) (container.InspectResponse, error) + ContainerList func(ctx context.Context, options container.ListOptions) ([]container.Summary, error) + ContainerRemove func(ctx context.Context, containerID string, options container.RemoveOptions) error + ContainerStart func(ctx context.Context, containerID string, options container.StartOptions) error + ContainerStop func(ctx context.Context, containerID string, options container.StopOptions) error + ImageInspect func(ctx context.Context, imageID string, ...) (image.InspectResponse, error) + ImagePull func(ctx context.Context, ref string, options image.PullOptions) (io.ReadCloser, error) + ImageRemove func(ctx context.Context, imageID string, options image.RemoveOptions) ([]image.DeleteResponse, error) + Ping func(ctx context.Context) (types.Ping, error) + type ActionResult struct + Changed bool + Message string + type Client struct + func New() (*Client, error) + func NewWithClient(client APIClient) *Client + func (d *Client) Create(ctx context.Context, params CreateParams) (*Container, error) + func (d *Client) Exec(ctx context.Context, id string, params ExecParams) (*ExecResult, error) + func (d *Client) ImageRemove(ctx context.Context, imageName string, force bool) (*ActionResult, error) + func (d *Client) Inspect(ctx context.Context, id string) (*ContainerDetail, error) + func (d *Client) List(ctx context.Context, params ListParams) ([]Container, error) + func (d *Client) Ping(ctx context.Context) error + func (d *Client) Pull(ctx context.Context, imageName string) (*PullResult, error) + func (d *Client) Remove(ctx context.Context, id string, force bool) (*ActionResult, error) + func (d *Client) Start(ctx context.Context, id string) (*ActionResult, error) + func (d *Client) Stop(ctx context.Context, id string, timeout *time.Duration) (*ActionResult, error) + type Container struct + Changed bool + Created time.Time + ID string + Image string + Name string + State string + type ContainerDetail struct + Health string + Mounts []VolumeMapping + NetworkSettings *NetworkSettings + Ports []PortMapping + type CreateParams struct + AutoStart bool + Command []string + DNS []string + Env map[string]string + Hostname string + Image string + Name string + Ports []PortMapping + Volumes []VolumeMapping + type ExecParams struct + Command []string + Env map[string]string + WorkingDir string + type ExecResult struct + Changed bool + ExitCode int + Stderr string + Stdout string + type ListParams struct + Limit int + State string + type NetworkSettings struct + Gateway string + IPAddress string + type PortMapping struct + Container int + Host int + type Provider interface + Create func(ctx context.Context, params CreateParams) (*Container, error) + Exec func(ctx context.Context, id string, params ExecParams) (*ExecResult, error) + ImageRemove func(ctx context.Context, image string, force bool) (*ActionResult, error) + Inspect func(ctx context.Context, id string) (*ContainerDetail, error) + List func(ctx context.Context, params ListParams) ([]Container, error) + Ping func(ctx context.Context) error + Pull func(ctx context.Context, image string) (*PullResult, error) + Remove func(ctx context.Context, id string, force bool) (*ActionResult, error) + Start func(ctx context.Context, id string) (*ActionResult, error) + Stop func(ctx context.Context, id string, timeout *time.Duration) (*ActionResult, error) + type PullResult struct + Changed bool + ImageID string + Size int64 + Tag string + type VolumeMapping struct + Container string + Host string