mocks

package
v0.0.0-...-672fad3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	mock.Mock
}

Metrics is an autogenerated mock type for the Metrics type

func NewMetrics

func NewMetrics(t interface {
	mock.TestingT
	Cleanup(func())
}) *Metrics

NewMetrics creates a new instance of Metrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Metrics) CleanUpGardenerClusterGauge

func (_m *Metrics) CleanUpGardenerClusterGauge(runtimeID string)

CleanUpGardenerClusterGauge provides a mock function with given fields: runtimeID

func (*Metrics) CleanUpKubeconfigExpiration

func (_m *Metrics) CleanUpKubeconfigExpiration(runtimeID string)

CleanUpKubeconfigExpiration provides a mock function with given fields: runtimeID

func (*Metrics) CleanUpRuntimeGauge

func (_m *Metrics) CleanUpRuntimeGauge(runtimeID string, runtimeName string)

CleanUpRuntimeGauge provides a mock function with given fields: runtimeID, runtimeName

func (*Metrics) IncRuntimeFSMStopCounter

func (_m *Metrics) IncRuntimeFSMStopCounter()

IncRuntimeFSMStopCounter provides a mock function with given fields:

func (*Metrics) ResetRuntimeMetrics

func (_m *Metrics) ResetRuntimeMetrics()

ResetRuntimeMetrics provides a mock function with given fields:

func (*Metrics) SetGardenerClusterStates

func (_m *Metrics) SetGardenerClusterStates(cluster v1.GardenerCluster)

SetGardenerClusterStates provides a mock function with given fields: cluster

func (*Metrics) SetKubeconfigExpiration

func (_m *Metrics) SetKubeconfigExpiration(secret corev1.Secret, rotationPeriod time.Duration, minimalRotationTimeRatio float64)

SetKubeconfigExpiration provides a mock function with given fields: secret, rotationPeriod, minimalRotationTimeRatio

func (*Metrics) SetRuntimeStates

func (_m *Metrics) SetRuntimeStates(runtime v1.Runtime)

SetRuntimeStates provides a mock function with given fields: runtime

Jump to

Keyboard shortcuts

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