package
0.1.0
Repository: https://github.com/segmentio/kubeapply.git
Documentation: pkg.go.dev

# Packages

Package leaderelection implements leader election of a set of endpoints.

# Functions

NewInMemoryStore returns a new InMemoryStore instance.
NewKubeLocker returns a Locker that is backed by a lock in Kubernetes.
NewKubeStore returns a new KubeStore instance.
NewLocalLocker returns a new LocalLocker instance, which is backed by a golang lock.

# Structs

InMemoryStore is an implementation of Store that is backed by a golang map.
KubeLocker is an Locker that uses Kubernetes's leader election functionality for locking.
KubeStore is an implementation of Store that is backed by a Kubernetes configMap.
LocalLocker is an implementation of Locker that keeps track of locks in memory.

# Interfaces

Locker is an interface for structs that can acquire and release locks.
Store is an interface for structs that can get and set key/value pairs.