Versions in this module Expand all Collapse all v11 v11.0.0 Mar 13, 2019 Changes in this version + const ConfigMapsResourceLock + const EndpointsResourceLock + const LeaderElectionRecordAnnotationKey + const LeasesResourceLock + func LeaderElectionRecordToLeaseSpec(ler *LeaderElectionRecord) coordinationv1.LeaseSpec + type ConfigMapLock struct + Client corev1client.ConfigMapsGetter + ConfigMapMeta metav1.ObjectMeta + LockConfig ResourceLockConfig + func (cml *ConfigMapLock) Create(ler LeaderElectionRecord) error + func (cml *ConfigMapLock) Describe() string + func (cml *ConfigMapLock) Get() (*LeaderElectionRecord, error) + func (cml *ConfigMapLock) Identity() string + func (cml *ConfigMapLock) RecordEvent(s string) + func (cml *ConfigMapLock) Update(ler LeaderElectionRecord) error + type EndpointsLock struct + Client corev1client.EndpointsGetter + EndpointsMeta metav1.ObjectMeta + LockConfig ResourceLockConfig + func (el *EndpointsLock) Create(ler LeaderElectionRecord) error + func (el *EndpointsLock) Describe() string + func (el *EndpointsLock) Get() (*LeaderElectionRecord, error) + func (el *EndpointsLock) Identity() string + func (el *EndpointsLock) RecordEvent(s string) + func (el *EndpointsLock) Update(ler LeaderElectionRecord) error + type EventRecorder interface + Eventf func(obj runtime.Object, eventType, reason, message string, args ...interface{}) + type Interface interface + Create func(ler LeaderElectionRecord) error + Describe func() string + Get func() (*LeaderElectionRecord, error) + Identity func() string + RecordEvent func(string) + Update func(ler LeaderElectionRecord) error + func New(lockType string, ns string, name string, coreClient corev1.CoreV1Interface, ...) (Interface, error) + type LeaderElectionRecord struct + AcquireTime metav1.Time + HolderIdentity string + LeaderTransitions int + LeaseDurationSeconds int + RenewTime metav1.Time + func LeaseSpecToLeaderElectionRecord(spec *coordinationv1.LeaseSpec) *LeaderElectionRecord + type LeaseLock struct + Client coordinationv1client.LeasesGetter + LeaseMeta metav1.ObjectMeta + LockConfig ResourceLockConfig + func (ll *LeaseLock) Create(ler LeaderElectionRecord) error + func (ll *LeaseLock) Describe() string + func (ll *LeaseLock) Get() (*LeaderElectionRecord, error) + func (ll *LeaseLock) Identity() string + func (ll *LeaseLock) RecordEvent(s string) + func (ll *LeaseLock) Update(ler LeaderElectionRecord) error + type ResourceLockConfig struct + EventRecorder EventRecorder + Identity string