Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockMetrics
- func (m *MockMetrics) AlertsFromUpgrade(arg0, arg1 time.Time) ([]string, error)
- func (m *MockMetrics) EXPECT() *MockMetricsMockRecorder
- func (m *MockMetrics) IsAlertFiring(arg0 string, arg1, arg2 []string) (bool, error)
- func (m *MockMetrics) IsClusterVersionAtVersion(arg0 string) (bool, error)
- func (m *MockMetrics) IsMetricNotificationEventSentSet(arg0, arg1, arg2 string) (bool, error)
- func (m *MockMetrics) Query(arg0 string) (*metrics.AlertResponse, error)
- func (m *MockMetrics) ResetAllMetricNodeDrainFailed()
- func (m *MockMetrics) ResetEphemeralMetrics()
- func (m *MockMetrics) ResetFailureMetrics()
- func (m *MockMetrics) ResetMetricNodeDrainFailed(arg0 string)
- func (m *MockMetrics) ResetMetricUpgradeControlPlaneTimeout(arg0, arg1 string)
- func (m *MockMetrics) ResetMetricUpgradeWorkerTimeout(arg0, arg1 string)
- func (m *MockMetrics) UpdateMetricHealthcheckFailed(arg0, arg1, arg2, arg3 string)
- func (m *MockMetrics) UpdateMetricHealthcheckSucceeded(arg0, arg1, arg2, arg3 string)
- func (m *MockMetrics) UpdateMetricNodeDrainFailed(arg0 string)
- func (m *MockMetrics) UpdateMetricNotificationEventSent(arg0, arg1, arg2 string)
- func (m *MockMetrics) UpdateMetricScalingFailed(arg0 string)
- func (m *MockMetrics) UpdateMetricScalingSucceeded(arg0 string)
- func (m *MockMetrics) UpdateMetricUpgradeConfigSyncTimestamp(arg0 string, arg1 time.Time)
- func (m *MockMetrics) UpdateMetricUpgradeControlPlaneTimeout(arg0, arg1 string)
- func (m *MockMetrics) UpdateMetricUpgradeResult(arg0, arg1, arg2, arg3 string, arg4 []string)
- func (m *MockMetrics) UpdateMetricUpgradeWindowBreached(arg0 string)
- func (m *MockMetrics) UpdateMetricUpgradeWindowNotBreached(arg0 string)
- func (m *MockMetrics) UpdateMetricUpgradeWorkerTimeout(arg0, arg1 string)
- func (m *MockMetrics) UpdateMetricValidationFailed(arg0 string)
- func (m *MockMetrics) UpdateMetricValidationSucceeded(arg0 string)
- type MockMetricsBuilder
- type MockMetricsBuilderMockRecorder
- type MockMetricsMockRecorder
- func (mr *MockMetricsMockRecorder) AlertsFromUpgrade(arg0, arg1 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) IsAlertFiring(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) IsClusterVersionAtVersion(arg0 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) IsMetricNotificationEventSentSet(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) Query(arg0 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) ResetAllMetricNodeDrainFailed() *gomock.Call
- func (mr *MockMetricsMockRecorder) ResetEphemeralMetrics() *gomock.Call
- func (mr *MockMetricsMockRecorder) ResetFailureMetrics() *gomock.Call
- func (mr *MockMetricsMockRecorder) ResetMetricNodeDrainFailed(arg0 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) ResetMetricUpgradeControlPlaneTimeout(arg0, arg1 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) ResetMetricUpgradeWorkerTimeout(arg0, arg1 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) UpdateMetricHealthcheckFailed(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) UpdateMetricHealthcheckSucceeded(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) UpdateMetricNodeDrainFailed(arg0 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) UpdateMetricNotificationEventSent(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) UpdateMetricScalingFailed(arg0 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) UpdateMetricScalingSucceeded(arg0 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) UpdateMetricUpgradeConfigSyncTimestamp(arg0, arg1 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) UpdateMetricUpgradeControlPlaneTimeout(arg0, arg1 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) UpdateMetricUpgradeResult(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) UpdateMetricUpgradeWindowBreached(arg0 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) UpdateMetricUpgradeWindowNotBreached(arg0 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) UpdateMetricUpgradeWorkerTimeout(arg0, arg1 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) UpdateMetricValidationFailed(arg0 any) *gomock.Call
- func (mr *MockMetricsMockRecorder) UpdateMetricValidationSucceeded(arg0 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMetrics ¶
type MockMetrics struct {
// contains filtered or unexported fields
}
MockMetrics is a mock of Metrics interface.
func NewMockMetrics ¶
func NewMockMetrics(ctrl *gomock.Controller) *MockMetrics
NewMockMetrics creates a new mock instance.
func (*MockMetrics) AlertsFromUpgrade ¶
func (m *MockMetrics) AlertsFromUpgrade(arg0, arg1 time.Time) ([]string, error)
AlertsFromUpgrade mocks base method.
func (*MockMetrics) EXPECT ¶
func (m *MockMetrics) EXPECT() *MockMetricsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMetrics) IsAlertFiring ¶
func (m *MockMetrics) IsAlertFiring(arg0 string, arg1, arg2 []string) (bool, error)
IsAlertFiring mocks base method.
func (*MockMetrics) IsClusterVersionAtVersion ¶
func (m *MockMetrics) IsClusterVersionAtVersion(arg0 string) (bool, error)
IsClusterVersionAtVersion mocks base method.
func (*MockMetrics) IsMetricNotificationEventSentSet ¶
func (m *MockMetrics) IsMetricNotificationEventSentSet(arg0, arg1, arg2 string) (bool, error)
IsMetricNotificationEventSentSet mocks base method.
func (*MockMetrics) Query ¶
func (m *MockMetrics) Query(arg0 string) (*metrics.AlertResponse, error)
Query mocks base method.
func (*MockMetrics) ResetAllMetricNodeDrainFailed ¶
func (m *MockMetrics) ResetAllMetricNodeDrainFailed()
ResetAllMetricNodeDrainFailed mocks base method.
func (*MockMetrics) ResetEphemeralMetrics ¶
func (m *MockMetrics) ResetEphemeralMetrics()
ResetEphemeralMetrics mocks base method.
func (*MockMetrics) ResetFailureMetrics ¶
func (m *MockMetrics) ResetFailureMetrics()
ResetFailureMetrics mocks base method.
func (*MockMetrics) ResetMetricNodeDrainFailed ¶
func (m *MockMetrics) ResetMetricNodeDrainFailed(arg0 string)
ResetMetricNodeDrainFailed mocks base method.
func (*MockMetrics) ResetMetricUpgradeControlPlaneTimeout ¶
func (m *MockMetrics) ResetMetricUpgradeControlPlaneTimeout(arg0, arg1 string)
ResetMetricUpgradeControlPlaneTimeout mocks base method.
func (*MockMetrics) ResetMetricUpgradeWorkerTimeout ¶
func (m *MockMetrics) ResetMetricUpgradeWorkerTimeout(arg0, arg1 string)
ResetMetricUpgradeWorkerTimeout mocks base method.
func (*MockMetrics) UpdateMetricHealthcheckFailed ¶
func (m *MockMetrics) UpdateMetricHealthcheckFailed(arg0, arg1, arg2, arg3 string)
UpdateMetricHealthcheckFailed mocks base method.
func (*MockMetrics) UpdateMetricHealthcheckSucceeded ¶
func (m *MockMetrics) UpdateMetricHealthcheckSucceeded(arg0, arg1, arg2, arg3 string)
UpdateMetricHealthcheckSucceeded mocks base method.
func (*MockMetrics) UpdateMetricNodeDrainFailed ¶
func (m *MockMetrics) UpdateMetricNodeDrainFailed(arg0 string)
UpdateMetricNodeDrainFailed mocks base method.
func (*MockMetrics) UpdateMetricNotificationEventSent ¶
func (m *MockMetrics) UpdateMetricNotificationEventSent(arg0, arg1, arg2 string)
UpdateMetricNotificationEventSent mocks base method.
func (*MockMetrics) UpdateMetricScalingFailed ¶
func (m *MockMetrics) UpdateMetricScalingFailed(arg0 string)
UpdateMetricScalingFailed mocks base method.
func (*MockMetrics) UpdateMetricScalingSucceeded ¶
func (m *MockMetrics) UpdateMetricScalingSucceeded(arg0 string)
UpdateMetricScalingSucceeded mocks base method.
func (*MockMetrics) UpdateMetricUpgradeConfigSyncTimestamp ¶
func (m *MockMetrics) UpdateMetricUpgradeConfigSyncTimestamp(arg0 string, arg1 time.Time)
UpdateMetricUpgradeConfigSyncTimestamp mocks base method.
func (*MockMetrics) UpdateMetricUpgradeControlPlaneTimeout ¶
func (m *MockMetrics) UpdateMetricUpgradeControlPlaneTimeout(arg0, arg1 string)
UpdateMetricUpgradeControlPlaneTimeout mocks base method.
func (*MockMetrics) UpdateMetricUpgradeResult ¶
func (m *MockMetrics) UpdateMetricUpgradeResult(arg0, arg1, arg2, arg3 string, arg4 []string)
UpdateMetricUpgradeResult mocks base method.
func (*MockMetrics) UpdateMetricUpgradeWindowBreached ¶
func (m *MockMetrics) UpdateMetricUpgradeWindowBreached(arg0 string)
UpdateMetricUpgradeWindowBreached mocks base method.
func (*MockMetrics) UpdateMetricUpgradeWindowNotBreached ¶
func (m *MockMetrics) UpdateMetricUpgradeWindowNotBreached(arg0 string)
UpdateMetricUpgradeWindowNotBreached mocks base method.
func (*MockMetrics) UpdateMetricUpgradeWorkerTimeout ¶
func (m *MockMetrics) UpdateMetricUpgradeWorkerTimeout(arg0, arg1 string)
UpdateMetricUpgradeWorkerTimeout mocks base method.
func (*MockMetrics) UpdateMetricValidationFailed ¶
func (m *MockMetrics) UpdateMetricValidationFailed(arg0 string)
UpdateMetricValidationFailed mocks base method.
func (*MockMetrics) UpdateMetricValidationSucceeded ¶
func (m *MockMetrics) UpdateMetricValidationSucceeded(arg0 string)
UpdateMetricValidationSucceeded mocks base method.
type MockMetricsBuilder ¶
type MockMetricsBuilder struct {
// contains filtered or unexported fields
}
MockMetricsBuilder is a mock of MetricsBuilder interface.
func NewMockMetricsBuilder ¶
func NewMockMetricsBuilder(ctrl *gomock.Controller) *MockMetricsBuilder
NewMockMetricsBuilder creates a new mock instance.
func (*MockMetricsBuilder) EXPECT ¶
func (m *MockMetricsBuilder) EXPECT() *MockMetricsBuilderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockMetricsBuilderMockRecorder ¶
type MockMetricsBuilderMockRecorder struct {
// contains filtered or unexported fields
}
MockMetricsBuilderMockRecorder is the mock recorder for MockMetricsBuilder.
type MockMetricsMockRecorder ¶
type MockMetricsMockRecorder struct {
// contains filtered or unexported fields
}
MockMetricsMockRecorder is the mock recorder for MockMetrics.
func (*MockMetricsMockRecorder) AlertsFromUpgrade ¶
func (mr *MockMetricsMockRecorder) AlertsFromUpgrade(arg0, arg1 any) *gomock.Call
AlertsFromUpgrade indicates an expected call of AlertsFromUpgrade.
func (*MockMetricsMockRecorder) IsAlertFiring ¶
func (mr *MockMetricsMockRecorder) IsAlertFiring(arg0, arg1, arg2 any) *gomock.Call
IsAlertFiring indicates an expected call of IsAlertFiring.
func (*MockMetricsMockRecorder) IsClusterVersionAtVersion ¶
func (mr *MockMetricsMockRecorder) IsClusterVersionAtVersion(arg0 any) *gomock.Call
IsClusterVersionAtVersion indicates an expected call of IsClusterVersionAtVersion.
func (*MockMetricsMockRecorder) IsMetricNotificationEventSentSet ¶
func (mr *MockMetricsMockRecorder) IsMetricNotificationEventSentSet(arg0, arg1, arg2 any) *gomock.Call
IsMetricNotificationEventSentSet indicates an expected call of IsMetricNotificationEventSentSet.
func (*MockMetricsMockRecorder) Query ¶
func (mr *MockMetricsMockRecorder) Query(arg0 any) *gomock.Call
Query indicates an expected call of Query.
func (*MockMetricsMockRecorder) ResetAllMetricNodeDrainFailed ¶
func (mr *MockMetricsMockRecorder) ResetAllMetricNodeDrainFailed() *gomock.Call
ResetAllMetricNodeDrainFailed indicates an expected call of ResetAllMetricNodeDrainFailed.
func (*MockMetricsMockRecorder) ResetEphemeralMetrics ¶
func (mr *MockMetricsMockRecorder) ResetEphemeralMetrics() *gomock.Call
ResetEphemeralMetrics indicates an expected call of ResetEphemeralMetrics.
func (*MockMetricsMockRecorder) ResetFailureMetrics ¶
func (mr *MockMetricsMockRecorder) ResetFailureMetrics() *gomock.Call
ResetFailureMetrics indicates an expected call of ResetFailureMetrics.
func (*MockMetricsMockRecorder) ResetMetricNodeDrainFailed ¶
func (mr *MockMetricsMockRecorder) ResetMetricNodeDrainFailed(arg0 any) *gomock.Call
ResetMetricNodeDrainFailed indicates an expected call of ResetMetricNodeDrainFailed.
func (*MockMetricsMockRecorder) ResetMetricUpgradeControlPlaneTimeout ¶
func (mr *MockMetricsMockRecorder) ResetMetricUpgradeControlPlaneTimeout(arg0, arg1 any) *gomock.Call
ResetMetricUpgradeControlPlaneTimeout indicates an expected call of ResetMetricUpgradeControlPlaneTimeout.
func (*MockMetricsMockRecorder) ResetMetricUpgradeWorkerTimeout ¶
func (mr *MockMetricsMockRecorder) ResetMetricUpgradeWorkerTimeout(arg0, arg1 any) *gomock.Call
ResetMetricUpgradeWorkerTimeout indicates an expected call of ResetMetricUpgradeWorkerTimeout.
func (*MockMetricsMockRecorder) UpdateMetricHealthcheckFailed ¶
func (mr *MockMetricsMockRecorder) UpdateMetricHealthcheckFailed(arg0, arg1, arg2, arg3 any) *gomock.Call
UpdateMetricHealthcheckFailed indicates an expected call of UpdateMetricHealthcheckFailed.
func (*MockMetricsMockRecorder) UpdateMetricHealthcheckSucceeded ¶
func (mr *MockMetricsMockRecorder) UpdateMetricHealthcheckSucceeded(arg0, arg1, arg2, arg3 any) *gomock.Call
UpdateMetricHealthcheckSucceeded indicates an expected call of UpdateMetricHealthcheckSucceeded.
func (*MockMetricsMockRecorder) UpdateMetricNodeDrainFailed ¶
func (mr *MockMetricsMockRecorder) UpdateMetricNodeDrainFailed(arg0 any) *gomock.Call
UpdateMetricNodeDrainFailed indicates an expected call of UpdateMetricNodeDrainFailed.
func (*MockMetricsMockRecorder) UpdateMetricNotificationEventSent ¶
func (mr *MockMetricsMockRecorder) UpdateMetricNotificationEventSent(arg0, arg1, arg2 any) *gomock.Call
UpdateMetricNotificationEventSent indicates an expected call of UpdateMetricNotificationEventSent.
func (*MockMetricsMockRecorder) UpdateMetricScalingFailed ¶
func (mr *MockMetricsMockRecorder) UpdateMetricScalingFailed(arg0 any) *gomock.Call
UpdateMetricScalingFailed indicates an expected call of UpdateMetricScalingFailed.
func (*MockMetricsMockRecorder) UpdateMetricScalingSucceeded ¶
func (mr *MockMetricsMockRecorder) UpdateMetricScalingSucceeded(arg0 any) *gomock.Call
UpdateMetricScalingSucceeded indicates an expected call of UpdateMetricScalingSucceeded.
func (*MockMetricsMockRecorder) UpdateMetricUpgradeConfigSyncTimestamp ¶
func (mr *MockMetricsMockRecorder) UpdateMetricUpgradeConfigSyncTimestamp(arg0, arg1 any) *gomock.Call
UpdateMetricUpgradeConfigSyncTimestamp indicates an expected call of UpdateMetricUpgradeConfigSyncTimestamp.
func (*MockMetricsMockRecorder) UpdateMetricUpgradeControlPlaneTimeout ¶
func (mr *MockMetricsMockRecorder) UpdateMetricUpgradeControlPlaneTimeout(arg0, arg1 any) *gomock.Call
UpdateMetricUpgradeControlPlaneTimeout indicates an expected call of UpdateMetricUpgradeControlPlaneTimeout.
func (*MockMetricsMockRecorder) UpdateMetricUpgradeResult ¶
func (mr *MockMetricsMockRecorder) UpdateMetricUpgradeResult(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
UpdateMetricUpgradeResult indicates an expected call of UpdateMetricUpgradeResult.
func (*MockMetricsMockRecorder) UpdateMetricUpgradeWindowBreached ¶
func (mr *MockMetricsMockRecorder) UpdateMetricUpgradeWindowBreached(arg0 any) *gomock.Call
UpdateMetricUpgradeWindowBreached indicates an expected call of UpdateMetricUpgradeWindowBreached.
func (*MockMetricsMockRecorder) UpdateMetricUpgradeWindowNotBreached ¶
func (mr *MockMetricsMockRecorder) UpdateMetricUpgradeWindowNotBreached(arg0 any) *gomock.Call
UpdateMetricUpgradeWindowNotBreached indicates an expected call of UpdateMetricUpgradeWindowNotBreached.
func (*MockMetricsMockRecorder) UpdateMetricUpgradeWorkerTimeout ¶
func (mr *MockMetricsMockRecorder) UpdateMetricUpgradeWorkerTimeout(arg0, arg1 any) *gomock.Call
UpdateMetricUpgradeWorkerTimeout indicates an expected call of UpdateMetricUpgradeWorkerTimeout.
func (*MockMetricsMockRecorder) UpdateMetricValidationFailed ¶
func (mr *MockMetricsMockRecorder) UpdateMetricValidationFailed(arg0 any) *gomock.Call
UpdateMetricValidationFailed indicates an expected call of UpdateMetricValidationFailed.
func (*MockMetricsMockRecorder) UpdateMetricValidationSucceeded ¶
func (mr *MockMetricsMockRecorder) UpdateMetricValidationSucceeded(arg0 any) *gomock.Call
UpdateMetricValidationSucceeded indicates an expected call of UpdateMetricValidationSucceeded.