mocknodes

package
v0.46.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package mocknodes is a generated GoMock package.

Package mocknodes is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

func (m *MockNode) AddEndpoint(e links.Endpoint)

AddEndpoint mocks base method.

func (m *MockNode) AddLink(l links.Link)

AddLink mocks base method.

func (*MockNode) AddLinkToContainer

func (m *MockNode) AddLinkToContainer(ctx context.Context, link netlink.Link, f func(ns.NetNS) error) error

AddLinkToContainer mocks base method.

func (*MockNode) CheckDeploymentConditions

func (m *MockNode) CheckDeploymentConditions(arg0 context.Context) error

CheckDeploymentConditions mocks base method.

func (*MockNode) CheckInterfaceName

func (m *MockNode) CheckInterfaceName() error

CheckInterfaceName mocks base method.

func (*MockNode) Config

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

Config mocks base method.

func (*MockNode) Delete

func (m *MockNode) Delete(arg0 context.Context) error

Delete mocks base method.

func (m *MockNode) DeleteNetnsSymlink() error

DeleteNetnsSymlink mocks base method.

func (*MockNode) Deploy

func (m *MockNode) Deploy(arg0 context.Context, arg1 *nodes.DeployParams) error

Deploy mocks base method.

func (m *MockNode) DeployLinks(ctx context.Context) error

DeployLinks 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) ExecFunction

func (m *MockNode) ExecFunction(arg0 func(ns.NetNS) error) error

ExecFunction mocks base method.

func (*MockNode) GenerateConfig

func (m *MockNode) GenerateConfig(dst, templ string) error

GenerateConfig mocks base method.

func (*MockNode) GetContainers

func (m *MockNode) GetContainers(ctx context.Context) ([]runtime.GenericContainer, error)

GetContainers mocks base method.

func (*MockNode) GetEndpoints

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

GetEndpoints mocks base method.

func (*MockNode) GetImages

func (m *MockNode) GetImages(arg0 context.Context) map[string]string

GetImages mocks base method.

func (*MockNode) GetLinkEndpointType

func (m *MockNode) GetLinkEndpointType() links.LinkEndpointType

GetLinkEndpointType mocks base method.

func (*MockNode) GetRuntime

func (m *MockNode) GetRuntime() runtime.ContainerRuntime

GetRuntime mocks base method.

func (*MockNode) GetShortName

func (m *MockNode) GetShortName() string

GetShortName mocks base method.

func (*MockNode) GetState

func (m *MockNode) GetState() state.NodeState

GetState mocks base method.

func (*MockNode) Init

func (m *MockNode) Init(arg0 *types.NodeConfig, arg1 ...nodes.NodeOption) error

Init mocks base method.

func (*MockNode) PostDeploy

func (m *MockNode) PostDeploy(ctx context.Context, params *nodes.PostDeployParams) error

PostDeploy mocks base method.

func (*MockNode) PreDeploy

func (m *MockNode) PreDeploy(ctx context.Context, params *nodes.PreDeployParams) error

PreDeploy mocks base method.

func (*MockNode) RunExec

func (m *MockNode) RunExec(ctx context.Context, execCmd *exec.ExecCmd) (*exec.ExecResult, error)

RunExec mocks base method.

func (*MockNode) SaveConfig

func (m *MockNode) SaveConfig(arg0 context.Context) error

SaveConfig mocks base method.

func (*MockNode) SetState added in v0.46.0

func (m *MockNode) SetState(arg0 state.NodeState)

SetState mocks base method.

func (*MockNode) UpdateConfigWithRuntimeInfo

func (m *MockNode) UpdateConfigWithRuntimeInfo(arg0 context.Context) error

UpdateConfigWithRuntimeInfo mocks base method.

func (*MockNode) VerifyStartupConfig

func (m *MockNode) VerifyStartupConfig(topoDir string) error

VerifyStartupConfig mocks base method.

func (*MockNode) WithMgmtNet

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

WithMgmtNet mocks base method.

func (*MockNode) WithRuntime

func (m *MockNode) WithRuntime(arg0 runtime.ContainerRuntime)

WithRuntime mocks base method.

type MockNodeMockRecorder

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

MockNodeMockRecorder is the mock recorder for MockNode.

func (*MockNodeMockRecorder) AddEndpoint

func (mr *MockNodeMockRecorder) AddEndpoint(e interface{}) *gomock.Call

AddEndpoint indicates an expected call of AddEndpoint.

