k8s

package
v0.0.0-...-163c308 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8s

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

func New

func New(config *config.Config) (k *K8s, err error)

func (*K8s) RunLeaderElection

func (k *K8s) RunLeaderElection(ctx context.Context, identity string, name string, callbacks K8sLeaderCallbacks) (err error)

type K8sLeaderCallbacks

type K8sLeaderCallbacks struct {
	OnStartedLeading StartLeadingFunc
	OnStoppedLeading StopLeadingFunc
	OnNewLeader      NewLeaderFunc
}

type NewLeaderFunc

type NewLeaderFunc func(string)

type StartLeadingFunc

type StartLeadingFunc func(context.Context)

type StopLeadingFunc

type StopLeadingFunc func()

Jump to

Keyboard shortcuts

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