Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Close() error ContainerAttach(ctx context.Context, container string, options container.AttachOptions) (types.HijackedResponse, error) ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, platform *ocispec.Platform, containerName string) (container.CreateResponse, error) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error) ContainerKill(ctx context.Context, containerID, signal string) error ContainerList(ctx context.Context, options container.ListOptions) ([]types.Container, error) ContainerPause(ctx context.Context, containerID string) error ContainerRemove(ctx context.Context, containerID string, options container.RemoveOptions) error ContainerRestart(ctx context.Context, containerID string, options container.StopOptions) error ContainerStart(ctx context.Context, containerID string, options container.StartOptions) error ContainerStop(ctx context.Context, containerID string, options container.StopOptions) error ContainerUnpause(ctx context.Context, containerID string) error ContainerWait(ctx context.Context, containerID string, condition container.WaitCondition) (<-chan container.WaitResponse, <-chan error) ContainerExecAttach(ctx context.Context, execID string, config container.ExecAttachOptions) (types.HijackedResponse, error) ContainerExecCreate(ctx context.Context, container string, config container.ExecOptions) (types.IDResponse, error) ContainerExecStart(ctx context.Context, execID string, config container.ExecStartOptions) error ContainerExecInspect(ctx context.Context, execID string) (container.ExecInspect, error) ImageBuild(ctx context.Context, buildContext io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error) ImageList(ctx context.Context, options image.ListOptions) ([]image.Summary, error) ImagePull(ctx context.Context, refStr string, options image.PullOptions) (io.ReadCloser, error) ImageRemove(ctx context.Context, imageID string, options image.RemoveOptions) ([]image.DeleteResponse, error) ImageTag(ctx context.Context, source, target string) error NetworkCreate(ctx context.Context, name string, options network.CreateOptions) (network.CreateResponse, error) NetworkInspect(ctx context.Context, networkID string, options network.InspectOptions) (network.Summary, error) NetworkList(ctx context.Context, options network.ListOptions) ([]network.Summary, error) NetworkRemove(ctx context.Context, networkID string) error ServerVersion(ctx context.Context) (types.Version, error) }
Client is a minimalist interface subset of the canonical Docker client's implementation, covering the methods used by morbyd (for production, as well as test). As Docker does only define the client struct type, we have to defined our interface here, implemented with the Docker client struct type. Using our interface type, we then use mockgen to generate a Docker client mock.
Click to show internal directories.
Click to hide internal directories.