Documentation ¶
Index ¶
- Variables
- type Cluster
- func (c *Cluster) AddEngine(e *citadel.Engine) error
- func (c *Cluster) Close() error
- func (c *Cluster) ClusterInfo() *citadel.ClusterInfo
- func (c *Cluster) Engines() []*citadel.Engine
- func (c *Cluster) Events(handler citadel.EventHandler) error
- func (c *Cluster) Kill(container *citadel.Container, sig int) error
- func (c *Cluster) ListContainers(all bool) []*citadel.Container
- func (c *Cluster) Logs(container *citadel.Container, stdout bool, stderr bool) (io.ReadCloser, error)
- func (c *Cluster) RegisterScheduler(tpe string, s citadel.Scheduler) error
- func (c *Cluster) Remove(container *citadel.Container) error
- func (c *Cluster) RemoveEngine(e *citadel.Engine) error
- func (c *Cluster) Restart(container *citadel.Container, timeout int) error
- func (c *Cluster) Start(image *citadel.Image, pull bool) (*citadel.Container, error)
- func (c *Cluster) Stop(container *citadel.Container) error
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 (*Cluster) ClusterInfo ¶
func (c *Cluster) ClusterInfo() *citadel.ClusterInfo
Info returns information about the cluster
func (*Cluster) ListContainers ¶
ListContainers returns all the containers running in the cluster
func (*Cluster) RegisterScheduler ¶
Click to show internal directories.
Click to hide internal directories.