Documentation ¶
Index ¶
- type MockClient
- func (client *MockClient) ClientVersion() string
- func (client *MockClient) ContainerAttach(ctx context.Context, options types.ContainerAttachOptions) (types.HijackedResponse, error)
- func (client *MockClient) ContainerCommit(ctx context.Context, options types.ContainerCommitOptions) (types.ContainerCommitResponse, error)
- func (client *MockClient) ContainerCreate(ctx context.Context, config *container.Config, ...) (types.ContainerCreateResponse, error)
- func (client *MockClient) ContainerDiff(ctx context.Context, containerID string) ([]types.ContainerChange, error)
- func (client *MockClient) ContainerExecAttach(ctx context.Context, execID string, config types.ExecConfig) (types.HijackedResponse, error)
- func (client *MockClient) ContainerExecCreate(ctx context.Context, config types.ExecConfig) (types.ContainerExecCreateResponse, error)
- func (client *MockClient) ContainerExecInspect(ctx context.Context, execID string) (types.ContainerExecInspect, error)
- func (client *MockClient) ContainerExecResize(ctx context.Context, options types.ResizeOptions) error
- func (client *MockClient) ContainerExecStart(ctx context.Context, execID string, config types.ExecStartCheck) error
- func (client *MockClient) ContainerExport(ctx context.Context, containerID string) (io.ReadCloser, error)
- func (client *MockClient) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error)
- func (client *MockClient) ContainerInspectWithRaw(ctx context.Context, containerID string, getSize bool) (types.ContainerJSON, []byte, error)
- func (client *MockClient) ContainerKill(ctx context.Context, containerID, signal string) error
- func (client *MockClient) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)
- func (client *MockClient) ContainerLogs(ctx context.Context, options types.ContainerLogsOptions) (io.ReadCloser, error)
- func (client *MockClient) ContainerPause(ctx context.Context, containerID string) error
- func (client *MockClient) ContainerRemove(ctx context.Context, options types.ContainerRemoveOptions) error
- func (client *MockClient) ContainerRename(ctx context.Context, containerID, newContainerName string) error
- func (client *MockClient) ContainerResize(ctx context.Context, options types.ResizeOptions) error
- func (client *MockClient) ContainerRestart(ctx context.Context, containerID string, timeout int) error
- func (client *MockClient) ContainerStart(ctx context.Context, containerID string) error
- func (client *MockClient) ContainerStatPath(ctx context.Context, containerID, path string) (types.ContainerPathStat, error)
- func (client *MockClient) ContainerStats(ctx context.Context, containerID string, stream bool) (io.ReadCloser, error)
- func (client *MockClient) ContainerStop(ctx context.Context, containerID string, timeout int) error
- func (client *MockClient) ContainerTop(ctx context.Context, containerID string, arguments []string) (types.ContainerProcessList, error)
- func (client *MockClient) ContainerUnpause(ctx context.Context, containerID string) error
- func (client *MockClient) ContainerUpdate(ctx context.Context, containerID string, updateConfig container.UpdateConfig) error
- func (client *MockClient) ContainerWait(ctx context.Context, containerID string) (int, error)
- func (client *MockClient) CopyFromContainer(ctx context.Context, containerID, srcPath string) (io.ReadCloser, types.ContainerPathStat, error)
- func (client *MockClient) CopyToContainer(ctx context.Context, options types.CopyToContainerOptions) error
- func (client *MockClient) Events(ctx context.Context, options types.EventsOptions) (io.ReadCloser, error)
- func (client *MockClient) ImageBuild(ctx context.Context, options types.ImageBuildOptions) (types.ImageBuildResponse, error)
- func (client *MockClient) ImageCreate(ctx context.Context, options types.ImageCreateOptions) (io.ReadCloser, error)
- func (client *MockClient) ImageHistory(ctx context.Context, imageID string) ([]types.ImageHistory, error)
- func (client *MockClient) ImageImport(ctx context.Context, options types.ImageImportOptions) (io.ReadCloser, error)
- func (client *MockClient) ImageInspectWithRaw(ctx context.Context, imageID string, getSize bool) (types.ImageInspect, []byte, error)
- func (client *MockClient) ImageList(ctx context.Context, options types.ImageListOptions) ([]types.Image, error)
- func (client *MockClient) ImageLoad(ctx context.Context, input io.Reader, quiet bool) (types.ImageLoadResponse, error)
- func (client *MockClient) ImagePull(ctx context.Context, options types.ImagePullOptions, ...) (io.ReadCloser, error)
- func (client *MockClient) ImagePush(ctx context.Context, options types.ImagePushOptions, ...) (io.ReadCloser, error)
- func (client *MockClient) ImageRemove(ctx context.Context, options types.ImageRemoveOptions) ([]types.ImageDelete, error)
- func (client *MockClient) ImageSave(ctx context.Context, imageIDs []string) (io.ReadCloser, error)
- func (client *MockClient) ImageSearch(ctx context.Context, options types.ImageSearchOptions, ...) ([]registry.SearchResult, error)
- func (client *MockClient) ImageTag(ctx context.Context, options types.ImageTagOptions) error
- func (client *MockClient) Info(ctx context.Context) (types.Info, error)
- func (client *MockClient) NetworkConnect(ctx context.Context, networkID, containerID string, ...) error
- func (client *MockClient) NetworkCreate(ctx context.Context, options types.NetworkCreate) (types.NetworkCreateResponse, error)
- func (client *MockClient) NetworkDisconnect(ctx context.Context, networkID, containerID string, force bool) error
- func (client *MockClient) NetworkInspect(ctx context.Context, networkID string) (types.NetworkResource, error)
- func (client *MockClient) NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error)
- func (client *MockClient) NetworkRemove(ctx context.Context, networkID string) error
- func (client *MockClient) RegistryLogin(ctx context.Context, auth types.AuthConfig) (types.AuthResponse, error)
- func (client *MockClient) ServerVersion(ctx context.Context) (types.Version, error)
- func (client *MockClient) VolumeCreate(ctx context.Context, options types.VolumeCreateRequest) (types.Volume, error)
- func (client *MockClient) VolumeInspect(ctx context.Context, volumeID string) (types.Volume, error)
- func (client *MockClient) VolumeList(ctx context.Context, filter filters.Args) (types.VolumesListResponse, error)
- func (client *MockClient) VolumeRemove(ctx context.Context, volumeID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
MockClient is a mock API Client based on engine-api
func (*MockClient) ClientVersion ¶
func (client *MockClient) ClientVersion() string
ClientVersion returns the version string associated with this instance of the Client
func (*MockClient) ContainerAttach ¶
func (client *MockClient) ContainerAttach(ctx context.Context, options types.ContainerAttachOptions) (types.HijackedResponse, error)
ContainerAttach attaches a connection to a container in the server
func (*MockClient) ContainerCommit ¶
func (client *MockClient) ContainerCommit(ctx context.Context, options types.ContainerCommitOptions) (types.ContainerCommitResponse, error)
ContainerCommit applies changes into a container and creates a new tagged image
func (*MockClient) ContainerCreate ¶
func (client *MockClient) ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, containerName string) (types.ContainerCreateResponse, error)
ContainerCreate creates a new container based in the given configuration
func (*MockClient) ContainerDiff ¶
func (client *MockClient) ContainerDiff(ctx context.Context, containerID string) ([]types.ContainerChange, error)
ContainerDiff shows differences in a container filesystem since it was started
func (*MockClient) ContainerExecAttach ¶
func (client *MockClient) ContainerExecAttach(ctx context.Context, execID string, config types.ExecConfig) (types.HijackedResponse, error)
ContainerExecAttach attaches a connection to an exec process in the server
func (*MockClient) ContainerExecCreate ¶
func (client *MockClient) ContainerExecCreate(ctx context.Context, config types.ExecConfig) (types.ContainerExecCreateResponse, error)
ContainerExecCreate creates a new exec configuration to run an exec process
func (*MockClient) ContainerExecInspect ¶
func (client *MockClient) ContainerExecInspect(ctx context.Context, execID string) (types.ContainerExecInspect, error)
ContainerExecInspect returns information about a specific exec process on the docker host
func (*MockClient) ContainerExecResize ¶
func (client *MockClient) ContainerExecResize(ctx context.Context, options types.ResizeOptions) error
ContainerExecResize changes the size of the tty for an exec process running inside a container
func (*MockClient) ContainerExecStart ¶
func (client *MockClient) ContainerExecStart(ctx context.Context, execID string, config types.ExecStartCheck) error
ContainerExecStart starts an exec process already create in the docker host
func (*MockClient) ContainerExport ¶
func (client *MockClient) ContainerExport(ctx context.Context, containerID string) (io.ReadCloser, error)
ContainerExport retrieves the raw contents of a container and returns them as an io.ReadCloser
func (*MockClient) ContainerInspect ¶
func (client *MockClient) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error)
ContainerInspect returns the container information
func (*MockClient) ContainerInspectWithRaw ¶
func (client *MockClient) ContainerInspectWithRaw(ctx context.Context, containerID string, getSize bool) (types.ContainerJSON, []byte, error)
ContainerInspectWithRaw returns the container information and its raw representation
func (*MockClient) ContainerKill ¶
func (client *MockClient) ContainerKill(ctx context.Context, containerID, signal string) error
ContainerKill terminates the container process but does not remove the container from the docker host
func (*MockClient) ContainerList ¶
func (client *MockClient) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)
ContainerList returns the list of containers in the docker host
func (*MockClient) ContainerLogs ¶
func (client *MockClient) ContainerLogs(ctx context.Context, options types.ContainerLogsOptions) (io.ReadCloser, error)
ContainerLogs returns the logs generated by a container in an io.ReadCloser
func (*MockClient) ContainerPause ¶
func (client *MockClient) ContainerPause(ctx context.Context, containerID string) error
ContainerPause pauses the main process of a given container without terminating it
func (*MockClient) ContainerRemove ¶
func (client *MockClient) ContainerRemove(ctx context.Context, options types.ContainerRemoveOptions) error
ContainerRemove kills and removes a container from the docker host
func (*MockClient) ContainerRename ¶
func (client *MockClient) ContainerRename(ctx context.Context, containerID, newContainerName string) error
ContainerRename changes the name of a given container
func (*MockClient) ContainerResize ¶
func (client *MockClient) ContainerResize(ctx context.Context, options types.ResizeOptions) error
ContainerResize changes the size of the tty for a container
func (*MockClient) ContainerRestart ¶
func (client *MockClient) ContainerRestart(ctx context.Context, containerID string, timeout int) error
ContainerRestart stops and starts a container again
func (*MockClient) ContainerStart ¶
func (client *MockClient) ContainerStart(ctx context.Context, containerID string) error
ContainerStart sends a request to the docker daemon to start a container
func (*MockClient) ContainerStatPath ¶
func (client *MockClient) ContainerStatPath(ctx context.Context, containerID, path string) (types.ContainerPathStat, error)
ContainerStatPath returns Stat information about a path inside the container filesystem
func (*MockClient) ContainerStats ¶
func (client *MockClient) ContainerStats(ctx context.Context, containerID string, stream bool) (io.ReadCloser, error)
ContainerStats returns near realtime stats for a given container
func (*MockClient) ContainerStop ¶
ContainerStop stops a container without terminating the process
func (*MockClient) ContainerTop ¶
func (client *MockClient) ContainerTop(ctx context.Context, containerID string, arguments []string) (types.ContainerProcessList, error)
ContainerTop shows process information from within a container
func (*MockClient) ContainerUnpause ¶
func (client *MockClient) ContainerUnpause(ctx context.Context, containerID string) error
ContainerUnpause resumes the process execution within a container
func (*MockClient) ContainerUpdate ¶
func (client *MockClient) ContainerUpdate(ctx context.Context, containerID string, updateConfig container.UpdateConfig) error
ContainerUpdate updates resources of a container
func (*MockClient) ContainerWait ¶
ContainerWait pauses execution until a container exits
func (*MockClient) CopyFromContainer ¶
func (client *MockClient) CopyFromContainer(ctx context.Context, containerID, srcPath string) (io.ReadCloser, types.ContainerPathStat, error)
CopyFromContainer gets the content from the container and returns it as a Reader to manipulate it in the host
func (*MockClient) CopyToContainer ¶
func (client *MockClient) CopyToContainer(ctx context.Context, options types.CopyToContainerOptions) error
CopyToContainer copies content into the container filesystem
func (*MockClient) Events ¶
func (client *MockClient) Events(ctx context.Context, options types.EventsOptions) (io.ReadCloser, error)
Events returns a stream of events in the daemon in a ReadCloser
func (*MockClient) ImageBuild ¶
func (client *MockClient) ImageBuild(ctx context.Context, options types.ImageBuildOptions) (types.ImageBuildResponse, error)
ImageBuild sends request to the daemon to build images
func (*MockClient) ImageCreate ¶
func (client *MockClient) ImageCreate(ctx context.Context, options types.ImageCreateOptions) (io.ReadCloser, error)
ImageCreate creates a new image based in the parent options
func (*MockClient) ImageHistory ¶
func (client *MockClient) ImageHistory(ctx context.Context, imageID string) ([]types.ImageHistory, error)
ImageHistory returns the changes in an image in history format
func (*MockClient) ImageImport ¶
func (client *MockClient) ImageImport(ctx context.Context, options types.ImageImportOptions) (io.ReadCloser, error)
ImageImport creates a new image based in the source options
func (*MockClient) ImageInspectWithRaw ¶
func (client *MockClient) ImageInspectWithRaw(ctx context.Context, imageID string, getSize bool) (types.ImageInspect, []byte, error)
ImageInspectWithRaw returns the image information and it's raw representation
func (*MockClient) ImageList ¶
func (client *MockClient) ImageList(ctx context.Context, options types.ImageListOptions) ([]types.Image, error)
ImageList returns a list of images in the docker host
func (*MockClient) ImageLoad ¶
func (client *MockClient) ImageLoad(ctx context.Context, input io.Reader, quiet bool) (types.ImageLoadResponse, error)
ImageLoad loads an image in the docker host from the client host
func (*MockClient) ImagePull ¶
func (client *MockClient) ImagePull(ctx context.Context, options types.ImagePullOptions, privilegeFunc client.RequestPrivilegeFunc) (io.ReadCloser, error)
ImagePull requests the docker host to pull an image from a remote registry
func (*MockClient) ImagePush ¶
func (client *MockClient) ImagePush(ctx context.Context, options types.ImagePushOptions, privilegeFunc client.RequestPrivilegeFunc) (io.ReadCloser, error)
ImagePush requests the docker host to push an image to a remote registry
func (*MockClient) ImageRemove ¶
func (client *MockClient) ImageRemove(ctx context.Context, options types.ImageRemoveOptions) ([]types.ImageDelete, error)
ImageRemove removes an image from the docker host
func (*MockClient) ImageSave ¶
func (client *MockClient) ImageSave(ctx context.Context, imageIDs []string) (io.ReadCloser, error)
ImageSave retrieves one or more images from the docker host as an io.ReadCloser
func (*MockClient) ImageSearch ¶
func (client *MockClient) ImageSearch(ctx context.Context, options types.ImageSearchOptions, privilegeFunc client.RequestPrivilegeFunc) ([]registry.SearchResult, error)
ImageSearch makes the docker host to search by a term in a remote registry
func (*MockClient) ImageTag ¶
func (client *MockClient) ImageTag(ctx context.Context, options types.ImageTagOptions) error
ImageTag tags an image in the docker host
func (*MockClient) NetworkConnect ¶
func (client *MockClient) NetworkConnect(ctx context.Context, networkID, containerID string, config *network.EndpointSettings) error
NetworkConnect connects a container to an existent network in the docker host
func (*MockClient) NetworkCreate ¶
func (client *MockClient) NetworkCreate(ctx context.Context, options types.NetworkCreate) (types.NetworkCreateResponse, error)
NetworkCreate creates a new network in the docker host
func (*MockClient) NetworkDisconnect ¶
func (client *MockClient) NetworkDisconnect(ctx context.Context, networkID, containerID string, force bool) error
NetworkDisconnect disconnects a container from an existent network in the docker host
func (*MockClient) NetworkInspect ¶
func (client *MockClient) NetworkInspect(ctx context.Context, networkID string) (types.NetworkResource, error)
NetworkInspect returns the information for a specific network configured in the docker host
func (*MockClient) NetworkList ¶
func (client *MockClient) NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error)
NetworkList returns the list of networks configured in the docker host
func (*MockClient) NetworkRemove ¶
func (client *MockClient) NetworkRemove(ctx context.Context, networkID string) error
NetworkRemove removes an existent network from the docker host
func (*MockClient) RegistryLogin ¶
func (client *MockClient) RegistryLogin(ctx context.Context, auth types.AuthConfig) (types.AuthResponse, error)
RegistryLogin authenticates the docker server with a given docker registry
func (*MockClient) ServerVersion ¶
ServerVersion returns information of the docker client and server host
func (*MockClient) VolumeCreate ¶
func (client *MockClient) VolumeCreate(ctx context.Context, options types.VolumeCreateRequest) (types.Volume, error)
VolumeCreate creates a volume in the docker host
func (*MockClient) VolumeInspect ¶
VolumeInspect returns the information about a specific volume in the docker host
func (*MockClient) VolumeList ¶
func (client *MockClient) VolumeList(ctx context.Context, filter filters.Args) (types.VolumesListResponse, error)
VolumeList returns the volumes configured in the docker host
func (*MockClient) VolumeRemove ¶
func (client *MockClient) VolumeRemove(ctx context.Context, volumeID string) error
VolumeRemove removes a volume from the docker host