Documentation ¶
Index ¶
- type MockSandbox
- func (_m *MockSandbox) Available() bool
- func (_m *MockSandbox) ContainerConfig() *containers.ContainerConfig
- func (_m *MockSandbox) Dir(dirType dir.DirType) (string, error)
- func (_m *MockSandbox) Dirs() map[dir.DirType]string
- func (_m *MockSandbox) EXPECT() *MockSandbox_Expecter
- func (_m *MockSandbox) Hook(hookType hooks.HookType) (hooks.Hook, error)
- func (_m *MockSandbox) Hooks() hooks.Hooks
- func (_m *MockSandbox) Inherit(parentSandbox sandbox.Sandbox) error
- type MockSandbox_Available_Call
- type MockSandbox_ContainerConfig_Call
- func (_c *MockSandbox_ContainerConfig_Call) Return(_a0 *containers.ContainerConfig) *MockSandbox_ContainerConfig_Call
- func (_c *MockSandbox_ContainerConfig_Call) Run(run func()) *MockSandbox_ContainerConfig_Call
- func (_c *MockSandbox_ContainerConfig_Call) RunAndReturn(run func() *containers.ContainerConfig) *MockSandbox_ContainerConfig_Call
- type MockSandbox_Dir_Call
- type MockSandbox_Dirs_Call
- type MockSandbox_Expecter
- func (_e *MockSandbox_Expecter) Available() *MockSandbox_Available_Call
- func (_e *MockSandbox_Expecter) ContainerConfig() *MockSandbox_ContainerConfig_Call
- func (_e *MockSandbox_Expecter) Dir(dirType interface{}) *MockSandbox_Dir_Call
- func (_e *MockSandbox_Expecter) Dirs() *MockSandbox_Dirs_Call
- func (_e *MockSandbox_Expecter) Hook(hookType interface{}) *MockSandbox_Hook_Call
- func (_e *MockSandbox_Expecter) Hooks() *MockSandbox_Hooks_Call
- func (_e *MockSandbox_Expecter) Inherit(parentSandbox interface{}) *MockSandbox_Inherit_Call
- type MockSandbox_Hook_Call
- type MockSandbox_Hooks_Call
- type MockSandbox_Inherit_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSandbox ¶
MockSandbox is an autogenerated mock type for the Sandbox type
func NewMockSandbox ¶
func NewMockSandbox(t interface { mock.TestingT Cleanup(func()) }) *MockSandbox
NewMockSandbox creates a new instance of MockSandbox. 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 (*MockSandbox) Available ¶
func (_m *MockSandbox) Available() bool
Available provides a mock function with given fields:
func (*MockSandbox) ContainerConfig ¶
func (_m *MockSandbox) ContainerConfig() *containers.ContainerConfig
ContainerConfig provides a mock function with given fields:
func (*MockSandbox) Dir ¶
func (_m *MockSandbox) Dir(dirType dir.DirType) (string, error)
Dir provides a mock function with given fields: dirType
func (*MockSandbox) Dirs ¶
func (_m *MockSandbox) Dirs() map[dir.DirType]string
Dirs provides a mock function with given fields:
func (*MockSandbox) EXPECT ¶
func (_m *MockSandbox) EXPECT() *MockSandbox_Expecter
func (*MockSandbox) Hooks ¶
func (_m *MockSandbox) Hooks() hooks.Hooks
Hooks provides a mock function with given fields:
type MockSandbox_Available_Call ¶
MockSandbox_Available_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Available'
func (*MockSandbox_Available_Call) Return ¶
func (_c *MockSandbox_Available_Call) Return(_a0 bool) *MockSandbox_Available_Call
func (*MockSandbox_Available_Call) Run ¶
func (_c *MockSandbox_Available_Call) Run(run func()) *MockSandbox_Available_Call
func (*MockSandbox_Available_Call) RunAndReturn ¶
func (_c *MockSandbox_Available_Call) RunAndReturn(run func() bool) *MockSandbox_Available_Call
type MockSandbox_ContainerConfig_Call ¶
MockSandbox_ContainerConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerConfig'
func (*MockSandbox_ContainerConfig_Call) Return ¶
func (_c *MockSandbox_ContainerConfig_Call) Return(_a0 *containers.ContainerConfig) *MockSandbox_ContainerConfig_Call
func (*MockSandbox_ContainerConfig_Call) Run ¶
func (_c *MockSandbox_ContainerConfig_Call) Run(run func()) *MockSandbox_ContainerConfig_Call
func (*MockSandbox_ContainerConfig_Call) RunAndReturn ¶
func (_c *MockSandbox_ContainerConfig_Call) RunAndReturn(run func() *containers.ContainerConfig) *MockSandbox_ContainerConfig_Call
type MockSandbox_Dir_Call ¶
MockSandbox_Dir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Dir'
func (*MockSandbox_Dir_Call) Return ¶
func (_c *MockSandbox_Dir_Call) Return(_a0 string, _a1 error) *MockSandbox_Dir_Call
func (*MockSandbox_Dir_Call) Run ¶
func (_c *MockSandbox_Dir_Call) Run(run func(dirType dir.DirType)) *MockSandbox_Dir_Call
func (*MockSandbox_Dir_Call) RunAndReturn ¶
func (_c *MockSandbox_Dir_Call) RunAndReturn(run func(dir.DirType) (string, error)) *MockSandbox_Dir_Call
type MockSandbox_Dirs_Call ¶
MockSandbox_Dirs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Dirs'
func (*MockSandbox_Dirs_Call) Return ¶
func (_c *MockSandbox_Dirs_Call) Return(_a0 map[dir.DirType]string) *MockSandbox_Dirs_Call
func (*MockSandbox_Dirs_Call) Run ¶
func (_c *MockSandbox_Dirs_Call) Run(run func()) *MockSandbox_Dirs_Call
func (*MockSandbox_Dirs_Call) RunAndReturn ¶
func (_c *MockSandbox_Dirs_Call) RunAndReturn(run func() map[dir.DirType]string) *MockSandbox_Dirs_Call
type MockSandbox_Expecter ¶
type MockSandbox_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSandbox_Expecter) Available ¶
func (_e *MockSandbox_Expecter) Available() *MockSandbox_Available_Call
Available is a helper method to define mock.On call
func (*MockSandbox_Expecter) ContainerConfig ¶
func (_e *MockSandbox_Expecter) ContainerConfig() *MockSandbox_ContainerConfig_Call
ContainerConfig is a helper method to define mock.On call
func (*MockSandbox_Expecter) Dir ¶
func (_e *MockSandbox_Expecter) Dir(dirType interface{}) *MockSandbox_Dir_Call
Dir is a helper method to define mock.On call
- dirType dir.DirType
func (*MockSandbox_Expecter) Dirs ¶
func (_e *MockSandbox_Expecter) Dirs() *MockSandbox_Dirs_Call
Dirs is a helper method to define mock.On call
func (*MockSandbox_Expecter) Hook ¶
func (_e *MockSandbox_Expecter) Hook(hookType interface{}) *MockSandbox_Hook_Call
Hook is a helper method to define mock.On call
- hookType hooks.HookType
func (*MockSandbox_Expecter) Hooks ¶
func (_e *MockSandbox_Expecter) Hooks() *MockSandbox_Hooks_Call
Hooks is a helper method to define mock.On call
func (*MockSandbox_Expecter) Inherit ¶
func (_e *MockSandbox_Expecter) Inherit(parentSandbox interface{}) *MockSandbox_Inherit_Call
Inherit is a helper method to define mock.On call
- parentSandbox sandbox.Sandbox
type MockSandbox_Hook_Call ¶
MockSandbox_Hook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hook'
func (*MockSandbox_Hook_Call) Return ¶
func (_c *MockSandbox_Hook_Call) Return(_a0 hooks.Hook, _a1 error) *MockSandbox_Hook_Call
func (*MockSandbox_Hook_Call) Run ¶
func (_c *MockSandbox_Hook_Call) Run(run func(hookType hooks.HookType)) *MockSandbox_Hook_Call
func (*MockSandbox_Hook_Call) RunAndReturn ¶
func (_c *MockSandbox_Hook_Call) RunAndReturn(run func(hooks.HookType) (hooks.Hook, error)) *MockSandbox_Hook_Call
type MockSandbox_Hooks_Call ¶
MockSandbox_Hooks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hooks'
func (*MockSandbox_Hooks_Call) Return ¶
func (_c *MockSandbox_Hooks_Call) Return(_a0 hooks.Hooks) *MockSandbox_Hooks_Call
func (*MockSandbox_Hooks_Call) Run ¶
func (_c *MockSandbox_Hooks_Call) Run(run func()) *MockSandbox_Hooks_Call
func (*MockSandbox_Hooks_Call) RunAndReturn ¶
func (_c *MockSandbox_Hooks_Call) RunAndReturn(run func() hooks.Hooks) *MockSandbox_Hooks_Call
type MockSandbox_Inherit_Call ¶
MockSandbox_Inherit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Inherit'
func (*MockSandbox_Inherit_Call) Return ¶
func (_c *MockSandbox_Inherit_Call) Return(_a0 error) *MockSandbox_Inherit_Call
func (*MockSandbox_Inherit_Call) Run ¶
func (_c *MockSandbox_Inherit_Call) Run(run func(parentSandbox sandbox.Sandbox)) *MockSandbox_Inherit_Call
func (*MockSandbox_Inherit_Call) RunAndReturn ¶
func (_c *MockSandbox_Inherit_Call) RunAndReturn(run func(sandbox.Sandbox) error) *MockSandbox_Inherit_Call