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) 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) DeployEndpoints(ctx context.Context) error
- func (m *MockNode) EXPECT() *MockNodeMockRecorder
- func (m *MockNode) ExecFunction(arg0 context.Context, arg1 func(ns.NetNS) error) error
- func (m *MockNode) GenerateConfig(dst, templ string) error
- func (m *MockNode) GetContainerStatus(ctx context.Context) runtime.ContainerStatus
- 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) GetSSHConfig() *types.SSHConfig
- 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) IsHealthy(ctx context.Context) (bool, 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) RunExecFromConfig(arg0 context.Context, arg1 *exec.ExecCollection) 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 any) *gomock.Call
- func (mr *MockNodeMockRecorder) AddLinkToContainer(ctx, link, f any) *gomock.Call
- func (mr *MockNodeMockRecorder) CheckDeploymentConditions(arg0 any) *gomock.Call
- func (mr *MockNodeMockRecorder) CheckInterfaceName() *gomock.Call
- func (mr *MockNodeMockRecorder) Config() *gomock.Call
- func (mr *MockNodeMockRecorder) Delete(arg0 any) *gomock.Call
- func (mr *MockNodeMockRecorder) DeleteNetnsSymlink() *gomock.Call
- func (mr *MockNodeMockRecorder) Deploy(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeMockRecorder) DeployEndpoints(ctx any) *gomock.Call
- func (mr *MockNodeMockRecorder) ExecFunction(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeMockRecorder) GenerateConfig(dst, templ any) *gomock.Call
- func (mr *MockNodeMockRecorder) GetContainerStatus(ctx any) *gomock.Call
- func (mr *MockNodeMockRecorder) GetContainers(ctx any) *gomock.Call
- func (mr *MockNodeMockRecorder) GetEndpoints() *gomock.Call
- func (mr *MockNodeMockRecorder) GetImages(arg0 any) *gomock.Call
- func (mr *MockNodeMockRecorder) GetLinkEndpointType() *gomock.Call
- func (mr *MockNodeMockRecorder) GetRuntime() *gomock.Call
- func (mr *MockNodeMockRecorder) GetSSHConfig() *gomock.Call
- func (mr *MockNodeMockRecorder) GetShortName() *gomock.Call
- func (mr *MockNodeMockRecorder) GetState() *gomock.Call
- func (mr *MockNodeMockRecorder) Init(arg0 any, arg1 ...any) *gomock.Call
- func (mr *MockNodeMockRecorder) IsHealthy(ctx any) *gomock.Call
- func (mr *MockNodeMockRecorder) PostDeploy(ctx, params any) *gomock.Call
- func (mr *MockNodeMockRecorder) PreDeploy(ctx, params any) *gomock.Call
- func (mr *MockNodeMockRecorder) RunExec(ctx, execCmd any) *gomock.Call
- func (mr *MockNodeMockRecorder) RunExecFromConfig(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeMockRecorder) SaveConfig(arg0 any) *gomock.Call
- func (mr *MockNodeMockRecorder) SetState(arg0 any) *gomock.Call
- func (mr *MockNodeMockRecorder) UpdateConfigWithRuntimeInfo(arg0 any) *gomock.Call
- func (mr *MockNodeMockRecorder) VerifyStartupConfig(topoDir any) *gomock.Call
- func (mr *MockNodeMockRecorder) WithMgmtNet(arg0 any) *gomock.Call
- func (mr *MockNodeMockRecorder) WithRuntime(arg0 any) *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) RunExec(arg0 context.Context, arg1 *exec.ExecCmd) (*exec.ExecResult, 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 any) *gomock.Call
- func (mr *MockNodeOverwritesMockRecorder) GetImages(ctx any) *gomock.Call
- func (mr *MockNodeOverwritesMockRecorder) PullImage(ctx any) *gomock.Call
- func (mr *MockNodeOverwritesMockRecorder) RunExec(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeOverwritesMockRecorder) VerifyHostRequirements() *gomock.Call
- func (mr *MockNodeOverwritesMockRecorder) VerifyLicenseFileExists(arg0 any) *gomock.Call
- func (mr *MockNodeOverwritesMockRecorder) VerifyStartupConfig(topoDir any) *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) DeployEndpoints ¶ added in v0.52.0
DeployEndpoints 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) GetContainerStatus ¶ added in v0.51.0
func (m *MockNode) GetContainerStatus(ctx context.Context) runtime.ContainerStatus
GetContainerStatus 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) GetSSHConfig ¶ added in v0.48.0
GetSSHConfig 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) RunExecFromConfig ¶ added in v0.51.0
RunExecFromConfig 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 any) *gomock.Call
AddEndpoint indicates an expected call of AddEndpoint.
func (*MockNodeMockRecorder) AddLinkToContainer ¶
func (mr *MockNodeMockRecorder) AddLinkToContainer(ctx, link, f any) *gomock.Call
AddLinkToContainer indicates an expected call of AddLinkToContainer.
func (*MockNodeMockRecorder) CheckDeploymentConditions ¶
func (mr *MockNodeMockRecorder) CheckDeploymentConditions(arg0 any) *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 any) *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 any) *gomock.Call
Deploy indicates an expected call of Deploy.
func (*MockNodeMockRecorder) DeployEndpoints ¶ added in v0.52.0
func (mr *MockNodeMockRecorder) DeployEndpoints(ctx any) *gomock.Call
DeployEndpoints indicates an expected call of DeployEndpoints.
func (*MockNodeMockRecorder) ExecFunction ¶
func (mr *MockNodeMockRecorder) ExecFunction(arg0, arg1 any) *gomock.Call
ExecFunction indicates an expected call of ExecFunction.
func (*MockNodeMockRecorder) GenerateConfig ¶
func (mr *MockNodeMockRecorder) GenerateConfig(dst, templ any) *gomock.Call
GenerateConfig indicates an expected call of GenerateConfig.
func (*MockNodeMockRecorder) GetContainerStatus ¶ added in v0.51.0
func (mr *MockNodeMockRecorder) GetContainerStatus(ctx any) *gomock.Call
GetContainerStatus indicates an expected call of GetContainerStatus.
func (*MockNodeMockRecorder) GetContainers ¶
func (mr *MockNodeMockRecorder) GetContainers(ctx any) *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 any) *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) GetSSHConfig ¶ added in v0.48.0
func (mr *MockNodeMockRecorder) GetSSHConfig() *gomock.Call
GetSSHConfig indicates an expected call of GetSSHConfig.
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 any, arg1 ...any) *gomock.Call
Init indicates an expected call of Init.
func (*MockNodeMockRecorder) IsHealthy ¶ added in v0.51.0
func (mr *MockNodeMockRecorder) IsHealthy(ctx any) *gomock.Call
IsHealthy indicates an expected call of IsHealthy.
func (*MockNodeMockRecorder) PostDeploy ¶
func (mr *MockNodeMockRecorder) PostDeploy(ctx, params any) *gomock.Call
PostDeploy indicates an expected call of PostDeploy.
func (*MockNodeMockRecorder) PreDeploy ¶
func (mr *MockNodeMockRecorder) PreDeploy(ctx, params any) *gomock.Call
PreDeploy indicates an expected call of PreDeploy.
func (*MockNodeMockRecorder) RunExec ¶
func (mr *MockNodeMockRecorder) RunExec(ctx, execCmd any) *gomock.Call
RunExec indicates an expected call of RunExec.
func (*MockNodeMockRecorder) RunExecFromConfig ¶ added in v0.51.0
func (mr *MockNodeMockRecorder) RunExecFromConfig(arg0, arg1 any) *gomock.Call
RunExecFromConfig indicates an expected call of RunExecFromConfig.
func (*MockNodeMockRecorder) SaveConfig ¶
func (mr *MockNodeMockRecorder) SaveConfig(arg0 any) *gomock.Call
SaveConfig indicates an expected call of SaveConfig.
func (*MockNodeMockRecorder) SetState ¶ added in v0.46.0
func (mr *MockNodeMockRecorder) SetState(arg0 any) *gomock.Call
SetState indicates an expected call of SetState.
func (*MockNodeMockRecorder) UpdateConfigWithRuntimeInfo ¶
func (mr *MockNodeMockRecorder) UpdateConfigWithRuntimeInfo(arg0 any) *gomock.Call
UpdateConfigWithRuntimeInfo indicates an expected call of UpdateConfigWithRuntimeInfo.
func (*MockNodeMockRecorder) VerifyStartupConfig ¶
func (mr *MockNodeMockRecorder) VerifyStartupConfig(topoDir any) *gomock.Call
VerifyStartupConfig indicates an expected call of VerifyStartupConfig.
func (*MockNodeMockRecorder) WithMgmtNet ¶
func (mr *MockNodeMockRecorder) WithMgmtNet(arg0 any) *gomock.Call
WithMgmtNet indicates an expected call of WithMgmtNet.
func (*MockNodeMockRecorder) WithRuntime ¶
func (mr *MockNodeMockRecorder) WithRuntime(arg0 any) *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) RunExec ¶ added in v0.51.0
func (m *MockNodeOverwrites) RunExec(arg0 context.Context, arg1 *exec.ExecCmd) (*exec.ExecResult, error)
RunExec 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 any) *gomock.Call
GetContainers indicates an expected call of GetContainers.
func (*MockNodeOverwritesMockRecorder) GetImages ¶
func (mr *MockNodeOverwritesMockRecorder) GetImages(ctx any) *gomock.Call
GetImages indicates an expected call of GetImages.
func (*MockNodeOverwritesMockRecorder) PullImage ¶
func (mr *MockNodeOverwritesMockRecorder) PullImage(ctx any) *gomock.Call
PullImage indicates an expected call of PullImage.
func (*MockNodeOverwritesMockRecorder) RunExec ¶ added in v0.51.0
func (mr *MockNodeOverwritesMockRecorder) RunExec(arg0, arg1 any) *gomock.Call
RunExec indicates an expected call of RunExec.
func (*MockNodeOverwritesMockRecorder) VerifyHostRequirements ¶
func (mr *MockNodeOverwritesMockRecorder) VerifyHostRequirements() *gomock.Call
VerifyHostRequirements indicates an expected call of VerifyHostRequirements.
func (*MockNodeOverwritesMockRecorder) VerifyLicenseFileExists ¶
func (mr *MockNodeOverwritesMockRecorder) VerifyLicenseFileExists(arg0 any) *gomock.Call
VerifyLicenseFileExists indicates an expected call of VerifyLicenseFileExists.
func (*MockNodeOverwritesMockRecorder) VerifyStartupConfig ¶
func (mr *MockNodeOverwritesMockRecorder) VerifyStartupConfig(topoDir any) *gomock.Call
VerifyStartupConfig indicates an expected call of VerifyStartupConfig.