cluster

package
v0.0.0-...-3d3f5d9 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2014 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEngineNotConnected = errors.New("engine is not connected to docker's REST API")
)

Functions

This section is empty.

Types

type Cluster

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

func New

func New(manager citadel.ResourceManager, engines ...*citadel.Engine) (*Cluster, error)

func (*Cluster) AddEngine

func (c *Cluster) AddEngine(e *citadel.Engine) error

func (*Cluster) Close

func (c *Cluster) Close() error

Close signals to the cluster that no other actions will be applied

func (*Cluster) ClusterInfo

func (c *Cluster) ClusterInfo() *citadel.ClusterInfo

Info returns information about the cluster

func (*Cluster) Engines

func (c *Cluster) Engines() []*citadel.Engine

Engines returns the engines registered in the cluster

func (*Cluster) Events

func (c *Cluster) Events(handler citadel.EventHandler) error

func (*Cluster) Kill

func (c *Cluster) Kill(container *citadel.Container, sig int) error

func (*Cluster) ListContainers

func (c *Cluster) ListContainers(all bool) []*citadel.Container

ListContainers returns all the containers running in the cluster

func (*Cluster) Logs

func (c *Cluster) Logs(container *citadel.Container, stdout bool, stderr bool) (io.ReadCloser, error)

func (*Cluster) RegisterScheduler

func (c *Cluster) RegisterScheduler(tpe string, s citadel.Scheduler) error

func (*Cluster) Remove

func (c *Cluster) Remove(container *citadel.Container) error

func (*Cluster) RemoveEngine

func (c *Cluster) RemoveEngine(e *citadel.Engine) error

func (*Cluster) Restart

func (c *Cluster) Restart(container *citadel.Container, timeout int) error

func (*Cluster) Start

func (c *Cluster) Start(image *citadel.Image, pull bool) (*citadel.Container, error)

func (*Cluster) Stop

func (c *Cluster) Stop(container *citadel.Container) error

Jump to

Keyboard shortcuts

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