MCPcopy
hub / github.com/kubernetes/client-go / defaultLeaderMetrics

Struct defaultLeaderMetrics

tools/leaderelection/metrics.go:44–47  ·  view source on GitHub ↗

defaultLeaderMetrics expects the caller to lock before setting any metrics.

Source from the content-addressed store, hash-verified

42
43// defaultLeaderMetrics expects the caller to lock before setting any metrics.
44type defaultLeaderMetrics struct {
45 // leader's value indicates if the current process is the owner of name lease
46 leader SwitchMetric
47}
48
49func (m *defaultLeaderMetrics) leaderOn(name string) {
50 if m == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected