Documentation ¶
Index ¶
- func NewCluster(scheduler *scheduler.Scheduler, store *state.Store, ...) cluster.Cluster
- func NewNode(addr string, overcommitRatio float64) *node
- type Cluster
- func (c *Cluster) Container(IDOrName string) *cluster.Container
- func (c *Cluster) Containers() []*cluster.Container
- func (c *Cluster) CreateContainer(config *dockerclient.ContainerConfig, name string) (*cluster.Container, error)
- func (c *Cluster) Handle(e *cluster.Event) error
- func (c *Cluster) Image(IDOrName string) *cluster.Image
- func (c *Cluster) Images() []*cluster.Image
- func (c *Cluster) Info() [][2]string
- func (c *Cluster) Pull(name string, callback func(what, status string))
- func (c *Cluster) RemoveContainer(container *cluster.Container, force bool) error
- func (c *Cluster) RemoveImage(image *cluster.Image) ([]*dockerclient.ImageDelete, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cluster ¶
Cluster is exported
func (*Cluster) Containers ¶
Containers returns all the containers in the cluster.
func (*Cluster) CreateContainer ¶
func (c *Cluster) CreateContainer(config *dockerclient.ContainerConfig, name string) (*cluster.Container, error)
CreateContainer aka schedule a brand new container into the cluster.
func (*Cluster) RemoveContainer ¶
RemoveContainer aka Remove a container from the cluster. Containers should always be destroyed through the scheduler to guarantee atomicity.
func (*Cluster) RemoveImage ¶
func (c *Cluster) RemoveImage(image *cluster.Image) ([]*dockerclient.ImageDelete, error)
RemoveImage removes an image from the cluster
Click to show internal directories.
Click to hide internal directories.