metrics

package
v0.0.0-...-3ef91bc Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: metrics.go

Generated by this command:

mockgen -source=metrics.go -package=metrics -destination=mock_metrics_api.go

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 {
	Register()
	SetKMMModulesNum(value int)
	SetKMMInClusterBuildNum(value int)
	SetKMMInClusterSignNum(value int)
	SetKMMDevicePluginNum(value int)
	SetKMMPreflightsNum(value int)
	SetKMMModprobeArgs(modName, namespace, modprobeArgs string)
	SetKMMModprobeRawArgs(modName, namespace, modprobeArgs string)
}

Metrics is an interface representing a prometheus client for the Kernel Module Management 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) SetKMMDevicePluginNum

func (m *MockMetrics) SetKMMDevicePluginNum(value int)

SetKMMDevicePluginNum mocks base method.

func (*MockMetrics) SetKMMInClusterBuildNum

func (m *MockMetrics) SetKMMInClusterBuildNum(value int)

SetKMMInClusterBuildNum mocks base method.

func (*MockMetrics) SetKMMInClusterSignNum

func (m *MockMetrics) SetKMMInClusterSignNum(value int)

SetKMMInClusterSignNum mocks base method.

func (*MockMetrics) SetKMMModprobeArgs

func (m *MockMetrics) SetKMMModprobeArgs(modName, namespace, modprobeArgs string)

SetKMMModprobeArgs mocks base method.

func (*MockMetrics) SetKMMModprobeRawArgs

func (m *MockMetrics) SetKMMModprobeRawArgs(modName, namespace, modprobeArgs string)

SetKMMModprobeRawArgs mocks base method.

func (*MockMetrics) SetKMMModulesNum

func (m *MockMetrics) SetKMMModulesNum(value int)

SetKMMModulesNum mocks base method.

func (*MockMetrics) SetKMMPreflightsNum

func (m *MockMetrics) SetKMMPreflightsNum(value int)

SetKMMPreflightsNum 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) SetKMMDevicePluginNum

func (mr *MockMetricsMockRecorder) SetKMMDevicePluginNum(value any) *gomock.Call

SetKMMDevicePluginNum indicates an expected call of SetKMMDevicePluginNum.

func (*MockMetricsMockRecorder) SetKMMInClusterBuildNum

func (mr *MockMetricsMockRecorder) SetKMMInClusterBuildNum(value any) *gomock.Call

SetKMMInClusterBuildNum indicates an expected call of SetKMMInClusterBuildNum.

func (*MockMetricsMockRecorder) SetKMMInClusterSignNum

func (mr *MockMetricsMockRecorder) SetKMMInClusterSignNum(value any) *gomock.Call

SetKMMInClusterSignNum indicates an expected call of SetKMMInClusterSignNum.

func (*MockMetricsMockRecorder) SetKMMModprobeArgs

func (mr *MockMetricsMockRecorder) SetKMMModprobeArgs(modName, namespace, modprobeArgs any) *gomock.Call

SetKMMModprobeArgs indicates an expected call of SetKMMModprobeArgs.

func (*MockMetricsMockRecorder) SetKMMModprobeRawArgs

func (mr *MockMetricsMockRecorder) SetKMMModprobeRawArgs(modName, namespace, modprobeArgs any) *gomock.Call

SetKMMModprobeRawArgs indicates an expected call of SetKMMModprobeRawArgs.

func (*MockMetricsMockRecorder) SetKMMModulesNum

func (mr *MockMetricsMockRecorder) SetKMMModulesNum(value any) *gomock.Call

SetKMMModulesNum indicates an expected call of SetKMMModulesNum.

func (*MockMetricsMockRecorder) SetKMMPreflightsNum

func (mr *MockMetricsMockRecorder) SetKMMPreflightsNum(value any) *gomock.Call

SetKMMPreflightsNum indicates an expected call of SetKMMPreflightsNum.

Jump to

Keyboard shortcuts

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