Documentation ¶
Overview ¶
Package metrics is a generated GoMock package.
Index ¶
- type Metrics
- type MockMetrics
- func (m *MockMetrics) EXPECT() *MockMetricsMockRecorder
- func (m *MockMetrics) SetCompletedKind(specialResource, kind, name, namespace string, value int)
- func (m *MockMetrics) SetCompletedState(specialResource, state string, value int)
- func (m *MockMetrics) SetSpecialResourcesCreated(value int)
- func (m *MockMetrics) SetUpgradeAlert(crName string, value int)
- func (m *MockMetrics) SetUsedNodes(crName, kind, name, namespace, nodes string)
- type MockMetricsMockRecorder
- func (mr *MockMetricsMockRecorder) SetCompletedKind(specialResource, kind, name, namespace, value interface{}) *gomock.Call
- func (mr *MockMetricsMockRecorder) SetCompletedState(specialResource, state, value interface{}) *gomock.Call
- func (mr *MockMetricsMockRecorder) SetSpecialResourcesCreated(value interface{}) *gomock.Call
- func (mr *MockMetricsMockRecorder) SetUpgradeAlert(crName, value interface{}) *gomock.Call
- func (mr *MockMetricsMockRecorder) SetUsedNodes(crName, kind, name, namespace, nodes interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics interface { SetSpecialResourcesCreated(value int) SetCompletedState(specialResource, state string, value int) SetCompletedKind(specialResource, kind, name, namespace string, value int) SetUsedNodes(crName, kind, name, namespace, nodes string) SetUpgradeAlert(crName string, value int) }
Metrics is an interface representing a prometheus client for the Special Resource Operator
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) EXPECT ¶
func (m *MockMetrics) EXPECT() *MockMetricsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMetrics) SetCompletedKind ¶
func (m *MockMetrics) SetCompletedKind(specialResource, kind, name, namespace string, value int)
SetCompletedKind mocks base method.
func (*MockMetrics) SetCompletedState ¶
func (m *MockMetrics) SetCompletedState(specialResource, state string, value int)
SetCompletedState mocks base method.
func (*MockMetrics) SetSpecialResourcesCreated ¶
func (m *MockMetrics) SetSpecialResourcesCreated(value int)
SetSpecialResourcesCreated mocks base method.
func (*MockMetrics) SetUpgradeAlert ¶
func (m *MockMetrics) SetUpgradeAlert(crName string, value int)
SetUpgradeAlert mocks base method.
func (*MockMetrics) SetUsedNodes ¶
func (m *MockMetrics) SetUsedNodes(crName, kind, name, namespace, nodes string)
SetUsedNodes mocks base method.
type MockMetricsMockRecorder ¶
type MockMetricsMockRecorder struct {
// contains filtered or unexported fields
}
MockMetricsMockRecorder is the mock recorder for MockMetrics.
func (*MockMetricsMockRecorder) SetCompletedKind ¶
func (mr *MockMetricsMockRecorder) SetCompletedKind(specialResource, kind, name, namespace, value interface{}) *gomock.Call
SetCompletedKind indicates an expected call of SetCompletedKind.
func (*MockMetricsMockRecorder) SetCompletedState ¶
func (mr *MockMetricsMockRecorder) SetCompletedState(specialResource, state, value interface{}) *gomock.Call
SetCompletedState indicates an expected call of SetCompletedState.
func (*MockMetricsMockRecorder) SetSpecialResourcesCreated ¶
func (mr *MockMetricsMockRecorder) SetSpecialResourcesCreated(value interface{}) *gomock.Call
SetSpecialResourcesCreated indicates an expected call of SetSpecialResourcesCreated.
func (*MockMetricsMockRecorder) SetUpgradeAlert ¶
func (mr *MockMetricsMockRecorder) SetUpgradeAlert(crName, value interface{}) *gomock.Call
SetUpgradeAlert indicates an expected call of SetUpgradeAlert.
func (*MockMetricsMockRecorder) SetUsedNodes ¶
func (mr *MockMetricsMockRecorder) SetUsedNodes(crName, kind, name, namespace, nodes interface{}) *gomock.Call
SetUsedNodes indicates an expected call of SetUsedNodes.