Documentation ¶
Index ¶
- type Metrics
- func (_m *Metrics) CleanUpGardenerClusterGauge(runtimeID string)
- func (_m *Metrics) CleanUpKubeconfigExpiration(runtimeID string)
- func (_m *Metrics) CleanUpRuntimeGauge(runtimeID string, runtimeName string)
- func (_m *Metrics) IncRuntimeFSMStopCounter()
- func (_m *Metrics) ResetRuntimeMetrics()
- func (_m *Metrics) SetGardenerClusterStates(cluster v1.GardenerCluster)
- func (_m *Metrics) SetKubeconfigExpiration(secret corev1.Secret, rotationPeriod time.Duration, ...)
- func (_m *Metrics) SetRuntimeStates(runtime v1.Runtime)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
Metrics is an autogenerated mock type for the Metrics type
func NewMetrics ¶
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 ¶
CleanUpGardenerClusterGauge provides a mock function with given fields: runtimeID
func (*Metrics) CleanUpKubeconfigExpiration ¶
CleanUpKubeconfigExpiration provides a mock function with given fields: runtimeID
func (*Metrics) CleanUpRuntimeGauge ¶
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 ¶
SetRuntimeStates provides a mock function with given fields: runtime