Documentation ¶
Index ¶
- type ContainerTasks
- func (_m *ContainerTasks) AttachNetwork(network string, containerid string, aliases []string, ipaddress string) error
- func (_m *ContainerTasks) BuildContainer(config *types.Build, force bool) (string, error)
- func (_m *ContainerTasks) ContainerInfo(id string) (interface{}, error)
- func (_m *ContainerTasks) ContainerLogs(id string, stdOut bool, stdErr bool) (io.ReadCloser, error)
- func (_m *ContainerTasks) CopyFileToContainer(id string, src string, dst string) error
- func (_m *ContainerTasks) CopyFilesToVolume(volume string, files []string, path string, force bool) ([]string, error)
- func (_m *ContainerTasks) CopyFromContainer(id string, src string, dst string) error
- func (_m *ContainerTasks) CopyLocalDockerImagesToVolume(images []string, volume string, force bool) ([]string, error)
- func (_m *ContainerTasks) CreateContainer(_a0 *types.Container) (string, error)
- func (_m *ContainerTasks) CreateFileInContainer(containerID string, contents string, filename string, path string) error
- func (_m *ContainerTasks) CreateShell(id string, command []string, stdin io.ReadCloser, stdout io.Writer, ...) error
- func (_m *ContainerTasks) CreateVolume(name string) (string, error)
- func (_m *ContainerTasks) DetachNetwork(network string, containerid string) error
- func (_m *ContainerTasks) EngineInfo() *types.EngineInfo
- func (_m *ContainerTasks) ExecuteCommand(id string, command []string, env []string, workingDirectory string, ...) (int, error)
- func (_m *ContainerTasks) ExecuteScript(id string, contents string, env []string, workingDirectory string, user string, ...) (int, error)
- func (_m *ContainerTasks) FindContainerIDs(fqdn string) ([]string, error)
- func (_m *ContainerTasks) FindImageInLocalRegistry(image types.Image) (string, error)
- func (_m *ContainerTasks) FindImagesInLocalRegistry(filter string) ([]string, error)
- func (_m *ContainerTasks) FindNetwork(id string) (types.NetworkAttachment, error)
- func (_m *ContainerTasks) ListNetworks(id string) []types.NetworkAttachment
- func (_m *ContainerTasks) PullImage(image types.Image, force bool) error
- func (_m *ContainerTasks) RemoveContainer(id string, force bool) error
- func (_m *ContainerTasks) RemoveImage(id string) error
- func (_m *ContainerTasks) RemoveVolume(name string) error
- func (_m *ContainerTasks) SetForcePull(_a0 bool)
- type Docker
- func (_m *Docker) CheckpointCreate(ctx context.Context, _a1 string, options types.CheckpointCreateOptions) error
- func (_m *Docker) CheckpointList(ctx context.Context, _a1 string, options types.CheckpointListOptions) ([]types.Checkpoint, error)
- func (_m *Docker) ContainerCreate(ctx context.Context, config *typescontainer.Config, ...) (typescontainer.CreateResponse, error)
- func (_m *Docker) ContainerExecAttach(ctx context.Context, execID string, config types.ExecStartCheck) (types.HijackedResponse, error)
- func (_m *Docker) ContainerExecCreate(ctx context.Context, _a1 string, config types.ExecConfig) (types.IDResponse, error)
- func (_m *Docker) ContainerExecInspect(ctx context.Context, execID string) (types.ContainerExecInspect, error)
- func (_m *Docker) ContainerExecResize(ctx context.Context, execID string, config types.ResizeOptions) error
- func (_m *Docker) ContainerExecStart(ctx context.Context, execID string, config types.ExecStartCheck) error
- func (_m *Docker) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error)
- func (_m *Docker) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)
- func (_m *Docker) ContainerLogs(ctx context.Context, _a1 string, options types.ContainerLogsOptions) (io.ReadCloser, error)
- func (_m *Docker) ContainerRemove(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error
- func (_m *Docker) ContainerStart(_a0 context.Context, _a1 string, _a2 types.ContainerStartOptions) error
- func (_m *Docker) ContainerStop(ctx context.Context, containerID string, options typescontainer.StopOptions) error
- func (_m *Docker) CopyFromContainer(ctx context.Context, containerID string, srcPath string) (io.ReadCloser, types.ContainerPathStat, error)
- func (_m *Docker) CopyToContainer(ctx context.Context, _a1 string, path string, content io.Reader, ...) error
- func (_m *Docker) ImageBuild(ctx context.Context, buildContext io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error)
- func (_m *Docker) ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error)
- func (_m *Docker) ImagePull(ctx context.Context, refStr string, options types.ImagePullOptions) (io.ReadCloser, error)
- func (_m *Docker) ImageRemove(ctx context.Context, imageID string, options types.ImageRemoveOptions) ([]types.ImageDeleteResponseItem, error)
- func (_m *Docker) ImageSave(ctx context.Context, imageIDs []string) (io.ReadCloser, error)
- func (_m *Docker) Info(ctx context.Context) (types.Info, error)
- func (_m *Docker) NetworkConnect(ctx context.Context, networkID string, containerID string, ...) error
- func (_m *Docker) NetworkCreate(ctx context.Context, name string, options types.NetworkCreate) (types.NetworkCreateResponse, error)
- func (_m *Docker) NetworkDisconnect(ctx context.Context, networkID string, containerID string, force bool) error
- func (_m *Docker) NetworkInspect(ctx context.Context, networkID string, options types.NetworkInspectOptions) (types.NetworkResource, error)
- func (_m *Docker) NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error)
- func (_m *Docker) NetworkRemove(ctx context.Context, networkID string) error
- func (_m *Docker) ServerVersion(ctx context.Context) (types.Version, error)
- func (_m *Docker) VolumeCreate(ctx context.Context, options volume.CreateOptions) (volume.Volume, error)
- func (_m *Docker) VolumeList(ctx context.Context, opts volume.ListOptions) (volume.ListResponse, error)
- func (_m *Docker) VolumeRemove(ctx context.Context, volumeID string, force bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerTasks ¶
ContainerTasks is an autogenerated mock type for the ContainerTasks type
func NewContainerTasks ¶
func NewContainerTasks(t mockConstructorTestingTNewContainerTasks) *ContainerTasks
NewContainerTasks creates a new instance of ContainerTasks. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ContainerTasks) AttachNetwork ¶
func (_m *ContainerTasks) AttachNetwork(network string, containerid string, aliases []string, ipaddress string) error
AttachNetwork provides a mock function with given fields: network, containerid, aliases, ipaddress
func (*ContainerTasks) BuildContainer ¶
BuildContainer provides a mock function with given fields: config, force
func (*ContainerTasks) ContainerInfo ¶
func (_m *ContainerTasks) ContainerInfo(id string) (interface{}, error)
ContainerInfo provides a mock function with given fields: id
func (*ContainerTasks) ContainerLogs ¶
func (_m *ContainerTasks) ContainerLogs(id string, stdOut bool, stdErr bool) (io.ReadCloser, error)
ContainerLogs provides a mock function with given fields: id, stdOut, stdErr
func (*ContainerTasks) CopyFileToContainer ¶
func (_m *ContainerTasks) CopyFileToContainer(id string, src string, dst string) error
CopyFileToContainer provides a mock function with given fields: id, src, dst
func (*ContainerTasks) CopyFilesToVolume ¶
func (_m *ContainerTasks) CopyFilesToVolume(volume string, files []string, path string, force bool) ([]string, error)
CopyFilesToVolume provides a mock function with given fields: volume, files, path, force
func (*ContainerTasks) CopyFromContainer ¶
func (_m *ContainerTasks) CopyFromContainer(id string, src string, dst string) error
CopyFromContainer provides a mock function with given fields: id, src, dst
func (*ContainerTasks) CopyLocalDockerImagesToVolume ¶
func (_m *ContainerTasks) CopyLocalDockerImagesToVolume(images []string, volume string, force bool) ([]string, error)
CopyLocalDockerImagesToVolume provides a mock function with given fields: images, volume, force
func (*ContainerTasks) CreateContainer ¶
func (_m *ContainerTasks) CreateContainer(_a0 *types.Container) (string, error)
CreateContainer provides a mock function with given fields: _a0
func (*ContainerTasks) CreateFileInContainer ¶
func (_m *ContainerTasks) CreateFileInContainer(containerID string, contents string, filename string, path string) error
CreateFileInContainer provides a mock function with given fields: containerID, contents, filename, path
func (*ContainerTasks) CreateShell ¶
func (_m *ContainerTasks) CreateShell(id string, command []string, stdin io.ReadCloser, stdout io.Writer, stderr io.Writer) error
CreateShell provides a mock function with given fields: id, command, stdin, stdout, stderr
func (*ContainerTasks) CreateVolume ¶
func (_m *ContainerTasks) CreateVolume(name string) (string, error)
CreateVolume provides a mock function with given fields: name
func (*ContainerTasks) DetachNetwork ¶
func (_m *ContainerTasks) DetachNetwork(network string, containerid string) error
DetachNetwork provides a mock function with given fields: network, containerid
func (*ContainerTasks) EngineInfo ¶
func (_m *ContainerTasks) EngineInfo() *types.EngineInfo
EngineInfo provides a mock function with given fields:
func (*ContainerTasks) ExecuteCommand ¶
func (_m *ContainerTasks) ExecuteCommand(id string, command []string, env []string, workingDirectory string, user string, group string, timeout int, writer io.Writer) (int, error)
ExecuteCommand provides a mock function with given fields: id, command, env, workingDirectory, user, group, timeout, writer
func (*ContainerTasks) ExecuteScript ¶
func (_m *ContainerTasks) ExecuteScript(id string, contents string, env []string, workingDirectory string, user string, group string, timeout int, writer io.Writer) (int, error)
ExecuteScript provides a mock function with given fields: id, contents, env, workingDirectory, user, group, timeout, writer
func (*ContainerTasks) FindContainerIDs ¶
func (_m *ContainerTasks) FindContainerIDs(fqdn string) ([]string, error)
FindContainerIDs provides a mock function with given fields: fqdn
func (*ContainerTasks) FindImageInLocalRegistry ¶
func (_m *ContainerTasks) FindImageInLocalRegistry(image types.Image) (string, error)
FindImageInLocalRegistry provides a mock function with given fields: image
func (*ContainerTasks) FindImagesInLocalRegistry ¶
func (_m *ContainerTasks) FindImagesInLocalRegistry(filter string) ([]string, error)
FindImagesInLocalRegistry provides a mock function with given fields: filter
func (*ContainerTasks) FindNetwork ¶
func (_m *ContainerTasks) FindNetwork(id string) (types.NetworkAttachment, error)
FindNetwork provides a mock function with given fields: id
func (*ContainerTasks) ListNetworks ¶
func (_m *ContainerTasks) ListNetworks(id string) []types.NetworkAttachment
ListNetworks provides a mock function with given fields: id
func (*ContainerTasks) PullImage ¶
func (_m *ContainerTasks) PullImage(image types.Image, force bool) error
PullImage provides a mock function with given fields: image, force
func (*ContainerTasks) RemoveContainer ¶
func (_m *ContainerTasks) RemoveContainer(id string, force bool) error
RemoveContainer provides a mock function with given fields: id, force
func (*ContainerTasks) RemoveImage ¶
func (_m *ContainerTasks) RemoveImage(id string) error
RemoveImage provides a mock function with given fields: id
func (*ContainerTasks) RemoveVolume ¶
func (_m *ContainerTasks) RemoveVolume(name string) error
RemoveVolume provides a mock function with given fields: name
func (*ContainerTasks) SetForcePull ¶
func (_m *ContainerTasks) SetForcePull(_a0 bool)
SetForcePull provides a mock function with given fields: _a0
type Docker ¶
Docker is an autogenerated mock type for the Docker type
func NewDocker ¶
func NewDocker(t mockConstructorTestingTNewDocker) *Docker
NewDocker creates a new instance of Docker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Docker) CheckpointCreate ¶
func (_m *Docker) CheckpointCreate(ctx context.Context, _a1 string, options types.CheckpointCreateOptions) error
CheckpointCreate provides a mock function with given fields: ctx, _a1, options
func (*Docker) CheckpointList ¶
func (_m *Docker) CheckpointList(ctx context.Context, _a1 string, options types.CheckpointListOptions) ([]types.Checkpoint, error)
CheckpointList provides a mock function with given fields: ctx, _a1, options
func (*Docker) ContainerCreate ¶
func (_m *Docker) ContainerCreate(ctx context.Context, config *typescontainer.Config, hostConfig *typescontainer.HostConfig, networkingConfig *network.NetworkingConfig, platform *v1.Platform, containerName string) (typescontainer.CreateResponse, error)
ContainerCreate provides a mock function with given fields: ctx, config, hostConfig, networkingConfig, platform, containerName
func (*Docker) ContainerExecAttach ¶
func (_m *Docker) ContainerExecAttach(ctx context.Context, execID string, config types.ExecStartCheck) (types.HijackedResponse, error)
ContainerExecAttach provides a mock function with given fields: ctx, execID, config
func (*Docker) ContainerExecCreate ¶
func (_m *Docker) ContainerExecCreate(ctx context.Context, _a1 string, config types.ExecConfig) (types.IDResponse, error)
ContainerExecCreate provides a mock function with given fields: ctx, _a1, config
func (*Docker) ContainerExecInspect ¶
func (_m *Docker) ContainerExecInspect(ctx context.Context, execID string) (types.ContainerExecInspect, error)
ContainerExecInspect provides a mock function with given fields: ctx, execID
func (*Docker) ContainerExecResize ¶
func (_m *Docker) ContainerExecResize(ctx context.Context, execID string, config types.ResizeOptions) error
ContainerExecResize provides a mock function with given fields: ctx, execID, config
func (*Docker) ContainerExecStart ¶
func (_m *Docker) ContainerExecStart(ctx context.Context, execID string, config types.ExecStartCheck) error
ContainerExecStart provides a mock function with given fields: ctx, execID, config
func (*Docker) ContainerInspect ¶
func (_m *Docker) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error)
ContainerInspect provides a mock function with given fields: ctx, containerID
func (*Docker) ContainerList ¶
func (_m *Docker) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)
ContainerList provides a mock function with given fields: ctx, options
func (*Docker) ContainerLogs ¶
func (_m *Docker) ContainerLogs(ctx context.Context, _a1 string, options types.ContainerLogsOptions) (io.ReadCloser, error)
ContainerLogs provides a mock function with given fields: ctx, _a1, options
func (*Docker) ContainerRemove ¶
func (_m *Docker) ContainerRemove(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error
ContainerRemove provides a mock function with given fields: ctx, containerID, options
func (*Docker) ContainerStart ¶
func (_m *Docker) ContainerStart(_a0 context.Context, _a1 string, _a2 types.ContainerStartOptions) error
ContainerStart provides a mock function with given fields: _a0, _a1, _a2
func (*Docker) ContainerStop ¶
func (_m *Docker) ContainerStop(ctx context.Context, containerID string, options typescontainer.StopOptions) error
ContainerStop provides a mock function with given fields: ctx, containerID, options
func (*Docker) CopyFromContainer ¶
func (_m *Docker) CopyFromContainer(ctx context.Context, containerID string, srcPath string) (io.ReadCloser, types.ContainerPathStat, error)
CopyFromContainer provides a mock function with given fields: ctx, containerID, srcPath
func (*Docker) CopyToContainer ¶
func (_m *Docker) CopyToContainer(ctx context.Context, _a1 string, path string, content io.Reader, options types.CopyToContainerOptions) error
CopyToContainer provides a mock function with given fields: ctx, _a1, path, content, options
func (*Docker) ImageBuild ¶
func (_m *Docker) ImageBuild(ctx context.Context, buildContext io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error)
ImageBuild provides a mock function with given fields: ctx, buildContext, options
func (*Docker) ImageList ¶
func (_m *Docker) ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error)
ImageList provides a mock function with given fields: ctx, options
func (*Docker) ImagePull ¶
func (_m *Docker) ImagePull(ctx context.Context, refStr string, options types.ImagePullOptions) (io.ReadCloser, error)
ImagePull provides a mock function with given fields: ctx, refStr, options
func (*Docker) ImageRemove ¶
func (_m *Docker) ImageRemove(ctx context.Context, imageID string, options types.ImageRemoveOptions) ([]types.ImageDeleteResponseItem, error)
ImageRemove provides a mock function with given fields: ctx, imageID, options
func (*Docker) NetworkConnect ¶
func (_m *Docker) NetworkConnect(ctx context.Context, networkID string, containerID string, config *network.EndpointSettings) error
NetworkConnect provides a mock function with given fields: ctx, networkID, containerID, config
func (*Docker) NetworkCreate ¶
func (_m *Docker) NetworkCreate(ctx context.Context, name string, options types.NetworkCreate) (types.NetworkCreateResponse, error)
NetworkCreate provides a mock function with given fields: ctx, name, options
func (*Docker) NetworkDisconnect ¶
func (_m *Docker) NetworkDisconnect(ctx context.Context, networkID string, containerID string, force bool) error
NetworkDisconnect provides a mock function with given fields: ctx, networkID, containerID, force
func (*Docker) NetworkInspect ¶
func (_m *Docker) NetworkInspect(ctx context.Context, networkID string, options types.NetworkInspectOptions) (types.NetworkResource, error)
NetworkInspect provides a mock function with given fields: ctx, networkID, options
func (*Docker) NetworkList ¶
func (_m *Docker) NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error)
NetworkList provides a mock function with given fields: ctx, options
func (*Docker) NetworkRemove ¶
NetworkRemove provides a mock function with given fields: ctx, networkID
func (*Docker) ServerVersion ¶
ServerVersion provides a mock function with given fields: ctx
func (*Docker) VolumeCreate ¶
func (_m *Docker) VolumeCreate(ctx context.Context, options volume.CreateOptions) (volume.Volume, error)
VolumeCreate provides a mock function with given fields: ctx, options
func (*Docker) VolumeList ¶
func (_m *Docker) VolumeList(ctx context.Context, opts volume.ListOptions) (volume.ListResponse, error)
VolumeList provides a mock function with given fields: ctx, opts