| 27 | ) |
| 28 | |
| 29 | type 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 |
| 39 | func (el *EndpointsLock) Get() (*LeaderElectionRecord, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected