manager

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2016 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 EventHandler

type EventHandler struct {
	Manager *Manager
}

EventHandler dispatches events to the manager

func NewEventHandler

func NewEventHandler(mgr *Manager) *EventHandler

NewEventHandler registers a Manager on a new EventHandler

func (*EventHandler) Handle

func (l *EventHandler) Handle(e *dockerclient.Event, ec chan error, args ...interface{})

Handle sends events on to the Manager

type Manager

type Manager struct {
	Config *interlock.Config
	Client *dockerclient.DockerClient
	// contains filtered or unexported fields
}

Manager listens on events from the connected Docker client and dispatches them to registered plugins

func NewManager

func NewManager(cfg *interlock.Config, tlsConfig *tls.Config) *Manager

NewManager create a new Manager

func (*Manager) Run

func (m *Manager) Run() error

Run starts up the manager, loads plugins, and dispatches a Docker event with status "interlock-start"

func (*Manager) Stop

func (m *Manager) Stop() error

Stop emits a Docker event with status "interlock-stop"

Jump to

Keyboard shortcuts

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