Documentation
¶
Index ¶
- type ContainerClient
- func (_m *ContainerClient) ContainersWithLabels(_a0 map[string]string) container.LabelOptions
- func (_m *ContainerClient) EXPECT() *ContainerClient_Expecter
- func (_m *ContainerClient) HasDockerNetwork() bool
- func (_m *ContainerClient) RemoveContainers(_a0 context.Context, _a1 container.LabelOptions) error
- func (_m *ContainerClient) RunContainer(_a0 context.Context, _a1 container.RunContainerParams) (<-chan domain.Container, <-chan error)
- type ContainerClient_ContainersWithLabels_Call
- func (_c *ContainerClient_ContainersWithLabels_Call) Return(_a0 container.LabelOptions) *ContainerClient_ContainersWithLabels_Call
- func (_c *ContainerClient_ContainersWithLabels_Call) Run(run func(_a0 map[string]string)) *ContainerClient_ContainersWithLabels_Call
- func (_c *ContainerClient_ContainersWithLabels_Call) RunAndReturn(run func(map[string]string) container.LabelOptions) *ContainerClient_ContainersWithLabels_Call
- type ContainerClient_Expecter
- func (_e *ContainerClient_Expecter) ContainersWithLabels(_a0 interface{}) *ContainerClient_ContainersWithLabels_Call
- func (_e *ContainerClient_Expecter) HasDockerNetwork() *ContainerClient_HasDockerNetwork_Call
- func (_e *ContainerClient_Expecter) RemoveContainers(_a0 interface{}, _a1 interface{}) *ContainerClient_RemoveContainers_Call
- func (_e *ContainerClient_Expecter) RunContainer(_a0 interface{}, _a1 interface{}) *ContainerClient_RunContainer_Call
- type ContainerClient_HasDockerNetwork_Call
- func (_c *ContainerClient_HasDockerNetwork_Call) Return(_a0 bool) *ContainerClient_HasDockerNetwork_Call
- func (_c *ContainerClient_HasDockerNetwork_Call) Run(run func()) *ContainerClient_HasDockerNetwork_Call
- func (_c *ContainerClient_HasDockerNetwork_Call) RunAndReturn(run func() bool) *ContainerClient_HasDockerNetwork_Call
- type ContainerClient_RemoveContainers_Call
- func (_c *ContainerClient_RemoveContainers_Call) Return(_a0 error) *ContainerClient_RemoveContainers_Call
- func (_c *ContainerClient_RemoveContainers_Call) Run(run func(_a0 context.Context, _a1 container.LabelOptions)) *ContainerClient_RemoveContainers_Call
- func (_c *ContainerClient_RemoveContainers_Call) RunAndReturn(run func(context.Context, container.LabelOptions) error) *ContainerClient_RemoveContainers_Call
- type ContainerClient_RunContainer_Call
- func (_c *ContainerClient_RunContainer_Call) Return(_a0 <-chan domain.Container, _a1 <-chan error) *ContainerClient_RunContainer_Call
- func (_c *ContainerClient_RunContainer_Call) Run(run func(_a0 context.Context, _a1 container.RunContainerParams)) *ContainerClient_RunContainer_Call
- func (_c *ContainerClient_RunContainer_Call) RunAndReturn(...) *ContainerClient_RunContainer_Call
- type HTTPClient
- type HTTPClient_Do_Call
- type HTTPClient_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerClient ¶ added in v0.0.15
ContainerClient is an autogenerated mock type for the ContainerClient type
func NewContainerClient ¶ added in v0.0.15
func NewContainerClient(t interface { mock.TestingT Cleanup(func()) }) *ContainerClient
NewContainerClient creates a new instance of ContainerClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ContainerClient) ContainersWithLabels ¶ added in v0.0.15
func (_m *ContainerClient) ContainersWithLabels(_a0 map[string]string) container.LabelOptions
ContainersWithLabels provides a mock function with given fields: _a0
func (*ContainerClient) EXPECT ¶ added in v0.0.15
func (_m *ContainerClient) EXPECT() *ContainerClient_Expecter
func (*ContainerClient) HasDockerNetwork ¶ added in v0.0.15
func (_m *ContainerClient) HasDockerNetwork() bool
HasDockerNetwork provides a mock function with no fields
func (*ContainerClient) RemoveContainers ¶ added in v0.0.15
func (_m *ContainerClient) RemoveContainers(_a0 context.Context, _a1 container.LabelOptions) error
RemoveContainers provides a mock function with given fields: _a0, _a1
func (*ContainerClient) RunContainer ¶ added in v0.0.15
func (_m *ContainerClient) RunContainer(_a0 context.Context, _a1 container.RunContainerParams) (<-chan domain.Container, <-chan error)
RunContainer provides a mock function with given fields: _a0, _a1
type ContainerClient_ContainersWithLabels_Call ¶ added in v0.0.15
ContainerClient_ContainersWithLabels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainersWithLabels'
func (*ContainerClient_ContainersWithLabels_Call) Return ¶ added in v0.0.15
func (_c *ContainerClient_ContainersWithLabels_Call) Return(_a0 container.LabelOptions) *ContainerClient_ContainersWithLabels_Call
func (*ContainerClient_ContainersWithLabels_Call) Run ¶ added in v0.0.15
func (_c *ContainerClient_ContainersWithLabels_Call) Run(run func(_a0 map[string]string)) *ContainerClient_ContainersWithLabels_Call
func (*ContainerClient_ContainersWithLabels_Call) RunAndReturn ¶ added in v0.0.15
func (_c *ContainerClient_ContainersWithLabels_Call) RunAndReturn(run func(map[string]string) container.LabelOptions) *ContainerClient_ContainersWithLabels_Call
type ContainerClient_Expecter ¶ added in v0.0.15
type ContainerClient_Expecter struct {
// contains filtered or unexported fields
}
func (*ContainerClient_Expecter) ContainersWithLabels ¶ added in v0.0.15
func (_e *ContainerClient_Expecter) ContainersWithLabels(_a0 interface{}) *ContainerClient_ContainersWithLabels_Call
ContainersWithLabels is a helper method to define mock.On call
- _a0 map[string]string
func (*ContainerClient_Expecter) HasDockerNetwork ¶ added in v0.0.15
func (_e *ContainerClient_Expecter) HasDockerNetwork() *ContainerClient_HasDockerNetwork_Call
HasDockerNetwork is a helper method to define mock.On call
func (*ContainerClient_Expecter) RemoveContainers ¶ added in v0.0.15
func (_e *ContainerClient_Expecter) RemoveContainers(_a0 interface{}, _a1 interface{}) *ContainerClient_RemoveContainers_Call
RemoveContainers is a helper method to define mock.On call
- _a0 context.Context
- _a1 container.LabelOptions
func (*ContainerClient_Expecter) RunContainer ¶ added in v0.0.15
func (_e *ContainerClient_Expecter) RunContainer(_a0 interface{}, _a1 interface{}) *ContainerClient_RunContainer_Call
RunContainer is a helper method to define mock.On call
- _a0 context.Context
- _a1 container.RunContainerParams
type ContainerClient_HasDockerNetwork_Call ¶ added in v0.0.15
ContainerClient_HasDockerNetwork_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasDockerNetwork'
func (*ContainerClient_HasDockerNetwork_Call) Return ¶ added in v0.0.15
func (_c *ContainerClient_HasDockerNetwork_Call) Return(_a0 bool) *ContainerClient_HasDockerNetwork_Call
func (*ContainerClient_HasDockerNetwork_Call) Run ¶ added in v0.0.15
func (_c *ContainerClient_HasDockerNetwork_Call) Run(run func()) *ContainerClient_HasDockerNetwork_Call
func (*ContainerClient_HasDockerNetwork_Call) RunAndReturn ¶ added in v0.0.15
func (_c *ContainerClient_HasDockerNetwork_Call) RunAndReturn(run func() bool) *ContainerClient_HasDockerNetwork_Call
type ContainerClient_RemoveContainers_Call ¶ added in v0.0.15
ContainerClient_RemoveContainers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveContainers'
func (*ContainerClient_RemoveContainers_Call) Return ¶ added in v0.0.15
func (_c *ContainerClient_RemoveContainers_Call) Return(_a0 error) *ContainerClient_RemoveContainers_Call
func (*ContainerClient_RemoveContainers_Call) Run ¶ added in v0.0.15
func (_c *ContainerClient_RemoveContainers_Call) Run(run func(_a0 context.Context, _a1 container.LabelOptions)) *ContainerClient_RemoveContainers_Call
func (*ContainerClient_RemoveContainers_Call) RunAndReturn ¶ added in v0.0.15
func (_c *ContainerClient_RemoveContainers_Call) RunAndReturn(run func(context.Context, container.LabelOptions) error) *ContainerClient_RemoveContainers_Call
type ContainerClient_RunContainer_Call ¶ added in v0.0.15
ContainerClient_RunContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunContainer'
func (*ContainerClient_RunContainer_Call) Return ¶ added in v0.0.15
func (_c *ContainerClient_RunContainer_Call) Return(_a0 <-chan domain.Container, _a1 <-chan error) *ContainerClient_RunContainer_Call
func (*ContainerClient_RunContainer_Call) Run ¶ added in v0.0.15
func (_c *ContainerClient_RunContainer_Call) Run(run func(_a0 context.Context, _a1 container.RunContainerParams)) *ContainerClient_RunContainer_Call
func (*ContainerClient_RunContainer_Call) RunAndReturn ¶ added in v0.0.15
func (_c *ContainerClient_RunContainer_Call) RunAndReturn(run func(context.Context, container.RunContainerParams) (<-chan domain.Container, <-chan error)) *ContainerClient_RunContainer_Call
type HTTPClient ¶
HTTPClient is an autogenerated mock type for the httpClient type
func NewHTTPClient ¶
func NewHTTPClient(t interface { mock.TestingT Cleanup(func()) }) *HTTPClient
NewHTTPClient creates a new instance of HTTPClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*HTTPClient) EXPECT ¶
func (_m *HTTPClient) EXPECT() *HTTPClient_Expecter
type HTTPClient_Do_Call ¶
HTTPClient_Do_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Do'
func (*HTTPClient_Do_Call) Return ¶
func (_c *HTTPClient_Do_Call) Return(_a0 *http.Response, _a1 error) *HTTPClient_Do_Call
func (*HTTPClient_Do_Call) Run ¶
func (_c *HTTPClient_Do_Call) Run(run func(_a0 *http.Request)) *HTTPClient_Do_Call
func (*HTTPClient_Do_Call) RunAndReturn ¶
func (_c *HTTPClient_Do_Call) RunAndReturn(run func(*http.Request) (*http.Response, error)) *HTTPClient_Do_Call
type HTTPClient_Expecter ¶
type HTTPClient_Expecter struct {
// contains filtered or unexported fields
}
func (*HTTPClient_Expecter) Do ¶
func (_e *HTTPClient_Expecter) Do(_a0 interface{}) *HTTPClient_Do_Call
Do is a helper method to define mock.On call
- _a0 *http.Request