mockruntime

package
v0.44.3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package mockruntime is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockContainerRuntime

type MockContainerRuntime struct {
	// contains filtered or unexported fields
}

MockContainerRuntime is a mock of ContainerRuntime interface.

func NewMockContainerRuntime

func NewMockContainerRuntime(ctrl *gomock.Controller) *MockContainerRuntime

NewMockContainerRuntime creates a new mock instance.

func (*MockContainerRuntime) Config

Config mocks base method.

func (*MockContainerRuntime) CreateContainer

func (m *MockContainerRuntime) CreateContainer(arg0 context.Context, arg1 *types.NodeConfig) (string, error)

CreateContainer mocks base method.

func (*MockContainerRuntime) CreateNet

func (m *MockContainerRuntime) CreateNet(arg0 context.Context) error

CreateNet mocks base method.

func (*MockContainerRuntime) DeleteContainer

func (m *MockContainerRuntime) DeleteContainer(arg0 context.Context, arg1 string) error

DeleteContainer mocks base method.

func (*MockContainerRuntime) DeleteNet

func (m *MockContainerRuntime) DeleteNet(arg0 context.Context) error

DeleteNet mocks base method.

func (*MockContainerRuntime) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockContainerRuntime) Exec

func (m *MockContainerRuntime) Exec(ctx context.Context, cID string, execCmd *exec.ExecCmd) (*exec.ExecResult, error)

Exec mocks base method.

func (*MockContainerRuntime) ExecNotWait

func (m *MockContainerRuntime) ExecNotWait(ctx context.Context, cID string, execCmd *exec.ExecCmd) error

ExecNotWait mocks base method.

func (*MockContainerRuntime) GetContainerStatus

func (m *MockContainerRuntime) GetContainerStatus(ctx context.Context, cID string) runtime.ContainerStatus

GetContainerStatus mocks base method.

func (*MockContainerRuntime) GetHostsPath

func (m *MockContainerRuntime) GetHostsPath(arg0 context.Context, arg1 string) (string, error)

GetHostsPath mocks base method.

func (*MockContainerRuntime) GetNSPath

func (m *MockContainerRuntime) GetNSPath(arg0 context.Context, arg1 string) (string, error)

GetNSPath mocks base method.

func (*MockContainerRuntime) GetName

func (m *MockContainerRuntime) GetName() string

GetName mocks base method.

func (*MockContainerRuntime) Init

Init mocks base method.

func (*MockContainerRuntime) ListContainers

func (m *MockContainerRuntime) ListContainers(arg0 context.Context, arg1 []*types.GenericFilter) ([]runtime.GenericContainer, error)

ListContainers mocks base method.

func (*MockContainerRuntime) Mgmt

func (m *MockContainerRuntime) Mgmt() *types.MgmtNet

Mgmt mocks base method.

func (*MockContainerRuntime) PauseContainer

func (m *MockContainerRuntime) PauseContainer(arg0 context.Context, arg1 string) error

PauseContainer mocks base method.

func (*MockContainerRuntime) PullImage

func (m *MockContainerRuntime) PullImage(arg0 context.Context, arg1 string, arg2 types.PullPolicyValue) error

PullImage mocks base method.

func (*MockContainerRuntime) StartContainer

func (m *MockContainerRuntime) StartContainer(arg0 context.Context, arg1 string, arg2 runtime.Node) (interface{}, error)

StartContainer mocks base method.

func (*MockContainerRuntime) StopContainer

func (m *MockContainerRuntime) StopContainer(arg0 context.Context, arg1 string) error

StopContainer mocks base method.

func (*MockContainerRuntime) UnpauseContainer

func (m *MockContainerRuntime) UnpauseContainer(arg0 context.Context, arg1 string) error

UnpauseContainer mocks base method.

func (*MockContainerRuntime) WithConfig

func (m *MockContainerRuntime) WithConfig(arg0 *runtime.RuntimeConfig)

WithConfig mocks base method.

func (*MockContainerRuntime) WithKeepMgmtNet

func (m *MockContainerRuntime) WithKeepMgmtNet()

WithKeepMgmtNet mocks base method.

func (*MockContainerRuntime) WithMgmtNet

func (m *MockContainerRuntime) WithMgmtNet(arg0 *types.MgmtNet)

WithMgmtNet mocks base method.

type MockContainerRuntimeMockRecorder

type MockContainerRuntimeMockRecorder struct {
	// contains filtered or unexported fields
}

MockContainerRuntimeMockRecorder is the mock recorder for MockContainerRuntime.

func (*MockContainerRuntimeMockRecorder) Config

Config indicates an expected call of Config.

func (*MockContainerRuntimeMockRecorder) CreateContainer

func (mr *MockContainerRuntimeMockRecorder) CreateContainer(arg0, arg1 interface{}) *gomock.Call

CreateContainer indicates an expected call of CreateContainer.

func (*MockContainerRuntimeMockRecorder) CreateNet

func (mr *MockContainerRuntimeMockRecorder) CreateNet(arg0 interface{}) *gomock.Call

CreateNet indicates an expected call of CreateNet.

func (*MockContainerRuntimeMockRecorder) DeleteContainer

func (mr *MockContainerRuntimeMockRecorder) DeleteContainer(arg0, arg1 interface{}) *gomock.Call

DeleteContainer indicates an expected call of DeleteContainer.

func (*MockContainerRuntimeMockRecorder) DeleteNet

func (mr *MockContainerRuntimeMockRecorder) DeleteNet(arg0 interface{}) *gomock.Call

DeleteNet indicates an expected call of DeleteNet.

func (*MockContainerRuntimeMockRecorder) Exec

func (mr *MockContainerRuntimeMockRecorder) Exec(ctx, cID, execCmd interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockContainerRuntimeMockRecorder) ExecNotWait

func (mr *MockContainerRuntimeMockRecorder) ExecNotWait(ctx, cID, execCmd interface{}) *gomock.Call

ExecNotWait indicates an expected call of ExecNotWait.

func (*MockContainerRuntimeMockRecorder) GetContainerStatus

func (mr *MockContainerRuntimeMockRecorder) GetContainerStatus(ctx, cID interface{}) *gomock.Call

GetContainerStatus indicates an expected call of GetContainerStatus.

func (*MockContainerRuntimeMockRecorder) GetHostsPath

func (mr *MockContainerRuntimeMockRecorder) GetHostsPath(arg0, arg1 interface{}) *gomock.Call

GetHostsPath indicates an expected call of GetHostsPath.

func (*MockContainerRuntimeMockRecorder) GetNSPath

func (mr *MockContainerRuntimeMockRecorder) GetNSPath(arg0, arg1 interface{}) *gomock.Call

GetNSPath indicates an expected call of GetNSPath.

func (*MockContainerRuntimeMockRecorder) GetName

GetName indicates an expected call of GetName.

func (*MockContainerRuntimeMockRecorder) Init

func (mr *MockContainerRuntimeMockRecorder) Init(arg0 ...interface{}) *gomock.Call

Init indicates an expected call of Init.

func (*MockContainerRuntimeMockRecorder) ListContainers

func (mr *MockContainerRuntimeMockRecorder) ListContainers(arg0, arg1 interface{}) *gomock.Call

ListContainers indicates an expected call of ListContainers.

func (*MockContainerRuntimeMockRecorder) Mgmt

Mgmt indicates an expected call of Mgmt.

func (*MockContainerRuntimeMockRecorder) PauseContainer

func (mr *MockContainerRuntimeMockRecorder) PauseContainer(arg0, arg1 interface{}) *gomock.Call

PauseContainer indicates an expected call of PauseContainer.

func (*MockContainerRuntimeMockRecorder) PullImage

func (mr *MockContainerRuntimeMockRecorder) PullImage(arg0, arg1, arg2 interface{}) *gomock.Call

PullImage indicates an expected call of PullImage.

func (*MockContainerRuntimeMockRecorder) StartContainer

func (mr *MockContainerRuntimeMockRecorder) StartContainer(arg0, arg1, arg2 interface{}) *gomock.Call

StartContainer indicates an expected call of StartContainer.

func (*MockContainerRuntimeMockRecorder) StopContainer

func (mr *MockContainerRuntimeMockRecorder) StopContainer(arg0, arg1 interface{}) *gomock.Call

StopContainer indicates an expected call of StopContainer.

func (*MockContainerRuntimeMockRecorder) UnpauseContainer

func (mr *MockContainerRuntimeMockRecorder) UnpauseContainer(arg0, arg1 interface{}) *gomock.Call

UnpauseContainer indicates an expected call of UnpauseContainer.

func (*MockContainerRuntimeMockRecorder) WithConfig

func (mr *MockContainerRuntimeMockRecorder) WithConfig(arg0 interface{}) *gomock.Call

WithConfig indicates an expected call of WithConfig.

func (*MockContainerRuntimeMockRecorder) WithKeepMgmtNet

func (mr *MockContainerRuntimeMockRecorder) WithKeepMgmtNet() *gomock.Call

WithKeepMgmtNet indicates an expected call of WithKeepMgmtNet.

func (*MockContainerRuntimeMockRecorder) WithMgmtNet

func (mr *MockContainerRuntimeMockRecorder) WithMgmtNet(arg0 interface{}) *gomock.Call

WithMgmtNet indicates an expected call of WithMgmtNet.

type MockNode

type MockNode struct {
	// contains filtered or unexported fields
}

MockNode is a mock of Node interface.

func NewMockNode

func NewMockNode(ctrl *gomock.Controller) *MockNode

NewMockNode creates a new mock instance.

func (*MockNode) Config

func (m *MockNode) Config() *types.NodeConfig

Config mocks base method.

func (*MockNode) EXPECT

func (m *MockNode) EXPECT() *MockNodeMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNode) GetEndpoints

func (m *MockNode) GetEndpoints() []links.Endpoint

GetEndpoints mocks base method.

type MockNodeMockRecorder

type MockNodeMockRecorder struct {
	// contains filtered or unexported fields
}

MockNodeMockRecorder is the mock recorder for MockNode.

func (*MockNodeMockRecorder) Config

func (mr *MockNodeMockRecorder) Config() *gomock.Call

Config indicates an expected call of Config.

func (*MockNodeMockRecorder) GetEndpoints

func (mr *MockNodeMockRecorder) GetEndpoints() *gomock.Call

GetEndpoints indicates an expected call of GetEndpoints.

Jump to

Keyboard shortcuts

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