Versions in this module Expand all Collapse all v0 v0.1.0 Mar 22, 2023 Changes in this version + type Elector interface + RunOrDie func(context.Context, LeaderCallbacks) + func NewK8sLeaderElector(k8sclient kubernetes.Interface, namespace string, leaseName string, ...) Elector + type LeaderCallbacks struct + OnStartedLeading func(context.Context) + OnStoppedLeading func() + type Option func(*k8selector) + func WithLeaseDuration(f time.Duration) Option + func WithRenewDeadline(f time.Duration) Option + func WithRetryPeriod(f time.Duration) Option