scheduler

package
v0.0.0-...-f9f83aa Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2014 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

type Scheduler struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewScheduler

func NewScheduler(cluster *cluster.Cluster, strategy strategy.PlacementStrategy, filters []filter.Filter) *Scheduler

func (*Scheduler) CreateContainer

func (s *Scheduler) CreateContainer(config *dockerclient.ContainerConfig, name string) (*cluster.Container, error)

Schedule a brand new container into the cluster.

func (*Scheduler) RemoveContainer

func (s *Scheduler) RemoveContainer(container *cluster.Container, force bool) error

Remove a container from the cluster. Containers should always be destroyed through the scheduler to guarantee atomicity.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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