election

package
v0.0.0-...-0888c38 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sLeaderElectionMgr

type K8sLeaderElectionMgr struct {
	// contains filtered or unexported fields
}

K8sLeaderElectionMgr manages leader election among cloud connectors by talking to the leader election side car.

func NewK8sLeaderElectionMgr

func NewK8sLeaderElectionMgr(electionNamespace string, expectedMaxSkewMS, renewDeadlineMS time.Duration, electionName string) (*K8sLeaderElectionMgr, error)

NewK8sLeaderElectionMgr creates a K8sLeaderElectionMgr.

func (*K8sLeaderElectionMgr) Campaign

func (le *K8sLeaderElectionMgr) Campaign(ctx context.Context) error

Campaign blocks until this node is the leader.

Jump to

Keyboard shortcuts

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