Documentation ¶
Index ¶
- type MockClientInterface
- func (_m *MockClientInterface) CreateContainer(opts go_dockerclient.CreateContainerOptions) (*go_dockerclient.Container, error)
- func (_m *MockClientInterface) CreateExec(opts go_dockerclient.CreateExecOptions) (*go_dockerclient.Exec, error)
- func (_m *MockClientInterface) EXPECT() *_MockClientInterfaceRecorder
- func (_m *MockClientInterface) InspectContainer(id string) (*go_dockerclient.Container, error)
- func (_m *MockClientInterface) InspectExec(id string) (*go_dockerclient.ExecInspect, error)
- func (_m *MockClientInterface) KillContainer(opts go_dockerclient.KillContainerOptions) error
- func (_m *MockClientInterface) ListContainers(opts go_dockerclient.ListContainersOptions) ([]go_dockerclient.APIContainers, error)
- func (_m *MockClientInterface) ListImages(opts go_dockerclient.ListImagesOptions) ([]go_dockerclient.APIImages, error)
- func (_m *MockClientInterface) PullImage(opts go_dockerclient.PullImageOptions, auth go_dockerclient.AuthConfiguration) error
- func (_m *MockClientInterface) RemoveContainer(opts go_dockerclient.RemoveContainerOptions) error
- func (_m *MockClientInterface) ResizeContainerTTY(id string, height int, width int) error
- func (_m *MockClientInterface) ResizeExecTTY(id string, height int, width int) error
- func (_m *MockClientInterface) StartContainer(id string, hostConfig *go_dockerclient.HostConfig) error
- func (_m *MockClientInterface) StartExec(id string, opts go_dockerclient.StartExecOptions) error
- func (_m *MockClientInterface) StopContainer(id string, timeout uint) error
- func (_m *MockClientInterface) WaitContainer(id string) (int, error)
- type MockDockerDefault
- func (_m *MockDockerDefault) CreateContainer(conf docker.CreateConfig) (*go_dockerclient.Container, error)
- func (_m *MockDockerDefault) CreateExec(id string, cmd []string, in bool, out bool, err bool) (*go_dockerclient.Exec, error)
- func (_m *MockDockerDefault) EXPECT() *_MockDockerDefaultRecorder
- func (_m *MockDockerDefault) ExecInContainer(container string, args ...string) ([]byte, error)
- func (_m *MockDockerDefault) GetContainer(id string) (*go_dockerclient.Container, error)
- func (_m *MockDockerDefault) ImageExists(name string) bool
- func (_m *MockDockerDefault) InspectContainer(id string) (*go_dockerclient.Container, error)
- func (_m *MockDockerDefault) InstallImage(image string) error
- func (_m *MockDockerDefault) KillContainer(id string, sig string) error
- func (_m *MockDockerDefault) ListContainers(labels ...string) ([]*go_dockerclient.Container, error)
- func (_m *MockDockerDefault) ListImages() ([]go_dockerclient.APIImages, error)
- func (_m *MockDockerDefault) RemoveContainer(id string) error
- func (_m *MockDockerDefault) ResizeContainerTTY(id string, height int, width int) error
- func (_m *MockDockerDefault) ResizeExecTTY(id string, height int, width int) error
- func (_m *MockDockerDefault) RunExec(exec *go_dockerclient.Exec, in io.Reader, out io.Writer, err io.Writer) (*go_dockerclient.ExecInspect, error)
- func (_m *MockDockerDefault) StartContainer(id string) error
- func (_m *MockDockerDefault) WaitContainer(id string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClientInterface ¶
type MockClientInterface struct {
// contains filtered or unexported fields
}
Mock of ClientInterface interface
func NewMockClientInterface ¶
func NewMockClientInterface(ctrl *gomock.Controller) *MockClientInterface
func (*MockClientInterface) CreateContainer ¶
func (_m *MockClientInterface) CreateContainer(opts go_dockerclient.CreateContainerOptions) (*go_dockerclient.Container, error)
func (*MockClientInterface) CreateExec ¶
func (_m *MockClientInterface) CreateExec(opts go_dockerclient.CreateExecOptions) (*go_dockerclient.Exec, error)
func (*MockClientInterface) EXPECT ¶
func (_m *MockClientInterface) EXPECT() *_MockClientInterfaceRecorder
func (*MockClientInterface) InspectContainer ¶
func (_m *MockClientInterface) InspectContainer(id string) (*go_dockerclient.Container, error)
func (*MockClientInterface) InspectExec ¶
func (_m *MockClientInterface) InspectExec(id string) (*go_dockerclient.ExecInspect, error)
func (*MockClientInterface) KillContainer ¶
func (_m *MockClientInterface) KillContainer(opts go_dockerclient.KillContainerOptions) error
func (*MockClientInterface) ListContainers ¶
func (_m *MockClientInterface) ListContainers(opts go_dockerclient.ListContainersOptions) ([]go_dockerclient.APIContainers, error)
func (*MockClientInterface) ListImages ¶
func (_m *MockClientInterface) ListImages(opts go_dockerclient.ListImagesOptions) ([]go_dockerclient.APIImages, error)
func (*MockClientInterface) PullImage ¶
func (_m *MockClientInterface) PullImage(opts go_dockerclient.PullImageOptions, auth go_dockerclient.AuthConfiguration) error
func (*MockClientInterface) RemoveContainer ¶
func (_m *MockClientInterface) RemoveContainer(opts go_dockerclient.RemoveContainerOptions) error
func (*MockClientInterface) ResizeContainerTTY ¶
func (_m *MockClientInterface) ResizeContainerTTY(id string, height int, width int) error
func (*MockClientInterface) ResizeExecTTY ¶
func (_m *MockClientInterface) ResizeExecTTY(id string, height int, width int) error
func (*MockClientInterface) StartContainer ¶
func (_m *MockClientInterface) StartContainer(id string, hostConfig *go_dockerclient.HostConfig) error
func (*MockClientInterface) StartExec ¶
func (_m *MockClientInterface) StartExec(id string, opts go_dockerclient.StartExecOptions) error
func (*MockClientInterface) StopContainer ¶
func (_m *MockClientInterface) StopContainer(id string, timeout uint) error
func (*MockClientInterface) WaitContainer ¶
func (_m *MockClientInterface) WaitContainer(id string) (int, error)
type MockDockerDefault ¶
type MockDockerDefault struct {
// contains filtered or unexported fields
}
Mock of DockerDefault interface
func NewMockDockerDefault ¶
func NewMockDockerDefault(ctrl *gomock.Controller) *MockDockerDefault
func (*MockDockerDefault) CreateContainer ¶
func (_m *MockDockerDefault) CreateContainer(conf docker.CreateConfig) (*go_dockerclient.Container, error)
func (*MockDockerDefault) CreateExec ¶
func (_m *MockDockerDefault) CreateExec(id string, cmd []string, in bool, out bool, err bool) (*go_dockerclient.Exec, error)
func (*MockDockerDefault) EXPECT ¶
func (_m *MockDockerDefault) EXPECT() *_MockDockerDefaultRecorder
func (*MockDockerDefault) ExecInContainer ¶
func (_m *MockDockerDefault) ExecInContainer(container string, args ...string) ([]byte, error)
func (*MockDockerDefault) GetContainer ¶
func (_m *MockDockerDefault) GetContainer(id string) (*go_dockerclient.Container, error)
func (*MockDockerDefault) ImageExists ¶
func (_m *MockDockerDefault) ImageExists(name string) bool
func (*MockDockerDefault) InspectContainer ¶
func (_m *MockDockerDefault) InspectContainer(id string) (*go_dockerclient.Container, error)
func (*MockDockerDefault) InstallImage ¶
func (_m *MockDockerDefault) InstallImage(image string) error
func (*MockDockerDefault) KillContainer ¶
func (_m *MockDockerDefault) KillContainer(id string, sig string) error
func (*MockDockerDefault) ListContainers ¶
func (_m *MockDockerDefault) ListContainers(labels ...string) ([]*go_dockerclient.Container, error)
func (*MockDockerDefault) ListImages ¶
func (_m *MockDockerDefault) ListImages() ([]go_dockerclient.APIImages, error)
func (*MockDockerDefault) RemoveContainer ¶
func (_m *MockDockerDefault) RemoveContainer(id string) error
func (*MockDockerDefault) ResizeContainerTTY ¶
func (_m *MockDockerDefault) ResizeContainerTTY(id string, height int, width int) error
func (*MockDockerDefault) ResizeExecTTY ¶
func (_m *MockDockerDefault) ResizeExecTTY(id string, height int, width int) error
func (*MockDockerDefault) RunExec ¶
func (_m *MockDockerDefault) RunExec(exec *go_dockerclient.Exec, in io.Reader, out io.Writer, err io.Writer) (*go_dockerclient.ExecInspect, error)
func (*MockDockerDefault) StartContainer ¶
func (_m *MockDockerDefault) StartContainer(id string) error
func (*MockDockerDefault) WaitContainer ¶
func (_m *MockDockerDefault) WaitContainer(id string) (int, error)
Click to show internal directories.
Click to hide internal directories.