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, _ containertypes.AttachOptions) (dockertypes.HijackedResponse, error)
- func (MockClient) ContainerCommit(_ context.Context, _ string, _ containertypes.CommitOptions) (dockertypes.IDResponse, error)
- func (m MockClient) ContainerCreate(ctx context.Context, config *containertypes.Config, ...) (containertypes.CreateResponse, error)
- func (MockClient) ContainerDiff(_ context.Context, _ string) ([]containertypes.FilesystemChange, 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, _ containertypes.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, _ containertypes.ListOptions) ([]dockertypes.Container, error)
- func (MockClient) ContainerLogs(_ context.Context, _ string, _ containertypes.LogsOptions) (io.ReadCloser, error)
- func (MockClient) ContainerPause(_ context.Context, _ string) error
- func (m MockClient) ContainerRemove(ctx context.Context, name string, options containertypes.RemoveOptions) error
- func (MockClient) ContainerRename(_ context.Context, _ string, _ string) error
- func (MockClient) ContainerResize(_ context.Context, _ string, _ containertypes.ResizeOptions) error
- func (MockClient) ContainerRestart(_ context.Context, _ string, _ containertypes.StopOptions) error
- func (m MockClient) ContainerStart(ctx context.Context, name string, options containertypes.StartOptions) 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, _ image.CreateOptions) (io.ReadCloser, error)
- func (MockClient) ImageHistory(_ context.Context, _ string) ([]image.HistoryResponseItem, error)
- func (MockClient) ImageImport(_ context.Context, _ image.ImportSource, _ string, _ image.ImportOptions) (io.ReadCloser, error)
- func (MockClient) ImageInspectWithRaw(_ context.Context, _ string) (dockertypes.ImageInspect, []byte, error)
- func (MockClient) ImageList(_ context.Context, _ image.ListOptions) ([]image.Summary, error)
- func (MockClient) ImageLoad(_ context.Context, _ io.Reader, _ bool) (dockertypes.ImageLoadResponse, error)
- func (m MockClient) ImagePull(ctx context.Context, ref string, options image.PullOptions) (io.ReadCloser, error)
- func (MockClient) ImagePush(_ context.Context, _ string, _ image.PushOptions) (io.ReadCloser, error)
- func (MockClient) ImageRemove(_ context.Context, _ string, _ image.RemoveOptions) ([]image.DeleteResponse, 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) (system.Info, error)
- func (m MockClient) Ping(ctx context.Context) (dockertypes.Ping, error)
- func (MockClient) RegistryLogin(_ context.Context, _ registry.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 image.PullOptions) (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 containertypes.StartOptions) 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 containertypes.RemoveOptions) 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, _ containertypes.AttachOptions) (dockertypes.HijackedResponse, error)
func (MockClient) ContainerCommit ¶
func (MockClient) ContainerCommit(_ context.Context, _ string, _ containertypes.CommitOptions) (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.FilesystemChange, 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, _ containertypes.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, _ containertypes.ListOptions) ([]dockertypes.Container, error)
func (MockClient) ContainerLogs ¶
func (MockClient) ContainerLogs(_ context.Context, _ string, _ containertypes.LogsOptions) (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 containertypes.RemoveOptions) error
func (MockClient) ContainerRename ¶
func (MockClient) ContainerResize ¶
func (MockClient) ContainerResize(_ context.Context, _ string, _ containertypes.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 containertypes.StartOptions) 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, _ image.CreateOptions) (io.ReadCloser, error)
func (MockClient) ImageHistory ¶
func (MockClient) ImageHistory(_ context.Context, _ string) ([]image.HistoryResponseItem, error)
func (MockClient) ImageImport ¶
func (MockClient) ImageImport(_ context.Context, _ image.ImportSource, _ string, _ image.ImportOptions) (io.ReadCloser, error)
func (MockClient) ImageInspectWithRaw ¶
func (MockClient) ImageInspectWithRaw(_ context.Context, _ string) (dockertypes.ImageInspect, []byte, error)
func (MockClient) ImageList ¶
func (MockClient) ImageList(_ context.Context, _ image.ListOptions) ([]image.Summary, 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 image.PullOptions) (io.ReadCloser, error)
func (MockClient) ImagePush ¶
func (MockClient) ImagePush(_ context.Context, _ string, _ image.PushOptions) (io.ReadCloser, error)
func (MockClient) ImageRemove ¶
func (MockClient) ImageRemove(_ context.Context, _ string, _ image.RemoveOptions) ([]image.DeleteResponse, 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) Ping ¶
func (m MockClient) Ping(ctx context.Context) (dockertypes.Ping, error)
func (MockClient) RegistryLogin ¶
func (MockClient) RegistryLogin(_ context.Context, _ registry.AuthConfig) (registry.AuthenticateOKBody, error)
Click to show internal directories.
Click to hide internal directories.