metrics

package
v0.0.0-...-c9e8fde Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package metrics is a generated GoMock package.

Index

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

func New

func New() Metrics

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL