sandbox

package
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSandbox

type MockSandbox struct {
	mock.Mock
}

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) Hook

func (_m *MockSandbox) Hook(hookType hooks.HookType) (hooks.Hook, error)

Hook provides a mock function with given fields: hookType

func (*MockSandbox) Hooks

func (_m *MockSandbox) Hooks() hooks.Hooks

Hooks provides a mock function with given fields:

func (*MockSandbox) Inherit

func (_m *MockSandbox) Inherit(parentSandbox sandbox.Sandbox) error

Inherit provides a mock function with given fields: parentSandbox

type MockSandbox_Available_Call

type MockSandbox_Available_Call struct {
	*mock.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 (*MockSandbox_Available_Call) Run

func (*MockSandbox_Available_Call) RunAndReturn

func (_c *MockSandbox_Available_Call) RunAndReturn(run func() bool) *MockSandbox_Available_Call

type MockSandbox_ContainerConfig_Call

type MockSandbox_ContainerConfig_Call struct {
	*mock.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 (*MockSandbox_ContainerConfig_Call) Run

func (*MockSandbox_ContainerConfig_Call) RunAndReturn

type MockSandbox_Dir_Call

type MockSandbox_Dir_Call struct {
	*mock.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

type MockSandbox_Dirs_Call struct {
	*mock.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 (*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

Available is a helper method to define mock.On call

func (*MockSandbox_Expecter) ContainerConfig

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

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

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

type MockSandbox_Hook_Call struct {
	*mock.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 (*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

type MockSandbox_Hooks_Call struct {
	*mock.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 (*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

type MockSandbox_Inherit_Call struct {
	*mock.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 (*MockSandbox_Inherit_Call) Run

func (_c *MockSandbox_Inherit_Call) Run(run func(parentSandbox sandbox.Sandbox)) *MockSandbox_Inherit_Call

func (*MockSandbox_Inherit_Call) RunAndReturn

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL