leaderelection

package
v1.4.25 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Leader

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

func New

func New(opts ...Opt) *Leader

func (*Leader) Init

func (l *Leader) Init() error

func (*Leader) Name

func (l *Leader) Name() string

func (*Leader) Run

func (l *Leader) Run() error

func (*Leader) Stop

func (l *Leader) Stop() error

type Opt

type Opt func(*Leader) error

func WithClientset

func WithClientset(clientSet kubernetes.Interface) Opt

func WithFn

func WithFn(fn func(context.Context)) Opt

func WithLeaderName

func WithLeaderName(leaderName string) Opt

func WithNamespace

func WithNamespace(namespace string) Opt

func WithPodName

func WithPodName(podName string) Opt

Jump to

Keyboard shortcuts

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