leaderelect

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLock

func NewLock(ns string, name string, leaseOperator lease.Operator, rlc resourcelock.ResourceLockConfig) resourcelock.Interface

Types

type Lock

type Lock struct {
	// LeaseMeta should contain a Name and a Namespace of a
	// LeaseMeta object that the LeaderElector will attempt to lead.
	LeaseMeta metav1.ObjectMeta
	// contains filtered or unexported fields
}

func (*Lock) Create

func (*Lock) Describe

func (l *Lock) Describe() string

func (*Lock) Get

func (*Lock) Identity

func (l *Lock) Identity() string

func (*Lock) RecordEvent

func (l *Lock) RecordEvent(s string)

func (*Lock) Update

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL