Documentation ¶
Overview ¶
Package mocknodes is a generated GoMock package.
Package mocknodes is a generated GoMock package.
Index ¶
- type MockNode
- func (m *MockNode) AddEndpoint(e links.Endpoint)
- func (m *MockNode) AddLink(l links.Link)
- func (m *MockNode) AddLinkToContainer(ctx context.Context, link netlink.Link, f func(ns.NetNS) error) error
- func (m *MockNode) CheckDeploymentConditions(arg0 context.Context) error
- func (m *MockNode) CheckInterfaceName() error
- func (m *MockNode) Config() *types.NodeConfig
- func (m *MockNode) Delete(arg0 context.Context) error
- func (m *MockNode) DeleteNetnsSymlink() error
- func (m *MockNode) Deploy(arg0 context.Context, arg1 *nodes.DeployParams) error
- func (m *MockNode) DeployLinks(ctx context.Context) error
- func (m *MockNode) EXPECT() *MockNodeMockRecorder
- func (m *MockNode) ExecFunction(arg0 func(ns.NetNS) error) error
- func (m *MockNode) GenerateConfig(dst, templ string) error
- func (m *MockNode) GetContainers(ctx context.Context) ([]runtime.GenericContainer, error)
- func (m *MockNode) GetEndpoints() []links.Endpoint
- func (m *MockNode) GetImages(arg0 context.Context) map[string]string
- func (m *MockNode) GetLinkEndpointType() links.LinkEndpointType
- func (m *MockNode) GetRuntime() runtime.ContainerRuntime
- func (m *MockNode) GetShortName() string
- func (m *MockNode) GetState() state.NodeState
- func (m *MockNode) Init(arg0 *types.NodeConfig, arg1 ...nodes.NodeOption) error
- func (m *MockNode) PostDeploy(ctx context.Context, params *nodes.PostDeployParams) error
- func (m *MockNode) PreDeploy(ctx context.Context, params *nodes.PreDeployParams) error
- func (m *MockNode) RunExec(ctx context.Context, execCmd *exec.ExecCmd) (*exec.ExecResult, error)
- func (m *MockNode) SaveConfig(arg0 context.Context) error
- func (m *MockNode) SetState(arg0 state.NodeState)
- func (m *MockNode) UpdateConfigWithRuntimeInfo(arg0 context.Context) error
- func (m *MockNode) VerifyStartupConfig(topoDir string) error
- func (m *MockNode) WithMgmtNet(arg0 *types.MgmtNet)
- func (m *MockNode) WithRuntime(arg0 runtime.ContainerRuntime)
- type MockNodeMockRecorder
- func (mr *MockNodeMockRecorder) AddEndpoint(e interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) AddLink(l interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) AddLinkToContainer(ctx, link, f interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) CheckDeploymentConditions(arg0 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) CheckInterfaceName() *gomock.Call
- func (mr *MockNodeMockRecorder) Config() *gomock.Call
- func (mr *MockNodeMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) DeleteNetnsSymlink() *gomock.Call
- func (mr *MockNodeMockRecorder) Deploy(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) DeployLinks(ctx interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) ExecFunction(arg0 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) GenerateConfig(dst, templ interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) GetContainers(ctx interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) GetEndpoints() *gomock.Call
- func (mr *MockNodeMockRecorder) GetImages(arg0 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) GetLinkEndpointType() *gomock.Call
- func (mr *MockNodeMockRecorder) GetRuntime() *gomock.Call
- func (mr *MockNodeMockRecorder) GetShortName() *gomock.Call
- func (mr *MockNodeMockRecorder) GetState() *gomock.Call
- func (mr *MockNodeMockRecorder) Init(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) PostDeploy(ctx, params interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) PreDeploy(ctx, params interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) RunExec(ctx, execCmd interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) SaveConfig(arg0 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) SetState(arg0 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) UpdateConfigWithRuntimeInfo(arg0 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) VerifyStartupConfig(topoDir interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) WithMgmtNet(arg0 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) WithRuntime(arg0 interface{}) *gomock.Call
- type MockNodeOverwrites
- func (m *MockNodeOverwrites) CheckInterfaceName() error
- func (m *MockNodeOverwrites) EXPECT() *MockNodeOverwritesMockRecorder
- func (m *MockNodeOverwrites) GetContainerName() string
- func (m *MockNodeOverwrites) GetContainers(ctx context.Context) ([]runtime.GenericContainer, error)
- func (m *MockNodeOverwrites) GetImages(ctx context.Context) map[string]string
- func (m *MockNodeOverwrites) PullImage(ctx context.Context) error
- func (m *MockNodeOverwrites) VerifyHostRequirements() error
- func (m *MockNodeOverwrites) VerifyLicenseFileExists(arg0 context.Context) error
- func (m *MockNodeOverwrites) VerifyStartupConfig(topoDir string) error
- type MockNodeOverwritesMockRecorder
- func (mr *MockNodeOverwritesMockRecorder) CheckInterfaceName() *gomock.Call
- func (mr *MockNodeOverwritesMockRecorder) GetContainerName() *gomock.Call
- func (mr *MockNodeOverwritesMockRecorder) GetContainers(ctx interface{}) *gomock.Call
- func (mr *MockNodeOverwritesMockRecorder) GetImages(ctx interface{}) *gomock.Call
- func (mr *MockNodeOverwritesMockRecorder) PullImage(ctx interface{}) *gomock.Call
- func (mr *MockNodeOverwritesMockRecorder) VerifyHostRequirements() *gomock.Call
- func (mr *MockNodeOverwritesMockRecorder) VerifyLicenseFileExists(arg0 interface{}) *gomock.Call
- func (mr *MockNodeOverwritesMockRecorder) VerifyStartupConfig(topoDir interface{}) *gomock.Call
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 ¶
AddEndpoint 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 ¶
CheckDeploymentConditions mocks base method.
func (*MockNode) CheckInterfaceName ¶
CheckInterfaceName mocks base method.
func (*MockNode) DeleteNetnsSymlink ¶
DeleteNetnsSymlink mocks base method.
func (*MockNode) DeployLinks ¶
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 ¶
ExecFunction mocks base method.
func (*MockNode) GenerateConfig ¶
GenerateConfig mocks base method.
func (*MockNode) GetContainers ¶
GetContainers mocks base method.
func (*MockNode) GetEndpoints ¶
GetEndpoints 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 ¶
GetShortName mocks base method.
func (*MockNode) Init ¶
func (m *MockNode) Init(arg0 *types.NodeConfig, arg1 ...nodes.NodeOption) error
Init mocks base method.
func (*MockNode) PostDeploy ¶
PostDeploy mocks base method.
func (*MockNode) SaveConfig ¶
SaveConfig mocks base method.
func (*MockNode) UpdateConfigWithRuntimeInfo ¶
UpdateConfigWithRuntimeInfo mocks base method.
func (*MockNode) VerifyStartupConfig ¶
VerifyStartupConfig mocks base method.
func (*MockNode) WithMgmtNet ¶
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 (*MockNodeMockRecorder) AddLink ¶
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 (*MockNodeMockRecorder) DeleteNetnsSymlink ¶
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 (*MockNodeMockRecorder) DeployLinks ¶
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 ¶
func (m *MockNodeOverwrites) EXPECT() *MockNodeOverwritesMockRecorder
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.