reconciler

package
v0.0.0-...-43d1ab5 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager is the main entrypoint for the reconciler package; users of the reconciler should instantiate and run a Manager. Manager is the thinnest part of the reconciler package, because it is a long-running blocking routine, making it difficult to test.

func New

func New(client interfaces.BackendClient) *Manager

New creates a new Manager, the main entrypoint for the reconciler package, along with all of the dependent types

func (*Manager) JoinCluster

func (m *Manager) JoinCluster()

JoinCluster notifies the Manager that this node has joined a swarmkit cluster.

func (*Manager) LeaveCluster

func (m *Manager) LeaveCluster()

LeaveCluster notifies the Manager that this node has left a swarmkit cluster

func (*Manager) Run

func (m *Manager) Run() error

Run runs the reconciler package. It is a long-running, blocking routine, and should be called inside of a goroutine. When Run stops, it will return nil if it stopped cleanly, or an error otherwise. Run may only be called once; subsequent calls will return an error. This includes if the Manager is stopped for any reason; it may not be restarted once stopped.

func (*Manager) Stop

func (m *Manager) Stop()

Stop instructs the runner to stop executing. It will cause Run to exit. Subsequent calls to Stop after the first have no effect.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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