Documentation ¶
Overview ¶
Package baremetal_mocks is a generated GoMock package.
Package baremetal_mocks is a generated GoMock package.
Index ¶
- type MockManagerFactoryInterface
- type MockManagerFactoryInterfaceMockRecorder
- type MockRemediationManagerInterface
- func (m *MockRemediationManagerInterface) CanReprovision(arg0 context.Context) (bool, error)
- func (m *MockRemediationManagerInterface) DeleteMachine(ctx context.Context) error
- func (m *MockRemediationManagerInterface) DeleteNode(ctx context.Context, node *v1.Node) error
- func (m *MockRemediationManagerInterface) EXPECT() *MockRemediationManagerInterfaceMockRecorder
- func (m *MockRemediationManagerInterface) GetLastRemediatedTime() *v10.Time
- func (m *MockRemediationManagerInterface) GetNode(ctx context.Context) (*v1.Node, error)
- func (m *MockRemediationManagerInterface) GetNodeBackupAnnotations() (string, string)
- func (m *MockRemediationManagerInterface) GetRemediationPhase() string
- func (m *MockRemediationManagerInterface) GetRemediationType() v1beta1.RemediationType
- func (m *MockRemediationManagerInterface) GetTimeout() *v10.Duration
- func (m *MockRemediationManagerInterface) GetUnhealthyHost(ctx context.Context) (*v1alpha1.BareMetalHost, *patch.Helper, error)
- func (m *MockRemediationManagerInterface) HasFinalizer() bool
- func (m *MockRemediationManagerInterface) HasReachRetryLimit() bool
- func (m *MockRemediationManagerInterface) IncreaseRetryCount()
- func (m *MockRemediationManagerInterface) IsPowerOffRequested(ctx context.Context) (bool, error)
- func (m *MockRemediationManagerInterface) IsPoweredOn(ctx context.Context) (bool, error)
- func (m *MockRemediationManagerInterface) OnlineStatus(host *v1alpha1.BareMetalHost) bool
- func (m *MockRemediationManagerInterface) RemoveNodeBackupAnnotations()
- func (m *MockRemediationManagerInterface) RemovePowerOffAnnotation(ctx context.Context) error
- func (m *MockRemediationManagerInterface) RetryLimitIsSet() bool
- func (m *MockRemediationManagerInterface) SetFinalizer()
- func (m *MockRemediationManagerInterface) SetLastRemediationTime(remediationTime *v10.Time)
- func (m *MockRemediationManagerInterface) SetNodeBackupAnnotations(annotations, labels string) bool
- func (m *MockRemediationManagerInterface) SetPowerOffAnnotation(ctx context.Context) error
- func (m *MockRemediationManagerInterface) SetRemediationPhase(phase string)
- func (m *MockRemediationManagerInterface) SetUnhealthyAnnotation(ctx context.Context) error
- func (m *MockRemediationManagerInterface) TimeToRemediate(timeout time.Duration) (bool, time.Duration)
- func (m *MockRemediationManagerInterface) UnsetFinalizer()
- func (m *MockRemediationManagerInterface) UpdateNode(ctx context.Context, node *v1.Node) error
- type MockRemediationManagerInterfaceMockRecorder
- func (mr *MockRemediationManagerInterfaceMockRecorder) CanReprovision(arg0 interface{}) *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) DeleteMachine(ctx interface{}) *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) DeleteNode(ctx, node interface{}) *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) GetLastRemediatedTime() *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) GetNode(ctx interface{}) *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) GetNodeBackupAnnotations() *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) GetRemediationPhase() *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) GetRemediationType() *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) GetTimeout() *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) GetUnhealthyHost(ctx interface{}) *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) HasFinalizer() *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) HasReachRetryLimit() *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) IncreaseRetryCount() *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) IsPowerOffRequested(ctx interface{}) *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) IsPoweredOn(ctx interface{}) *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) OnlineStatus(host interface{}) *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) RemoveNodeBackupAnnotations() *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) RemovePowerOffAnnotation(ctx interface{}) *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) RetryLimitIsSet() *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) SetFinalizer() *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) SetLastRemediationTime(remediationTime interface{}) *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) SetNodeBackupAnnotations(annotations, labels interface{}) *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) SetPowerOffAnnotation(ctx interface{}) *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) SetRemediationPhase(phase interface{}) *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) SetUnhealthyAnnotation(ctx interface{}) *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) TimeToRemediate(timeout interface{}) *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) UnsetFinalizer() *gomock.Call
- func (mr *MockRemediationManagerInterfaceMockRecorder) UpdateNode(ctx, node interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockManagerFactoryInterface ¶
type MockManagerFactoryInterface struct {
// contains filtered or unexported fields
}
MockManagerFactoryInterface is a mock of ManagerFactoryInterface interface.
func NewMockManagerFactoryInterface ¶
func NewMockManagerFactoryInterface(ctrl *gomock.Controller) *MockManagerFactoryInterface
NewMockManagerFactoryInterface creates a new mock instance.
func (*MockManagerFactoryInterface) EXPECT ¶
func (m *MockManagerFactoryInterface) EXPECT() *MockManagerFactoryInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManagerFactoryInterface) NewRemediationManager ¶
func (m *MockManagerFactoryInterface) NewRemediationManager(arg0 *v1beta1.Metal3Remediation, arg1 *v1beta10.Machine, arg2 logr.Logger) (baremetal.RemediationManagerInterface, error)
NewRemediationManager mocks base method.
type MockManagerFactoryInterfaceMockRecorder ¶
type MockManagerFactoryInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerFactoryInterfaceMockRecorder is the mock recorder for MockManagerFactoryInterface.
func (*MockManagerFactoryInterfaceMockRecorder) NewRemediationManager ¶
func (mr *MockManagerFactoryInterfaceMockRecorder) NewRemediationManager(arg0, arg1, arg2 interface{}) *gomock.Call
NewRemediationManager indicates an expected call of NewRemediationManager.
type MockRemediationManagerInterface ¶
type MockRemediationManagerInterface struct {
// contains filtered or unexported fields
}
MockRemediationManagerInterface is a mock of RemediationManagerInterface interface.
func NewMockRemediationManagerInterface ¶
func NewMockRemediationManagerInterface(ctrl *gomock.Controller) *MockRemediationManagerInterface
NewMockRemediationManagerInterface creates a new mock instance.
func (*MockRemediationManagerInterface) CanReprovision ¶
func (m *MockRemediationManagerInterface) CanReprovision(arg0 context.Context) (bool, error)
CanReprovision mocks base method.
func (*MockRemediationManagerInterface) DeleteMachine ¶
func (m *MockRemediationManagerInterface) DeleteMachine(ctx context.Context) error
DeleteMachine mocks base method.
func (*MockRemediationManagerInterface) DeleteNode ¶
DeleteNode mocks base method.
func (*MockRemediationManagerInterface) EXPECT ¶
func (m *MockRemediationManagerInterface) EXPECT() *MockRemediationManagerInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRemediationManagerInterface) GetLastRemediatedTime ¶
func (m *MockRemediationManagerInterface) GetLastRemediatedTime() *v10.Time
GetLastRemediatedTime mocks base method.
func (*MockRemediationManagerInterface) GetNodeBackupAnnotations ¶
func (m *MockRemediationManagerInterface) GetNodeBackupAnnotations() (string, string)
GetNodeBackupAnnotations mocks base method.
func (*MockRemediationManagerInterface) GetRemediationPhase ¶
func (m *MockRemediationManagerInterface) GetRemediationPhase() string
GetRemediationPhase mocks base method.
func (*MockRemediationManagerInterface) GetRemediationType ¶
func (m *MockRemediationManagerInterface) GetRemediationType() v1beta1.RemediationType
GetRemediationType mocks base method.
func (*MockRemediationManagerInterface) GetTimeout ¶
func (m *MockRemediationManagerInterface) GetTimeout() *v10.Duration
GetTimeout mocks base method.
func (*MockRemediationManagerInterface) GetUnhealthyHost ¶
func (m *MockRemediationManagerInterface) GetUnhealthyHost(ctx context.Context) (*v1alpha1.BareMetalHost, *patch.Helper, error)
GetUnhealthyHost mocks base method.
func (*MockRemediationManagerInterface) HasFinalizer ¶
func (m *MockRemediationManagerInterface) HasFinalizer() bool
HasFinalizer mocks base method.
func (*MockRemediationManagerInterface) HasReachRetryLimit ¶
func (m *MockRemediationManagerInterface) HasReachRetryLimit() bool
HasReachRetryLimit mocks base method.
func (*MockRemediationManagerInterface) IncreaseRetryCount ¶
func (m *MockRemediationManagerInterface) IncreaseRetryCount()
IncreaseRetryCount mocks base method.
func (*MockRemediationManagerInterface) IsPowerOffRequested ¶
func (m *MockRemediationManagerInterface) IsPowerOffRequested(ctx context.Context) (bool, error)
IsPowerOffRequested mocks base method.
func (*MockRemediationManagerInterface) IsPoweredOn ¶
func (m *MockRemediationManagerInterface) IsPoweredOn(ctx context.Context) (bool, error)
IsPoweredOn mocks base method.
func (*MockRemediationManagerInterface) OnlineStatus ¶
func (m *MockRemediationManagerInterface) OnlineStatus(host *v1alpha1.BareMetalHost) bool
OnlineStatus mocks base method.
func (*MockRemediationManagerInterface) RemoveNodeBackupAnnotations ¶
func (m *MockRemediationManagerInterface) RemoveNodeBackupAnnotations()
RemoveNodeBackupAnnotations mocks base method.
func (*MockRemediationManagerInterface) RemovePowerOffAnnotation ¶
func (m *MockRemediationManagerInterface) RemovePowerOffAnnotation(ctx context.Context) error
RemovePowerOffAnnotation mocks base method.
func (*MockRemediationManagerInterface) RetryLimitIsSet ¶
func (m *MockRemediationManagerInterface) RetryLimitIsSet() bool
RetryLimitIsSet mocks base method.
func (*MockRemediationManagerInterface) SetFinalizer ¶
func (m *MockRemediationManagerInterface) SetFinalizer()
SetFinalizer mocks base method.
func (*MockRemediationManagerInterface) SetLastRemediationTime ¶
func (m *MockRemediationManagerInterface) SetLastRemediationTime(remediationTime *v10.Time)
SetLastRemediationTime mocks base method.
func (*MockRemediationManagerInterface) SetNodeBackupAnnotations ¶
func (m *MockRemediationManagerInterface) SetNodeBackupAnnotations(annotations, labels string) bool
SetNodeBackupAnnotations mocks base method.
func (*MockRemediationManagerInterface) SetPowerOffAnnotation ¶
func (m *MockRemediationManagerInterface) SetPowerOffAnnotation(ctx context.Context) error
SetPowerOffAnnotation mocks base method.
func (*MockRemediationManagerInterface) SetRemediationPhase ¶
func (m *MockRemediationManagerInterface) SetRemediationPhase(phase string)
SetRemediationPhase mocks base method.
func (*MockRemediationManagerInterface) SetUnhealthyAnnotation ¶
func (m *MockRemediationManagerInterface) SetUnhealthyAnnotation(ctx context.Context) error
SetUnhealthyAnnotation mocks base method.
func (*MockRemediationManagerInterface) TimeToRemediate ¶
func (m *MockRemediationManagerInterface) TimeToRemediate(timeout time.Duration) (bool, time.Duration)
TimeToRemediate mocks base method.
func (*MockRemediationManagerInterface) UnsetFinalizer ¶
func (m *MockRemediationManagerInterface) UnsetFinalizer()
UnsetFinalizer mocks base method.
func (*MockRemediationManagerInterface) UpdateNode ¶
UpdateNode mocks base method.
type MockRemediationManagerInterfaceMockRecorder ¶
type MockRemediationManagerInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockRemediationManagerInterfaceMockRecorder is the mock recorder for MockRemediationManagerInterface.
func (*MockRemediationManagerInterfaceMockRecorder) CanReprovision ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) CanReprovision(arg0 interface{}) *gomock.Call
CanReprovision indicates an expected call of CanReprovision.
func (*MockRemediationManagerInterfaceMockRecorder) DeleteMachine ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) DeleteMachine(ctx interface{}) *gomock.Call
DeleteMachine indicates an expected call of DeleteMachine.
func (*MockRemediationManagerInterfaceMockRecorder) DeleteNode ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) DeleteNode(ctx, node interface{}) *gomock.Call
DeleteNode indicates an expected call of DeleteNode.
func (*MockRemediationManagerInterfaceMockRecorder) GetLastRemediatedTime ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) GetLastRemediatedTime() *gomock.Call
GetLastRemediatedTime indicates an expected call of GetLastRemediatedTime.
func (*MockRemediationManagerInterfaceMockRecorder) GetNode ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) GetNode(ctx interface{}) *gomock.Call
GetNode indicates an expected call of GetNode.
func (*MockRemediationManagerInterfaceMockRecorder) GetNodeBackupAnnotations ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) GetNodeBackupAnnotations() *gomock.Call
GetNodeBackupAnnotations indicates an expected call of GetNodeBackupAnnotations.
func (*MockRemediationManagerInterfaceMockRecorder) GetRemediationPhase ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) GetRemediationPhase() *gomock.Call
GetRemediationPhase indicates an expected call of GetRemediationPhase.
func (*MockRemediationManagerInterfaceMockRecorder) GetRemediationType ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) GetRemediationType() *gomock.Call
GetRemediationType indicates an expected call of GetRemediationType.
func (*MockRemediationManagerInterfaceMockRecorder) GetTimeout ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) GetTimeout() *gomock.Call
GetTimeout indicates an expected call of GetTimeout.
func (*MockRemediationManagerInterfaceMockRecorder) GetUnhealthyHost ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) GetUnhealthyHost(ctx interface{}) *gomock.Call
GetUnhealthyHost indicates an expected call of GetUnhealthyHost.
func (*MockRemediationManagerInterfaceMockRecorder) HasFinalizer ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) HasFinalizer() *gomock.Call
HasFinalizer indicates an expected call of HasFinalizer.
func (*MockRemediationManagerInterfaceMockRecorder) HasReachRetryLimit ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) HasReachRetryLimit() *gomock.Call
HasReachRetryLimit indicates an expected call of HasReachRetryLimit.
func (*MockRemediationManagerInterfaceMockRecorder) IncreaseRetryCount ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) IncreaseRetryCount() *gomock.Call
IncreaseRetryCount indicates an expected call of IncreaseRetryCount.
func (*MockRemediationManagerInterfaceMockRecorder) IsPowerOffRequested ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) IsPowerOffRequested(ctx interface{}) *gomock.Call
IsPowerOffRequested indicates an expected call of IsPowerOffRequested.
func (*MockRemediationManagerInterfaceMockRecorder) IsPoweredOn ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) IsPoweredOn(ctx interface{}) *gomock.Call
IsPoweredOn indicates an expected call of IsPoweredOn.
func (*MockRemediationManagerInterfaceMockRecorder) OnlineStatus ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) OnlineStatus(host interface{}) *gomock.Call
OnlineStatus indicates an expected call of OnlineStatus.
func (*MockRemediationManagerInterfaceMockRecorder) RemoveNodeBackupAnnotations ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) RemoveNodeBackupAnnotations() *gomock.Call
RemoveNodeBackupAnnotations indicates an expected call of RemoveNodeBackupAnnotations.
func (*MockRemediationManagerInterfaceMockRecorder) RemovePowerOffAnnotation ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) RemovePowerOffAnnotation(ctx interface{}) *gomock.Call
RemovePowerOffAnnotation indicates an expected call of RemovePowerOffAnnotation.
func (*MockRemediationManagerInterfaceMockRecorder) RetryLimitIsSet ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) RetryLimitIsSet() *gomock.Call
RetryLimitIsSet indicates an expected call of RetryLimitIsSet.
func (*MockRemediationManagerInterfaceMockRecorder) SetFinalizer ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) SetFinalizer() *gomock.Call
SetFinalizer indicates an expected call of SetFinalizer.
func (*MockRemediationManagerInterfaceMockRecorder) SetLastRemediationTime ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) SetLastRemediationTime(remediationTime interface{}) *gomock.Call
SetLastRemediationTime indicates an expected call of SetLastRemediationTime.
func (*MockRemediationManagerInterfaceMockRecorder) SetNodeBackupAnnotations ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) SetNodeBackupAnnotations(annotations, labels interface{}) *gomock.Call
SetNodeBackupAnnotations indicates an expected call of SetNodeBackupAnnotations.
func (*MockRemediationManagerInterfaceMockRecorder) SetPowerOffAnnotation ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) SetPowerOffAnnotation(ctx interface{}) *gomock.Call
SetPowerOffAnnotation indicates an expected call of SetPowerOffAnnotation.
func (*MockRemediationManagerInterfaceMockRecorder) SetRemediationPhase ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) SetRemediationPhase(phase interface{}) *gomock.Call
SetRemediationPhase indicates an expected call of SetRemediationPhase.
func (*MockRemediationManagerInterfaceMockRecorder) SetUnhealthyAnnotation ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) SetUnhealthyAnnotation(ctx interface{}) *gomock.Call
SetUnhealthyAnnotation indicates an expected call of SetUnhealthyAnnotation.
func (*MockRemediationManagerInterfaceMockRecorder) TimeToRemediate ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) TimeToRemediate(timeout interface{}) *gomock.Call
TimeToRemediate indicates an expected call of TimeToRemediate.
func (*MockRemediationManagerInterfaceMockRecorder) UnsetFinalizer ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) UnsetFinalizer() *gomock.Call
UnsetFinalizer indicates an expected call of UnsetFinalizer.
func (*MockRemediationManagerInterfaceMockRecorder) UpdateNode ¶
func (mr *MockRemediationManagerInterfaceMockRecorder) UpdateNode(ctx, node interface{}) *gomock.Call
UpdateNode indicates an expected call of UpdateNode.