leader

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Elector added in v0.13.0

type Elector interface {
	// IsLeader returns whether this host is the leader
	IsLeader() (bool, error)
}

type LeaderForLife added in v0.13.0

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

func New

func New(ctx context.Context, logger hclog.Logger, clientset kubernetes.Interface, exitOnError chan error) *LeaderForLife

New returns a Elector that uses the operator-sdk's leader for life elector

func (*LeaderForLife) IsLeader added in v0.13.0

func (le *LeaderForLife) IsLeader() (bool, error)

IsLeader returns whether this host is the leader

Jump to

Keyboard shortcuts

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