kubernetes/staging/src/k8s.io/client-go/tools/leaderelection/resourcelock/interface.go

const LeaderElectionRecordAnnotationKey

const endpointsResourceLock

const configMapsResourceLock

const LeasesResourceLock

const endpointsLeasesResourceLock

const configMapsLeasesResourceLock

type LeaderElectionRecord

type EventRecorder

type ResourceLockConfig

type Interface

// Manufacture will create a lock of a given type according to the input parameters
func New(lockType string, ns string, name string, coreClient corev1.CoreV1Interface, coordinationClient coordinationv1.CoordinationV1Interface, rlc ResourceLockConfig) (Interface, error) {}

// NewFromKubeconfig will create a lock of a given type according to the input parameters.
// Timeout set for a client used to contact to Kubernetes should be lower than
// RenewDeadline to keep a single hung request from forcing a leader loss.
// Setting it to max(time.Second, RenewDeadline/2) as a reasonable heuristic.
func NewFromKubeconfig(lockType string, ns string, name string, rlc ResourceLockConfig, kubeconfig *restclient.Config, renewDeadline time.Duration) (Interface, error) {}