Documentation
¶
Index ¶
- type ContainerClient
- func (_m *ContainerClient) Compatible(_a0 context.Context) (bool, error)
- func (_m *ContainerClient) ContainerExists(_a0 context.Context, _a1 string) (bool, error)
- func (_m *ContainerClient) Create(_a0 context.Context, _a1 container.Config) (string, error)
- func (_m *ContainerClient) EXPECT() *ContainerClient_Expecter
- func (_m *ContainerClient) ImageExists(_a0 context.Context, _a1 string) (bool, error)
- func (_m *ContainerClient) Logs(_a0 context.Context, _a1 string) (string, string, error)
- func (_m *ContainerClient) PullImage(_a0 context.Context, _a1 string) error
- func (_m *ContainerClient) Remove(_a0 context.Context, _a1 string) error
- func (_m *ContainerClient) Start(_a0 context.Context, _a1 string) error
- func (_m *ContainerClient) Stop(_a0 context.Context, _a1 string) error
- func (_m *ContainerClient) Wait(_a0 context.Context, _a1 string) (int, string, error)
- type ContainerClient_Compatible_Call
- func (_c *ContainerClient_Compatible_Call) Return(_a0 bool, _a1 error) *ContainerClient_Compatible_Call
- func (_c *ContainerClient_Compatible_Call) Run(run func(_a0 context.Context)) *ContainerClient_Compatible_Call
- func (_c *ContainerClient_Compatible_Call) RunAndReturn(run func(context.Context) (bool, error)) *ContainerClient_Compatible_Call
- type ContainerClient_ContainerExists_Call
- func (_c *ContainerClient_ContainerExists_Call) Return(_a0 bool, _a1 error) *ContainerClient_ContainerExists_Call
- func (_c *ContainerClient_ContainerExists_Call) Run(run func(_a0 context.Context, _a1 string)) *ContainerClient_ContainerExists_Call
- func (_c *ContainerClient_ContainerExists_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *ContainerClient_ContainerExists_Call
- type ContainerClient_Create_Call
- func (_c *ContainerClient_Create_Call) Return(_a0 string, _a1 error) *ContainerClient_Create_Call
- func (_c *ContainerClient_Create_Call) Run(run func(_a0 context.Context, _a1 container.Config)) *ContainerClient_Create_Call
- func (_c *ContainerClient_Create_Call) RunAndReturn(run func(context.Context, container.Config) (string, error)) *ContainerClient_Create_Call
- type ContainerClient_Expecter
- func (_e *ContainerClient_Expecter) Compatible(_a0 interface{}) *ContainerClient_Compatible_Call
- func (_e *ContainerClient_Expecter) ContainerExists(_a0 interface{}, _a1 interface{}) *ContainerClient_ContainerExists_Call
- func (_e *ContainerClient_Expecter) Create(_a0 interface{}, _a1 interface{}) *ContainerClient_Create_Call
- func (_e *ContainerClient_Expecter) ImageExists(_a0 interface{}, _a1 interface{}) *ContainerClient_ImageExists_Call
- func (_e *ContainerClient_Expecter) Logs(_a0 interface{}, _a1 interface{}) *ContainerClient_Logs_Call
- func (_e *ContainerClient_Expecter) PullImage(_a0 interface{}, _a1 interface{}) *ContainerClient_PullImage_Call
- func (_e *ContainerClient_Expecter) Remove(_a0 interface{}, _a1 interface{}) *ContainerClient_Remove_Call
- func (_e *ContainerClient_Expecter) Start(_a0 interface{}, _a1 interface{}) *ContainerClient_Start_Call
- func (_e *ContainerClient_Expecter) Stop(_a0 interface{}, _a1 interface{}) *ContainerClient_Stop_Call
- func (_e *ContainerClient_Expecter) Wait(_a0 interface{}, _a1 interface{}) *ContainerClient_Wait_Call
- type ContainerClient_ImageExists_Call
- func (_c *ContainerClient_ImageExists_Call) Return(_a0 bool, _a1 error) *ContainerClient_ImageExists_Call
- func (_c *ContainerClient_ImageExists_Call) Run(run func(_a0 context.Context, _a1 string)) *ContainerClient_ImageExists_Call
- func (_c *ContainerClient_ImageExists_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *ContainerClient_ImageExists_Call
- type ContainerClient_Logs_Call
- func (_c *ContainerClient_Logs_Call) Return(_a0 string, _a1 string, _a2 error) *ContainerClient_Logs_Call
- func (_c *ContainerClient_Logs_Call) Run(run func(_a0 context.Context, _a1 string)) *ContainerClient_Logs_Call
- func (_c *ContainerClient_Logs_Call) RunAndReturn(run func(context.Context, string) (string, string, error)) *ContainerClient_Logs_Call
- type ContainerClient_PullImage_Call
- func (_c *ContainerClient_PullImage_Call) Return(_a0 error) *ContainerClient_PullImage_Call
- func (_c *ContainerClient_PullImage_Call) Run(run func(_a0 context.Context, _a1 string)) *ContainerClient_PullImage_Call
- func (_c *ContainerClient_PullImage_Call) RunAndReturn(run func(context.Context, string) error) *ContainerClient_PullImage_Call
- type ContainerClient_Remove_Call
- func (_c *ContainerClient_Remove_Call) Return(_a0 error) *ContainerClient_Remove_Call
- func (_c *ContainerClient_Remove_Call) Run(run func(_a0 context.Context, _a1 string)) *ContainerClient_Remove_Call
- func (_c *ContainerClient_Remove_Call) RunAndReturn(run func(context.Context, string) error) *ContainerClient_Remove_Call
- type ContainerClient_Start_Call
- func (_c *ContainerClient_Start_Call) Return(_a0 error) *ContainerClient_Start_Call
- func (_c *ContainerClient_Start_Call) Run(run func(_a0 context.Context, _a1 string)) *ContainerClient_Start_Call
- func (_c *ContainerClient_Start_Call) RunAndReturn(run func(context.Context, string) error) *ContainerClient_Start_Call
- type ContainerClient_Stop_Call
- func (_c *ContainerClient_Stop_Call) Return(_a0 error) *ContainerClient_Stop_Call
- func (_c *ContainerClient_Stop_Call) Run(run func(_a0 context.Context, _a1 string)) *ContainerClient_Stop_Call
- func (_c *ContainerClient_Stop_Call) RunAndReturn(run func(context.Context, string) error) *ContainerClient_Stop_Call
- type ContainerClient_Wait_Call
- func (_c *ContainerClient_Wait_Call) Return(_a0 int, _a1 string, _a2 error) *ContainerClient_Wait_Call
- func (_c *ContainerClient_Wait_Call) Run(run func(_a0 context.Context, _a1 string)) *ContainerClient_Wait_Call
- func (_c *ContainerClient_Wait_Call) RunAndReturn(run func(context.Context, string) (int, string, error)) *ContainerClient_Wait_Call
- type ContainerMemory
- type ContainerMemory_AddID_Call
- type ContainerMemory_Expecter
- type ContainerMemory_RemoveID_Call
- type StateCleaner
- type StateCleaner_CleanUp_Call
- func (_c *StateCleaner_CleanUp_Call) Return(_a0 error) *StateCleaner_CleanUp_Call
- func (_c *StateCleaner_CleanUp_Call) Run(run func(_a0 context.Context, _a1 string)) *StateCleaner_CleanUp_Call
- func (_c *StateCleaner_CleanUp_Call) RunAndReturn(run func(context.Context, string) error) *StateCleaner_CleanUp_Call
- type StateCleaner_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerClient ¶
ContainerClient is an autogenerated mock type for the Client type
func NewContainerClient ¶
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) Compatible ¶
func (_m *ContainerClient) Compatible(_a0 context.Context) (bool, error)
Compatible provides a mock function with given fields: _a0
func (*ContainerClient) ContainerExists ¶
ContainerExists provides a mock function with given fields: _a0, _a1
func (*ContainerClient) EXPECT ¶
func (_m *ContainerClient) EXPECT() *ContainerClient_Expecter
func (*ContainerClient) ImageExists ¶
ImageExists provides a mock function with given fields: _a0, _a1
func (*ContainerClient) PullImage ¶
func (_m *ContainerClient) PullImage(_a0 context.Context, _a1 string) error
PullImage provides a mock function with given fields: _a0, _a1
func (*ContainerClient) Remove ¶
func (_m *ContainerClient) Remove(_a0 context.Context, _a1 string) error
Remove provides a mock function with given fields: _a0, _a1
func (*ContainerClient) Start ¶
func (_m *ContainerClient) Start(_a0 context.Context, _a1 string) error
Start provides a mock function with given fields: _a0, _a1
type ContainerClient_Compatible_Call ¶
ContainerClient_Compatible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Compatible'
func (*ContainerClient_Compatible_Call) Return ¶
func (_c *ContainerClient_Compatible_Call) Return(_a0 bool, _a1 error) *ContainerClient_Compatible_Call
func (*ContainerClient_Compatible_Call) Run ¶
func (_c *ContainerClient_Compatible_Call) Run(run func(_a0 context.Context)) *ContainerClient_Compatible_Call
func (*ContainerClient_Compatible_Call) RunAndReturn ¶
func (_c *ContainerClient_Compatible_Call) RunAndReturn(run func(context.Context) (bool, error)) *ContainerClient_Compatible_Call
type ContainerClient_ContainerExists_Call ¶
ContainerClient_ContainerExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerExists'
func (*ContainerClient_ContainerExists_Call) Return ¶
func (_c *ContainerClient_ContainerExists_Call) Return(_a0 bool, _a1 error) *ContainerClient_ContainerExists_Call
func (*ContainerClient_ContainerExists_Call) Run ¶
func (_c *ContainerClient_ContainerExists_Call) Run(run func(_a0 context.Context, _a1 string)) *ContainerClient_ContainerExists_Call
func (*ContainerClient_ContainerExists_Call) RunAndReturn ¶
func (_c *ContainerClient_ContainerExists_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *ContainerClient_ContainerExists_Call
type ContainerClient_Create_Call ¶
ContainerClient_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ContainerClient_Create_Call) Return ¶
func (_c *ContainerClient_Create_Call) Return(_a0 string, _a1 error) *ContainerClient_Create_Call
func (*ContainerClient_Create_Call) Run ¶
func (_c *ContainerClient_Create_Call) Run(run func(_a0 context.Context, _a1 container.Config)) *ContainerClient_Create_Call
func (*ContainerClient_Create_Call) RunAndReturn ¶
func (_c *ContainerClient_Create_Call) RunAndReturn(run func(context.Context, container.Config) (string, error)) *ContainerClient_Create_Call
type ContainerClient_Expecter ¶
type ContainerClient_Expecter struct {
// contains filtered or unexported fields
}
func (*ContainerClient_Expecter) Compatible ¶
func (_e *ContainerClient_Expecter) Compatible(_a0 interface{}) *ContainerClient_Compatible_Call
Compatible is a helper method to define mock.On call
- _a0 context.Context
func (*ContainerClient_Expecter) ContainerExists ¶
func (_e *ContainerClient_Expecter) ContainerExists(_a0 interface{}, _a1 interface{}) *ContainerClient_ContainerExists_Call
ContainerExists is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*ContainerClient_Expecter) Create ¶
func (_e *ContainerClient_Expecter) Create(_a0 interface{}, _a1 interface{}) *ContainerClient_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 container.Config
func (*ContainerClient_Expecter) ImageExists ¶
func (_e *ContainerClient_Expecter) ImageExists(_a0 interface{}, _a1 interface{}) *ContainerClient_ImageExists_Call
ImageExists is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*ContainerClient_Expecter) Logs ¶
func (_e *ContainerClient_Expecter) Logs(_a0 interface{}, _a1 interface{}) *ContainerClient_Logs_Call
Logs is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*ContainerClient_Expecter) PullImage ¶
func (_e *ContainerClient_Expecter) PullImage(_a0 interface{}, _a1 interface{}) *ContainerClient_PullImage_Call
PullImage is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*ContainerClient_Expecter) Remove ¶
func (_e *ContainerClient_Expecter) Remove(_a0 interface{}, _a1 interface{}) *ContainerClient_Remove_Call
Remove is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*ContainerClient_Expecter) Start ¶
func (_e *ContainerClient_Expecter) Start(_a0 interface{}, _a1 interface{}) *ContainerClient_Start_Call
Start is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*ContainerClient_Expecter) Stop ¶
func (_e *ContainerClient_Expecter) Stop(_a0 interface{}, _a1 interface{}) *ContainerClient_Stop_Call
Stop is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*ContainerClient_Expecter) Wait ¶
func (_e *ContainerClient_Expecter) Wait(_a0 interface{}, _a1 interface{}) *ContainerClient_Wait_Call
Wait is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
type ContainerClient_ImageExists_Call ¶
ContainerClient_ImageExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImageExists'
func (*ContainerClient_ImageExists_Call) Return ¶
func (_c *ContainerClient_ImageExists_Call) Return(_a0 bool, _a1 error) *ContainerClient_ImageExists_Call
func (*ContainerClient_ImageExists_Call) Run ¶
func (_c *ContainerClient_ImageExists_Call) Run(run func(_a0 context.Context, _a1 string)) *ContainerClient_ImageExists_Call
func (*ContainerClient_ImageExists_Call) RunAndReturn ¶
func (_c *ContainerClient_ImageExists_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *ContainerClient_ImageExists_Call
type ContainerClient_Logs_Call ¶
ContainerClient_Logs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logs'
func (*ContainerClient_Logs_Call) Return ¶
func (_c *ContainerClient_Logs_Call) Return(_a0 string, _a1 string, _a2 error) *ContainerClient_Logs_Call
func (*ContainerClient_Logs_Call) Run ¶
func (_c *ContainerClient_Logs_Call) Run(run func(_a0 context.Context, _a1 string)) *ContainerClient_Logs_Call
func (*ContainerClient_Logs_Call) RunAndReturn ¶
func (_c *ContainerClient_Logs_Call) RunAndReturn(run func(context.Context, string) (string, string, error)) *ContainerClient_Logs_Call
type ContainerClient_PullImage_Call ¶
ContainerClient_PullImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PullImage'
func (*ContainerClient_PullImage_Call) Return ¶
func (_c *ContainerClient_PullImage_Call) Return(_a0 error) *ContainerClient_PullImage_Call
func (*ContainerClient_PullImage_Call) Run ¶
func (_c *ContainerClient_PullImage_Call) Run(run func(_a0 context.Context, _a1 string)) *ContainerClient_PullImage_Call
func (*ContainerClient_PullImage_Call) RunAndReturn ¶
func (_c *ContainerClient_PullImage_Call) RunAndReturn(run func(context.Context, string) error) *ContainerClient_PullImage_Call
type ContainerClient_Remove_Call ¶
ContainerClient_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
func (*ContainerClient_Remove_Call) Return ¶
func (_c *ContainerClient_Remove_Call) Return(_a0 error) *ContainerClient_Remove_Call
func (*ContainerClient_Remove_Call) Run ¶
func (_c *ContainerClient_Remove_Call) Run(run func(_a0 context.Context, _a1 string)) *ContainerClient_Remove_Call
func (*ContainerClient_Remove_Call) RunAndReturn ¶
func (_c *ContainerClient_Remove_Call) RunAndReturn(run func(context.Context, string) error) *ContainerClient_Remove_Call
type ContainerClient_Start_Call ¶
ContainerClient_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*ContainerClient_Start_Call) Return ¶
func (_c *ContainerClient_Start_Call) Return(_a0 error) *ContainerClient_Start_Call
func (*ContainerClient_Start_Call) Run ¶
func (_c *ContainerClient_Start_Call) Run(run func(_a0 context.Context, _a1 string)) *ContainerClient_Start_Call
func (*ContainerClient_Start_Call) RunAndReturn ¶
func (_c *ContainerClient_Start_Call) RunAndReturn(run func(context.Context, string) error) *ContainerClient_Start_Call
type ContainerClient_Stop_Call ¶
ContainerClient_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*ContainerClient_Stop_Call) Return ¶
func (_c *ContainerClient_Stop_Call) Return(_a0 error) *ContainerClient_Stop_Call
func (*ContainerClient_Stop_Call) Run ¶
func (_c *ContainerClient_Stop_Call) Run(run func(_a0 context.Context, _a1 string)) *ContainerClient_Stop_Call
func (*ContainerClient_Stop_Call) RunAndReturn ¶
func (_c *ContainerClient_Stop_Call) RunAndReturn(run func(context.Context, string) error) *ContainerClient_Stop_Call
type ContainerClient_Wait_Call ¶
ContainerClient_Wait_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Wait'
func (*ContainerClient_Wait_Call) Return ¶
func (_c *ContainerClient_Wait_Call) Return(_a0 int, _a1 string, _a2 error) *ContainerClient_Wait_Call
func (*ContainerClient_Wait_Call) Run ¶
func (_c *ContainerClient_Wait_Call) Run(run func(_a0 context.Context, _a1 string)) *ContainerClient_Wait_Call
func (*ContainerClient_Wait_Call) RunAndReturn ¶
func (_c *ContainerClient_Wait_Call) RunAndReturn(run func(context.Context, string) (int, string, error)) *ContainerClient_Wait_Call
type ContainerMemory ¶
ContainerMemory is an autogenerated mock type for the Memory type
func NewContainerMemory ¶
func NewContainerMemory(t interface {
mock.TestingT
Cleanup(func())
}) *ContainerMemory
NewContainerMemory creates a new instance of ContainerMemory. 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 (*ContainerMemory) AddID ¶
func (_m *ContainerMemory) AddID(_a0 string) error
AddID provides a mock function with given fields: _a0
func (*ContainerMemory) EXPECT ¶
func (_m *ContainerMemory) EXPECT() *ContainerMemory_Expecter
func (*ContainerMemory) RemoveID ¶
func (_m *ContainerMemory) RemoveID(_a0 string) error
RemoveID provides a mock function with given fields: _a0
type ContainerMemory_AddID_Call ¶
ContainerMemory_AddID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddID'
func (*ContainerMemory_AddID_Call) Return ¶
func (_c *ContainerMemory_AddID_Call) Return(_a0 error) *ContainerMemory_AddID_Call
func (*ContainerMemory_AddID_Call) Run ¶
func (_c *ContainerMemory_AddID_Call) Run(run func(_a0 string)) *ContainerMemory_AddID_Call
func (*ContainerMemory_AddID_Call) RunAndReturn ¶
func (_c *ContainerMemory_AddID_Call) RunAndReturn(run func(string) error) *ContainerMemory_AddID_Call
type ContainerMemory_Expecter ¶
type ContainerMemory_Expecter struct {
// contains filtered or unexported fields
}
func (*ContainerMemory_Expecter) AddID ¶
func (_e *ContainerMemory_Expecter) AddID(_a0 interface{}) *ContainerMemory_AddID_Call
AddID is a helper method to define mock.On call
- _a0 string
func (*ContainerMemory_Expecter) RemoveID ¶
func (_e *ContainerMemory_Expecter) RemoveID(_a0 interface{}) *ContainerMemory_RemoveID_Call
RemoveID is a helper method to define mock.On call
- _a0 string
type ContainerMemory_RemoveID_Call ¶
ContainerMemory_RemoveID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveID'
func (*ContainerMemory_RemoveID_Call) Return ¶
func (_c *ContainerMemory_RemoveID_Call) Return(_a0 error) *ContainerMemory_RemoveID_Call
func (*ContainerMemory_RemoveID_Call) Run ¶
func (_c *ContainerMemory_RemoveID_Call) Run(run func(_a0 string)) *ContainerMemory_RemoveID_Call
func (*ContainerMemory_RemoveID_Call) RunAndReturn ¶
func (_c *ContainerMemory_RemoveID_Call) RunAndReturn(run func(string) error) *ContainerMemory_RemoveID_Call
type StateCleaner ¶
StateCleaner is an autogenerated mock type for the Cleaner type
func NewStateCleaner ¶
func NewStateCleaner(t interface {
mock.TestingT
Cleanup(func())
}) *StateCleaner
NewStateCleaner creates a new instance of StateCleaner. 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 (*StateCleaner) CleanUp ¶
func (_m *StateCleaner) CleanUp(_a0 context.Context, _a1 string) error
CleanUp provides a mock function with given fields: _a0, _a1
func (*StateCleaner) EXPECT ¶
func (_m *StateCleaner) EXPECT() *StateCleaner_Expecter
type StateCleaner_CleanUp_Call ¶
StateCleaner_CleanUp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CleanUp'
func (*StateCleaner_CleanUp_Call) Return ¶
func (_c *StateCleaner_CleanUp_Call) Return(_a0 error) *StateCleaner_CleanUp_Call
func (*StateCleaner_CleanUp_Call) Run ¶
func (_c *StateCleaner_CleanUp_Call) Run(run func(_a0 context.Context, _a1 string)) *StateCleaner_CleanUp_Call
func (*StateCleaner_CleanUp_Call) RunAndReturn ¶
func (_c *StateCleaner_CleanUp_Call) RunAndReturn(run func(context.Context, string) error) *StateCleaner_CleanUp_Call
type StateCleaner_Expecter ¶
type StateCleaner_Expecter struct {
// contains filtered or unexported fields
}
func (*StateCleaner_Expecter) CleanUp ¶
func (_e *StateCleaner_Expecter) CleanUp(_a0 interface{}, _a1 interface{}) *StateCleaner_CleanUp_Call
CleanUp is a helper method to define mock.On call
- _a0 context.Context
- _a1 string