leaderelection

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

https://github.com/kubernetes/client-go/blob/master/examples/leader-election/main.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LeaderElection

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

func NewLeaderElection

func NewLeaderElection(name, namespace string) *LeaderElection

func (*LeaderElection) Run

func (le *LeaderElection) Run(ctx context.Context, cfg *rest.Config, run func(ctx context.Context, clientConfig *rest.Config, stopCh <-chan struct{})) error

Jump to

Keyboard shortcuts

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