Documentation
¶
Overview ¶
Package dockerclient implements the stack engine's Docker seam against a real engine, using the maintained moby/moby client. It is a separate module so the Docker SDK never enters the control plane's dependency graph — the server satisfies the same interface with the client it already has.
Index ¶
- type Engine
- func (e *Engine) Close() error
- func (e *Engine) CreateVolume(ctx context.Context, name string, labels map[string]string, sizeBytes int64) (docker.Volume, error)
- func (e *Engine) EnsureNetworkSpec(ctx context.Context, spec docker.NetworkSpec) (string, error)
- func (e *Engine) ImageExists(ctx context.Context, ref string) (bool, error)
- func (e *Engine) InspectContainer(ctx context.Context, id string) (docker.Container, error)
- func (e *Engine) InspectContainerConfig(ctx context.Context, id string) (docker.ContainerConfig, error)
- func (e *Engine) InspectVolume(ctx context.Context, name string) (docker.Volume, error)
- func (e *Engine) ListContainers(ctx context.Context, all bool) ([]docker.Container, error)
- func (e *Engine) Ping(ctx context.Context) error
- func (e *Engine) PullImage(ctx context.Context, ref string, auth *docker.RegistryAuth) error
- func (e *Engine) RemoveContainer(ctx context.Context, id string, force bool) error
- func (e *Engine) RemoveVolume(ctx context.Context, name string, force bool) error
- func (e *Engine) RestartContainer(ctx context.Context, id string, timeoutSeconds int) error
- func (e *Engine) RunContainer(ctx context.Context, spec docker.RunSpec) (string, error)
- func (e *Engine) RunOneShot(ctx context.Context, spec docker.RunSpec) (int, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine is a docker.Client backed by a real Docker engine. Beyond the seam it also exposes Ping and Close, which a caller owning the connection needs but the engine itself never calls.
func New ¶
New connects to the Docker engine using the standard environment (DOCKER_HOST etc.) with API version negotiation.
func (*Engine) CreateVolume ¶
func (*Engine) EnsureNetworkSpec ¶
func (*Engine) ImageExists ¶
func (*Engine) InspectContainer ¶
func (*Engine) InspectContainerConfig ¶
func (*Engine) InspectVolume ¶
func (*Engine) ListContainers ¶
func (*Engine) RemoveContainer ¶
func (*Engine) RemoveVolume ¶
func (*Engine) RestartContainer ¶
func (*Engine) RunContainer ¶
Click to show internal directories.
Click to hide internal directories.