metrics

package
v0.0.0-...-5d8ad60 Latest Latest
Warning

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

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

Documentation

Overview

Package metrics is a generated GoMock package.

Index

Constants

View Source
const (
	BuildStage        = "build"
	ModuleLoaderStage = "module-loader"
	DevicePluginStage = "device-plugin"
)

When adding metric names, see https://prometheus.io/docs/practices/naming/#metric-names

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics interface {
	Register()
	SetExistingKMMOModules(value int)
	SetCompletedStage(kmmoName, kmmoNamespace, kernelVersion, stage string, completed bool)
}

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) Register

func (m *MockMetrics) Register()

Register mocks base method.

func (*MockMetrics) SetCompletedStage

func (m *MockMetrics) SetCompletedStage(kmmoName, kmmoNamespace, kernelVersion, stage string, completed bool)

SetCompletedStage mocks base method.

func (*MockMetrics) SetExistingKMMOModules

func (m *MockMetrics) SetExistingKMMOModules(value int)

SetExistingKMMOModules mocks base method.

type MockMetricsMockRecorder

type MockMetricsMockRecorder struct {
	// contains filtered or unexported fields
}

MockMetricsMockRecorder is the mock recorder for MockMetrics.

func (*MockMetricsMockRecorder) Register

func (mr *MockMetricsMockRecorder) Register() *gomock.Call

Register indicates an expected call of Register.

func (*MockMetricsMockRecorder) SetCompletedStage

func (mr *MockMetricsMockRecorder) SetCompletedStage(kmmoName, kmmoNamespace, kernelVersion, stage, completed interface{}) *gomock.Call

SetCompletedStage indicates an expected call of SetCompletedStage.

func (*MockMetricsMockRecorder) SetExistingKMMOModules

func (mr *MockMetricsMockRecorder) SetExistingKMMOModules(value interface{}) *gomock.Call

SetExistingKMMOModules indicates an expected call of SetExistingKMMOModules.

Jump to

Keyboard shortcuts

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