func (mr *MockNodeMockRecorder) AddLink(l interface{}) *gomock.Call

AddLink indicates an expected call of AddLink.

func (*MockNodeMockRecorder) AddLinkToContainer

func (mr *MockNodeMockRecorder) AddLinkToContainer(ctx, link, f interface{}) *gomock.Call

AddLinkToContainer indicates an expected call of AddLinkToContainer.

func (*MockNodeMockRecorder) CheckDeploymentConditions

func (mr *MockNodeMockRecorder) CheckDeploymentConditions(arg0 interface{}) *gomock.Call

CheckDeploymentConditions indicates an expected call of CheckDeploymentConditions.

func (*MockNodeMockRecorder) CheckInterfaceName

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

CheckInterfaceName indicates an expected call of CheckInterfaceName.

func (*MockNodeMockRecorder) Config

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

Config indicates an expected call of Config.

func (*MockNodeMockRecorder) Delete

func (mr *MockNodeMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

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

DeleteNetnsSymlink indicates an expected call of DeleteNetnsSymlink.

func (*MockNodeMockRecorder) Deploy

func (mr *MockNodeMockRecorder) Deploy(arg0, arg1 interface{}) *gomock.Call

Deploy indicates an expected call of Deploy.

func (mr *MockNodeMockRecorder) DeployLinks(ctx interface{}) *gomock.Call

DeployLinks indicates an expected call of DeployLinks.

func (*MockNodeMockRecorder) ExecFunction

func (mr *MockNodeMockRecorder) ExecFunction(arg0 interface{}) *gomock.Call

ExecFunction indicates an expected call of ExecFunction.

func (*MockNodeMockRecorder) GenerateConfig

func (mr *MockNodeMockRecorder) GenerateConfig(dst, templ interface{}) *gomock.Call

GenerateConfig indicates an expected call of GenerateConfig.

func (*MockNodeMockRecorder) GetContainers

func (mr *MockNodeMockRecorder) GetContainers(ctx interface{}) *gomock.Call

GetContainers indicates an expected call of GetContainers.

func (*MockNodeMockRecorder) GetEndpoints

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

GetEndpoints indicates an expected call of GetEndpoints.

func (*MockNodeMockRecorder) GetImages

func (mr *MockNodeMockRecorder) GetImages(arg0 interface{}) *gomock.Call

GetImages indicates an expected call of GetImages.

func (*MockNodeMockRecorder) GetLinkEndpointType

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

GetLinkEndpointType indicates an expected call of GetLinkEndpointType.

func (*MockNodeMockRecorder) GetRuntime

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

GetRuntime indicates an expected call of GetRuntime.

func (*MockNodeMockRecorder) GetShortName

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

GetShortName indicates an expected call of GetShortName.

func (*MockNodeMockRecorder) GetState

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

GetState indicates an expected call of GetState.

func (*MockNodeMockRecorder) Init

func (mr *MockNodeMockRecorder) Init(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Init indicates an expected call of Init.

func (*MockNodeMockRecorder) PostDeploy

func (mr *MockNodeMockRecorder) PostDeploy(ctx, params interface{}) *gomock.Call

PostDeploy indicates an expected call of PostDeploy.

func (*MockNodeMockRecorder) PreDeploy

func (mr *MockNodeMockRecorder) PreDeploy(ctx, params interface{}) *gomock.Call

PreDeploy indicates an expected call of PreDeploy.

func (*MockNodeMockRecorder) RunExec

func (mr *MockNodeMockRecorder) RunExec(ctx, execCmd interface{}) *gomock.Call

RunExec indicates an expected call of RunExec.

func (*MockNodeMockRecorder) SaveConfig

func (mr *MockNodeMockRecorder) SaveConfig(arg0 interface{}) *gomock.Call

SaveConfig indicates an expected call of SaveConfig.

func (*MockNodeMockRecorder) SetState added in v0.46.0

func (mr *MockNodeMockRecorder) SetState(arg0 interface{}) *gomock.Call

SetState indicates an expected call of SetState.

func (*MockNodeMockRecorder) UpdateConfigWithRuntimeInfo

func (mr *MockNodeMockRecorder) UpdateConfigWithRuntimeInfo(arg0 interface{}) *gomock.Call

UpdateConfigWithRuntimeInfo indicates an expected call of UpdateConfigWithRuntimeInfo.

func (*MockNodeMockRecorder) VerifyStartupConfig

func (mr *MockNodeMockRecorder) VerifyStartupConfig(topoDir interface{}) *gomock.Call

VerifyStartupConfig indicates an expected call of VerifyStartupConfig.

func (*MockNodeMockRecorder) WithMgmtNet

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

WithMgmtNet indicates an expected call of WithMgmtNet.

func (*MockNodeMockRecorder) WithRuntime

func (mr *MockNodeMockRecorder) WithRuntime(arg0 interface{}) *gomock.Call

WithRuntime indicates an expected call of WithRuntime.

type MockNodeOverwrites

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

MockNodeOverwrites is a mock of NodeOverwrites interface.

func NewMockNodeOverwrites

func NewMockNodeOverwrites(ctrl *gomock.Controller) *MockNodeOverwrites

NewMockNodeOverwrites creates a new mock instance.

func (*MockNodeOverwrites) CheckInterfaceName

func (m *MockNodeOverwrites) CheckInterfaceName() error

CheckInterfaceName mocks base method.

func (*MockNodeOverwrites) EXPECT

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

func (*MockNodeOverwrites) GetContainerName

func (m *MockNodeOverwrites) GetContainerName() string

GetContainerName mocks base method.

func (*MockNodeOverwrites) GetContainers

func (m *MockNodeOverwrites) GetContainers(ctx context.Context) ([]runtime.GenericContainer, error)

GetContainers mocks base method.

func (*MockNodeOverwrites) GetImages

func (m *MockNodeOverwrites) GetImages(ctx context.Context) map[string]string

GetImages mocks base method.

func (*MockNodeOverwrites) PullImage

func (m *MockNodeOverwrites) PullImage(ctx context.Context) error

PullImage mocks base method.

func (*MockNodeOverwrites) VerifyHostRequirements

func (m *MockNodeOverwrites) VerifyHostRequirements() error

VerifyHostRequirements mocks base method.

func (*MockNodeOverwrites) VerifyLicenseFileExists

func (m *MockNodeOverwrites) VerifyLicenseFileExists(arg0 context.Context) error

VerifyLicenseFileExists mocks base method.

func (*MockNodeOverwrites) VerifyStartupConfig

func (m *MockNodeOverwrites) VerifyStartupConfig(topoDir string) error

VerifyStartupConfig mocks base method.

type MockNodeOverwritesMockRecorder

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

MockNodeOverwritesMockRecorder is the mock recorder for MockNodeOverwrites.

func (*MockNodeOverwritesMockRecorder) CheckInterfaceName

func (mr *MockNodeOverwritesMockRecorder) CheckInterfaceName() *gomock.Call

CheckInterfaceName indicates an expected call of CheckInterfaceName.

func (*MockNodeOverwritesMockRecorder) GetContainerName

func (mr *MockNodeOverwritesMockRecorder) GetContainerName() *gomock.Call

GetContainerName indicates an expected call of GetContainerName.

func (*MockNodeOverwritesMockRecorder) GetContainers

func (mr *MockNodeOverwritesMockRecorder) GetContainers(ctx interface{}) *gomock.Call

GetContainers indicates an expected call of GetContainers.

func (*MockNodeOverwritesMockRecorder) GetImages

func (mr *MockNodeOverwritesMockRecorder) GetImages(ctx interface{}) *gomock.Call

GetImages indicates an expected call of GetImages.

func (*MockNodeOverwritesMockRecorder) PullImage

func (mr *MockNodeOverwritesMockRecorder) PullImage(ctx interface{}) *gomock.Call

PullImage indicates an expected call of PullImage.

func (*MockNodeOverwritesMockRecorder) VerifyHostRequirements

func (mr *MockNodeOverwritesMockRecorder) VerifyHostRequirements() *gomock.Call

VerifyHostRequirements indicates an expected call of VerifyHostRequirements.

func (*MockNodeOverwritesMockRecorder) VerifyLicenseFileExists

func (mr *MockNodeOverwritesMockRecorder) VerifyLicenseFileExists(arg0 interface{}) *gomock.Call

VerifyLicenseFileExists indicates an expected call of VerifyLicenseFileExists.

func (*MockNodeOverwritesMockRecorder) VerifyStartupConfig

func (mr *MockNodeOverwritesMockRecorder) VerifyStartupConfig(topoDir interface{}) *gomock.Call

VerifyStartupConfig indicates an expected call of VerifyStartupConfig.

Jump to

Keyboard shortcuts

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