leaderelection

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 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 Elector

type Elector struct {
	LockMeta metav1.ObjectMeta
	Client   kubernetes.Interface
	Recorder record.EventRecorder
	// contains filtered or unexported fields
}

func (*Elector) Leading

func (e *Elector) Leading() bool

func (*Elector) Run

func (e *Elector) Run() error

type Interface

type Interface interface {
	Run() error
	Leading() bool
}

Jump to

Keyboard shortcuts

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