leadership

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NeedLeaderElectionNotification

type NeedLeaderElectionNotification interface {
	OnElectedLeader()
}

type Notifier

type Notifier struct {
	ToNotify []NeedLeaderElectionNotification
}

Notifier is controller-runtime manager runnable that can be used to notify other components when leader election has occurred for the current manager.

func (*Notifier) NeedLeaderElection

func (n *Notifier) NeedLeaderElection() bool

func (*Notifier) Start

func (n *Notifier) Start(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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