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

Struct EndpointsLock

tools/leaderelection/resourcelock/endpointslock.go:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27)
28
29type EndpointsLock struct {
30 // EndpointsMeta should contain a Name and a Namespace of an
31 // Endpoints object that the LeaderElector will attempt to lead.
32 EndpointsMeta metav1.ObjectMeta
33 Client corev1client.EndpointsGetter
34 LockConfig ResourceLockConfig
35 e *v1.Endpoints
36}
37
38// Get returns the election record from a Endpoints Annotation
39func (el *EndpointsLock) Get() (*LeaderElectionRecord, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected