leader

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Leader bool
)

Functions

func LeaderElector

func LeaderElector(stopCh <-chan struct{}, client *clientset.Clientset, opts Options)

Types

type Options

type Options struct {
	LeaseDuration int
	RenewDeadline int
	RetryPeriod   int
}

func NewOptions

func NewOptions() *Options

func (*Options) AddFlags

func (options *Options) AddFlags(fs *pflag.FlagSet)

Jump to

Keyboard shortcuts

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