Documentation
¶
Overview ¶
Package dockerfake contains logic for mocking out Docker-related functionality.
Index ¶
- type MockClient
- func (MockClient) BuildCachePrune(_ context.Context, _ dockertypes.BuildCachePruneOptions) (*dockertypes.BuildCachePruneReport, error)
- func (MockClient) BuildCancel(_ context.Context, _ string) error
- func (MockClient) ContainerAttach(_ context.Context, _ string, _ dockertypes.ContainerAttachOptions) (dockertypes.HijackedResponse, error)
- func (MockClient) ContainerCommit(_ context.Context, _ string, _ dockertypes.ContainerCommitOptions) (dockertypes.IDResponse, error)
- func (m MockClient) ContainerCreate(ctx context.Context, config *containertypes.Config, ...) (containertypes.CreateResponse, error)
- func (MockClient) ContainerDiff(_ context.Context, _ string) ([]containertypes.ContainerChangeResponseItem, error)
- func (m MockClient) ContainerExecAttach(ctx context.Context, execID string, config dockertypes.ExecStartCheck) (dockertypes.HijackedResponse, error)
- func (m MockClient) ContainerExecCreate(ctx context.Context, name string, config dockertypes.ExecConfig) (dockertypes.IDResponse, error)
- func (m MockClient) ContainerExecInspect(ctx context.Context, id string) (dockertypes.ContainerExecInspect, error)
- func (MockClient) ContainerExecResize(_ context.Context, _ string, _ dockertypes.ResizeOptions) error
- func (m MockClient) ContainerExecStart(ctx context.Context, execID string, config dockertypes.ExecStartCheck) error
- func (MockClient) ContainerExport(_ context.Context, _ string) (io.ReadCloser, error)
- func (m MockClient) ContainerInspect(ctx context.Context, name string) (dockertypes.ContainerJSON, error)
- func (MockClient) ContainerInspectWithRaw(_ context.Context, _ string, _ bool) (dockertypes.ContainerJSON, []byte, error)
- func (MockClient) ContainerKill(_ context.Context, _ string, _ string) error
- func (MockClient) ContainerList(_ context.Context, _ dockertypes.ContainerListOptions) ([]dockertypes.Container, error)
- func (MockClient) ContainerLogs(_ context.Context, _ string, _ dockertypes.ContainerLogsOptions) (io.ReadCloser, error)
- func (MockClient) ContainerPause(_ context.Context, _ string) error
- func (m MockClient) ContainerRemove(ctx context.Context, name string, options dockertypes.ContainerRemoveOptions) error
- func (MockClient) ContainerRename(_ context.Context, _ string, _ string) error
- func (MockClient) ContainerResize(_ context.Context, _ string, _ dockertypes.ResizeOptions) error
- func (MockClient) ContainerRestart(_ context.Context, _ string, _ containertypes.StopOptions) error
- func (m MockClient) ContainerStart(ctx context.Context, name string, options dockertypes.ContainerStartOptions) error
- func (MockClient) ContainerStatPath(_ context.Context, _ string, _ string) (dockertypes.ContainerPathStat, error)
- func (MockClient) ContainerStats(_ context.Context, _ string, _ bool) (dockertypes.ContainerStats, error)
- func (MockClient) ContainerStatsOneShot(_ context.Context, _ string) (dockertypes.ContainerStats, error)
- func (MockClient) ContainerStop(_ context.Context, _ string, _ containertypes.StopOptions) error
- func (MockClient) ContainerTop(_ context.Context, _ string, _ []string) (containertypes.ContainerTopOKBody, error)
- func (MockClient) ContainerUnpause(_ context.Context, _ string) error
- func (MockClient) ContainerUpdate(_ context.Context, _ string, _ containertypes.UpdateConfig) (containertypes.ContainerUpdateOKBody, error)
- func (MockClient) ContainerWait(_ context.Context, _ string, _ containertypes.WaitCondition) (<-chan containertypes.WaitResponse, <-chan error)
- func (MockClient) ContainersPrune(_ context.Context, _ filters.Args) (dockertypes.ContainersPruneReport, error)
- func (MockClient) CopyFromContainer(_ context.Context, _ string, _ string) (io.ReadCloser, dockertypes.ContainerPathStat, error)
- func (MockClient) CopyToContainer(_ context.Context, _ string, _ string, _ io.Reader, ...) error
- func (MockClient) DiskUsage(_ context.Context, _ dockertypes.DiskUsageOptions) (dockertypes.DiskUsage, error)
- func (MockClient) Events(_ context.Context, _ dockertypes.EventsOptions) (<-chan events.Message, <-chan error)
- func (MockClient) ImageBuild(_ context.Context, _ io.Reader, _ dockertypes.ImageBuildOptions) (dockertypes.ImageBuildResponse, error)
- func (MockClient) ImageCreate(_ context.Context, _ string, _ dockertypes.ImageCreateOptions) (io.ReadCloser, error)
- func (MockClient) ImageHistory(_ context.Context, _ string) ([]image.HistoryResponseItem, error)
- func (MockClient) ImageImport(_ context.Context, _ dockertypes.ImageImportSource, _ string, ...) (io.ReadCloser, error)
- func (MockClient) ImageInspectWithRaw(_ context.Context, _ string) (dockertypes.ImageInspect, []byte, error)
- func (MockClient) ImageList(_ context.Context, _ dockertypes.ImageListOptions) ([]dockertypes.ImageSummary, error)
- func (MockClient) ImageLoad(_ context.Context, _ io.Reader, _ bool) (dockertypes.ImageLoadResponse, error)
- func (m MockClient) ImagePull(ctx context.Context, ref string, options dockertypes.ImagePullOptions) (io.ReadCloser, error)
- func (MockClient) ImagePush(_ context.Context, _ string, _ dockertypes.ImagePushOptions) (io.ReadCloser, error)
- func (MockClient) ImageRemove(_ context.Context, _ string, _ dockertypes.ImageRemoveOptions) ([]dockertypes.ImageDeleteResponseItem, error)
- func (MockClient) ImageSave(_ context.Context, _ []string) (io.ReadCloser, error)
- func (MockClient) ImageSearch(_ context.Context, _ string, _ dockertypes.ImageSearchOptions) ([]registry.SearchResult, error)
- func (MockClient) ImageTag(_ context.Context, _ string, _ string) error
- func (m MockClient) ImagesPrune(ctx context.Context, pruneFilter filters.Args) (dockertypes.ImagesPruneReport, error)
- func (MockClient) Info(_ context.Context) (dockertypes.Info, error)
- func (m MockClient) Ping(ctx context.Context) (dockertypes.Ping, error)
- func (MockClient) RegistryLogin(_ context.Context, _ dockertypes.AuthConfig) (registry.AuthenticateOKBody, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct { ImagePullFn func(_ context.Context, ref string, options dockertypes.ImagePullOptions) (io.ReadCloser, error) ContainerCreateFn func(_ context.Context, config *containertypes.Config, hostConfig *containertypes.HostConfig, networkingConfig *networktypes.NetworkingConfig, _ *specs.Platform, containerName string) (containertypes.CreateResponse, error) ImagePruneFn func(_ context.Context, pruneFilter filters.Args) (dockertypes.ImagesPruneReport, error) ContainerStartFn func(_ context.Context, container string, options dockertypes.ContainerStartOptions) error ContainerExecAttachFn func(_ context.Context, execID string, config dockertypes.ExecStartCheck) (dockertypes.HijackedResponse, error) ContainerExecCreateFn func(_ context.Context, container string, config dockertypes.ExecConfig) (dockertypes.IDResponse, error) ContainerExecStartFn func(_ context.Context, execID string, config dockertypes.ExecStartCheck) error ContainerExecInspectFn func(_ context.Context, execID string) (dockertypes.ContainerExecInspect, error) ContainerInspectFn func(_ context.Context, container string) (dockertypes.ContainerJSON, error) ContainerRemoveFn func(_ context.Context, container string, options dockertypes.ContainerRemoveOptions) error PingFn func(_ context.Context) (dockertypes.Ping, error) }
MockClient provides overrides for functions that are called in envbox.
func (MockClient) BuildCachePrune ¶
func (MockClient) BuildCachePrune(_ context.Context, _ dockertypes.BuildCachePruneOptions) (*dockertypes.BuildCachePruneReport, error)
func (MockClient) BuildCancel ¶
func (MockClient) BuildCancel(_ context.Context, _ string) error
func (MockClient) ContainerAttach ¶
func (MockClient) ContainerAttach(_ context.Context, _ string, _ dockertypes.ContainerAttachOptions) (dockertypes.HijackedResponse, error)
func (MockClient) ContainerCommit ¶
func (MockClient) ContainerCommit(_ context.Context, _ string, _ dockertypes.ContainerCommitOptions) (dockertypes.IDResponse, error)
func (MockClient) ContainerCreate ¶
func (m MockClient) ContainerCreate(ctx context.Context, config *containertypes.Config, hostConfig *containertypes.HostConfig, networkingConfig *networktypes.NetworkingConfig, pspecs *specs.Platform, containerName string) (containertypes.CreateResponse, error)
func (MockClient) ContainerDiff ¶
func (MockClient) ContainerDiff(_ context.Context, _ string) ([]containertypes.ContainerChangeResponseItem, error)
func (MockClient) ContainerExecAttach ¶
func (m MockClient) ContainerExecAttach(ctx context.Context, execID string, config dockertypes.ExecStartCheck) (dockertypes.HijackedResponse, error)
func (MockClient) ContainerExecCreate ¶
func (m MockClient) ContainerExecCreate(ctx context.Context, name string, config dockertypes.ExecConfig) (dockertypes.IDResponse, error)
func (MockClient) ContainerExecInspect ¶
func (m MockClient) ContainerExecInspect(ctx context.Context, id string) (dockertypes.ContainerExecInspect, error)
func (MockClient) ContainerExecResize ¶
func (MockClient) ContainerExecResize(_ context.Context, _ string, _ dockertypes.ResizeOptions) error
func (MockClient) ContainerExecStart ¶
func (m MockClient) ContainerExecStart(ctx context.Context, execID string, config dockertypes.ExecStartCheck) error
func (MockClient) ContainerExport ¶
func (MockClient) ContainerExport(_ context.Context, _ string) (io.ReadCloser, error)
func (MockClient) ContainerInspect ¶
func (m MockClient) ContainerInspect(ctx context.Context, name string) (dockertypes.ContainerJSON, error)
func (MockClient) ContainerInspectWithRaw ¶
func (MockClient) ContainerInspectWithRaw(_ context.Context, _ string, _ bool) (dockertypes.ContainerJSON, []byte, error)
func (MockClient) ContainerKill ¶
func (MockClient) ContainerList ¶
func (MockClient) ContainerList(_ context.Context, _ dockertypes.ContainerListOptions) ([]dockertypes.Container, error)
func (MockClient) ContainerLogs ¶
func (MockClient) ContainerLogs(_ context.Context, _ string, _ dockertypes.ContainerLogsOptions) (io.ReadCloser, error)
func (MockClient) ContainerPause ¶
func (MockClient) ContainerPause(_ context.Context, _ string) error
func (MockClient) ContainerRemove ¶
func (m MockClient) ContainerRemove(ctx context.Context, name string, options dockertypes.ContainerRemoveOptions) error
func (MockClient) ContainerRename ¶
func (MockClient) ContainerResize ¶
func (MockClient) ContainerResize(_ context.Context, _ string, _ dockertypes.ResizeOptions) error
func (MockClient) ContainerRestart ¶
func (MockClient) ContainerRestart(_ context.Context, _ string, _ containertypes.StopOptions) error
func (MockClient) ContainerStart ¶
func (m MockClient) ContainerStart(ctx context.Context, name string, options dockertypes.ContainerStartOptions) error
func (MockClient) ContainerStatPath ¶
func (MockClient) ContainerStatPath(_ context.Context, _ string, _ string) (dockertypes.ContainerPathStat, error)
func (MockClient) ContainerStats ¶
func (MockClient) ContainerStats(_ context.Context, _ string, _ bool) (dockertypes.ContainerStats, error)
func (MockClient) ContainerStatsOneShot ¶
func (MockClient) ContainerStatsOneShot(_ context.Context, _ string) (dockertypes.ContainerStats, error)
func (MockClient) ContainerStop ¶
func (MockClient) ContainerStop(_ context.Context, _ string, _ containertypes.StopOptions) error
func (MockClient) ContainerTop ¶
func (MockClient) ContainerTop(_ context.Context, _ string, _ []string) (containertypes.ContainerTopOKBody, error)
func (MockClient) ContainerUnpause ¶
func (MockClient) ContainerUnpause(_ context.Context, _ string) error
func (MockClient) ContainerUpdate ¶
func (MockClient) ContainerUpdate(_ context.Context, _ string, _ containertypes.UpdateConfig) (containertypes.ContainerUpdateOKBody, error)
func (MockClient) ContainerWait ¶
func (MockClient) ContainerWait(_ context.Context, _ string, _ containertypes.WaitCondition) (<-chan containertypes.WaitResponse, <-chan error)
func (MockClient) ContainersPrune ¶
func (MockClient) ContainersPrune(_ context.Context, _ filters.Args) (dockertypes.ContainersPruneReport, error)
func (MockClient) CopyFromContainer ¶
func (MockClient) CopyFromContainer(_ context.Context, _ string, _ string) (io.ReadCloser, dockertypes.ContainerPathStat, error)
func (MockClient) CopyToContainer ¶
func (MockClient) CopyToContainer(_ context.Context, _ string, _ string, _ io.Reader, _ dockertypes.CopyToContainerOptions) error
func (MockClient) DiskUsage ¶
func (MockClient) DiskUsage(_ context.Context, _ dockertypes.DiskUsageOptions) (dockertypes.DiskUsage, error)
func (MockClient) Events ¶
func (MockClient) Events(_ context.Context, _ dockertypes.EventsOptions) (<-chan events.Message, <-chan error)
func (MockClient) ImageBuild ¶
func (MockClient) ImageBuild(_ context.Context, _ io.Reader, _ dockertypes.ImageBuildOptions) (dockertypes.ImageBuildResponse, error)
func (MockClient) ImageCreate ¶
func (MockClient) ImageCreate(_ context.Context, _ string, _ dockertypes.ImageCreateOptions) (io.ReadCloser, error)
func (MockClient) ImageHistory ¶
func (MockClient) ImageHistory(_ context.Context, _ string) ([]image.HistoryResponseItem, error)
func (MockClient) ImageImport ¶
func (MockClient) ImageImport(_ context.Context, _ dockertypes.ImageImportSource, _ string, _ dockertypes.ImageImportOptions) (io.ReadCloser, error)
func (MockClient) ImageInspectWithRaw ¶
func (MockClient) ImageInspectWithRaw(_ context.Context, _ string) (dockertypes.ImageInspect, []byte, error)
func (MockClient) ImageList ¶
func (MockClient) ImageList(_ context.Context, _ dockertypes.ImageListOptions) ([]dockertypes.ImageSummary, error)
func (MockClient) ImageLoad ¶
func (MockClient) ImageLoad(_ context.Context, _ io.Reader, _ bool) (dockertypes.ImageLoadResponse, error)
func (MockClient) ImagePull ¶
func (m MockClient) ImagePull(ctx context.Context, ref string, options dockertypes.ImagePullOptions) (io.ReadCloser, error)
func (MockClient) ImagePush ¶
func (MockClient) ImagePush(_ context.Context, _ string, _ dockertypes.ImagePushOptions) (io.ReadCloser, error)
func (MockClient) ImageRemove ¶
func (MockClient) ImageRemove(_ context.Context, _ string, _ dockertypes.ImageRemoveOptions) ([]dockertypes.ImageDeleteResponseItem, error)
func (MockClient) ImageSave ¶
func (MockClient) ImageSave(_ context.Context, _ []string) (io.ReadCloser, error)
func (MockClient) ImageSearch ¶
func (MockClient) ImageSearch(_ context.Context, _ string, _ dockertypes.ImageSearchOptions) ([]registry.SearchResult, error)
func (MockClient) ImagesPrune ¶
func (m MockClient) ImagesPrune(ctx context.Context, pruneFilter filters.Args) (dockertypes.ImagesPruneReport, error)
func (MockClient) Info ¶
func (MockClient) Info(_ context.Context) (dockertypes.Info, error)
func (MockClient) Ping ¶
func (m MockClient) Ping(ctx context.Context) (dockertypes.Ping, error)
func (MockClient) RegistryLogin ¶
func (MockClient) RegistryLogin(_ context.Context, _ dockertypes.AuthConfig) (registry.AuthenticateOKBody, error)
Click to show internal directories.
Click to hide internal directories.