Documentation ¶
Index ¶
- type Interface
- type Mock
- func (m *Mock) ContainerCreate(ctx context.Context, config *container.Config, ...) (container.ContainerCreateCreatedBody, error)
- func (m *Mock) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)
- func (m *Mock) ContainerLogs(ctx context.Context, container string, options types.ContainerLogsOptions) (io.ReadCloser, error)
- func (m *Mock) ContainerRemove(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error
- func (m *Mock) ContainerStart(ctx context.Context, containerID string, options types.ContainerStartOptions) error
- func (m *Mock) ContainerWait(ctx context.Context, containerID string) (int64, error)
- func (m *Mock) ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error)
- func (m *Mock) ImagePull(ctx context.Context, ref string, options types.ImagePullOptions) (io.ReadCloser, error)
- func (m *Mock) Ping(ctx context.Context) (types.Ping, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, containerName string) (container.ContainerCreateCreatedBody, error) ContainerStart(ctx context.Context, containerID string, options types.ContainerStartOptions) error ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error) ContainerWait(ctx context.Context, containerID string) (int64, error) ContainerLogs(ctx context.Context, container string, options types.ContainerLogsOptions) (io.ReadCloser, error) ContainerRemove(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error) ImagePull(ctx context.Context, ref string, options types.ImagePullOptions) (io.ReadCloser, error) Ping(ctx context.Context) (types.Ping, error) }
func NewDockerClient ¶
func NewDockerClient() Interface
type Mock ¶
func (*Mock) ContainerCreate ¶
func (m *Mock) ContainerCreate( ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, containerName string) (container.ContainerCreateCreatedBody, error)
func (*Mock) ContainerList ¶
func (*Mock) ContainerLogs ¶
func (m *Mock) ContainerLogs(ctx context.Context, container string, options types.ContainerLogsOptions) (io.ReadCloser, error)
func (*Mock) ContainerRemove ¶
func (*Mock) ContainerStart ¶
func (*Mock) ContainerWait ¶
func (*Mock) ImageList ¶
func (m *Mock) ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error)
Click to show internal directories.
Click to hide internal directories.