Versions in this module Expand all Collapse all v0 v0.9.1 Jul 25, 2026 v0.9.0 Jul 25, 2026 Changes in this version + var ErrInProgress = errors.New("a deployment for this container is already in progress") + var ErrIncompatible = errors.New("image is incompatible with the running container") + var ErrNotRunning = errors.New("container is not running on any configured host") + var ErrUnavailable = errors.New("docker host unavailable") + func HTTPStatus(err error) int + func PublicError(err error) string + type Client interface + Host func() string + Inspect func(ctx context.Context, container string) (*docker.ContainerSpec, error) + ListRunningNames func(ctx context.Context) ([]string, error) + Pull func(ctx context.Context, image string) error + Remove func(ctx context.Context, container string) error + Rename func(ctx context.Context, oldName, newName string) error + Run func(ctx context.Context, spec *docker.ContainerSpec) (string, error) + Start func(ctx context.Context, container string) error + Stop func(ctx context.Context, container string) error + type HostResult struct + Err error + Host string + Index int + type Result struct + Container string + Hosts []HostResult + Image string + func (r Result) Err() error + func (r Result) HTTPStatus() int + func (r Result) Partial() bool + type Service struct + func NewService(logger *zap.Logger, clients ...Client) *Service + func (s *Service) Deploy(ctx context.Context, container, image string) (Result, error)