manager

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2016 License: Apache-2.0 Imports: 10 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	group.Plugin

	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 GlobalSpec

type GlobalSpec struct {
	Groups map[group.ID]PluginSpec
}

GlobalSpec is a simple model of a collection of Group plugin configs

type PluginSpec

type PluginSpec struct {
	Plugin     string
	Properties *json.RawMessage
}

PluginSpec is a standard representation of a Plugin that specifies it by name and custom properties

Jump to

Keyboard shortcuts

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