manager

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InterfaceSpec = spi.InterfaceSpec{
	Name:    "Manager",
	Version: "0.1.0",
}

InterfaceSpec is the current name and version of the Instance API.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	group.Plugin

	Manager

	Start() (<-chan struct{}, error)
	Stop()
}

Backend is the admin / server interface

func NewManager

func NewManager(
	plugins discovery.Plugins,
	leader leader.Detector,
	snapshot store.Snapshot,
	backendName string) (Backend, error)

NewManager returns the manager which depends on other services to coordinate and manage the plugins in order to ensure the infrastructure state matches the user's spec.

type Manager added in v0.3.0

type Manager interface {
	// IsLeader returns true only if for certain this is a leader. False if not or unknown.
	IsLeader() (bool, error)
}

Manager is the interface for interacting locally or remotely with the manager

Jump to

Keyboard shortcuts

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