Documentation ¶
Index ¶
- type MockDockerClient
- func (_m *MockDockerClient) ContainerEvents(_param0 context.Context) (<-chan engine.DockerContainerChangeEvent, error)
- func (_m *MockDockerClient) CreateContainer(_param0 *go_dockerclient.Config, _param1 *go_dockerclient.HostConfig, ...) engine.DockerContainerMetadata
- func (_m *MockDockerClient) DescribeContainer(_param0 string) (api.ContainerStatus, engine.DockerContainerMetadata)
- func (_m *MockDockerClient) EXPECT() *_MockDockerClientRecorder
- func (_m *MockDockerClient) GetContainerName(_param0 string) (string, error)
- func (_m *MockDockerClient) InspectContainer(_param0 string) (*go_dockerclient.Container, error)
- func (_m *MockDockerClient) ListContainers(_param0 bool) engine.ListContainersResponse
- func (_m *MockDockerClient) PullImage(_param0 string) engine.DockerContainerMetadata
- func (_m *MockDockerClient) RemoveContainer(_param0 string) error
- func (_m *MockDockerClient) StartContainer(_param0 string) engine.DockerContainerMetadata
- func (_m *MockDockerClient) StopContainer(_param0 string) engine.DockerContainerMetadata
- func (_m *MockDockerClient) SupportedVersions() []dockerclient.DockerVersion
- func (_m *MockDockerClient) Version() (string, error)
- func (_m *MockDockerClient) WithVersion(_param0 dockerclient.DockerVersion) engine.DockerClient
- type MockTaskEngine
- func (_m *MockTaskEngine) AddTask(_param0 *api.Task) error
- func (_m *MockTaskEngine) Capabilities() []string
- func (_m *MockTaskEngine) Disable()
- func (_m *MockTaskEngine) EXPECT() *_MockTaskEngineRecorder
- func (_m *MockTaskEngine) Init() error
- func (_m *MockTaskEngine) ListTasks() ([]*api.Task, error)
- func (_m *MockTaskEngine) MarshalJSON() ([]byte, error)
- func (_m *MockTaskEngine) MustInit()
- func (_m *MockTaskEngine) SetSaver(_param0 statemanager.Saver)
- func (_m *MockTaskEngine) TaskEvents() (<-chan api.TaskStateChange, <-chan api.ContainerStateChange)
- func (_m *MockTaskEngine) UnmarshalJSON(_param0 []byte) error
- func (_m *MockTaskEngine) Version() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDockerClient ¶
type MockDockerClient struct {
// contains filtered or unexported fields
}
Mock of DockerClient interface
func NewMockDockerClient ¶
func NewMockDockerClient(ctrl *gomock.Controller) *MockDockerClient
func (*MockDockerClient) ContainerEvents ¶
func (_m *MockDockerClient) ContainerEvents(_param0 context.Context) (<-chan engine.DockerContainerChangeEvent, error)
func (*MockDockerClient) CreateContainer ¶
func (_m *MockDockerClient) CreateContainer(_param0 *go_dockerclient.Config, _param1 *go_dockerclient.HostConfig, _param2 string) engine.DockerContainerMetadata
func (*MockDockerClient) DescribeContainer ¶
func (_m *MockDockerClient) DescribeContainer(_param0 string) (api.ContainerStatus, engine.DockerContainerMetadata)
func (*MockDockerClient) EXPECT ¶
func (_m *MockDockerClient) EXPECT() *_MockDockerClientRecorder
func (*MockDockerClient) GetContainerName ¶
func (_m *MockDockerClient) GetContainerName(_param0 string) (string, error)
func (*MockDockerClient) InspectContainer ¶
func (_m *MockDockerClient) InspectContainer(_param0 string) (*go_dockerclient.Container, error)
func (*MockDockerClient) ListContainers ¶ added in v1.2.0
func (_m *MockDockerClient) ListContainers(_param0 bool) engine.ListContainersResponse
func (*MockDockerClient) PullImage ¶
func (_m *MockDockerClient) PullImage(_param0 string) engine.DockerContainerMetadata
func (*MockDockerClient) RemoveContainer ¶
func (_m *MockDockerClient) RemoveContainer(_param0 string) error
func (*MockDockerClient) StartContainer ¶
func (_m *MockDockerClient) StartContainer(_param0 string) engine.DockerContainerMetadata
func (*MockDockerClient) StopContainer ¶
func (_m *MockDockerClient) StopContainer(_param0 string) engine.DockerContainerMetadata
func (*MockDockerClient) SupportedVersions ¶ added in v1.5.0
func (_m *MockDockerClient) SupportedVersions() []dockerclient.DockerVersion
func (*MockDockerClient) Version ¶
func (_m *MockDockerClient) Version() (string, error)
func (*MockDockerClient) WithVersion ¶ added in v1.5.0
func (_m *MockDockerClient) WithVersion(_param0 dockerclient.DockerVersion) engine.DockerClient
type MockTaskEngine ¶
type MockTaskEngine struct {
// contains filtered or unexported fields
}
Mock of TaskEngine interface
func NewMockTaskEngine ¶
func NewMockTaskEngine(ctrl *gomock.Controller) *MockTaskEngine
func (*MockTaskEngine) Capabilities ¶ added in v1.5.0
func (_m *MockTaskEngine) Capabilities() []string
func (*MockTaskEngine) Disable ¶
func (_m *MockTaskEngine) Disable()
func (*MockTaskEngine) EXPECT ¶
func (_m *MockTaskEngine) EXPECT() *_MockTaskEngineRecorder
func (*MockTaskEngine) Init ¶
func (_m *MockTaskEngine) Init() error
func (*MockTaskEngine) MarshalJSON ¶
func (_m *MockTaskEngine) MarshalJSON() ([]byte, error)
func (*MockTaskEngine) MustInit ¶
func (_m *MockTaskEngine) MustInit()
func (*MockTaskEngine) SetSaver ¶
func (_m *MockTaskEngine) SetSaver(_param0 statemanager.Saver)
func (*MockTaskEngine) TaskEvents ¶
func (_m *MockTaskEngine) TaskEvents() (<-chan api.TaskStateChange, <-chan api.ContainerStateChange)
func (*MockTaskEngine) UnmarshalJSON ¶
func (_m *MockTaskEngine) UnmarshalJSON(_param0 []byte) error
func (*MockTaskEngine) Version ¶
func (_m *MockTaskEngine) Version() (string, error)
Click to show internal directories.
Click to hide internal directories.