Documentation ¶
Index ¶
- func MachineID(root string) string
- type Backend
- type Cluster
- func (c *Cluster) AddMachine(machine *Machine)
- func (c *Cluster) GetMachine(id string) *Machine
- func (c *Cluster) Init(backend Backend, configDirectory string)
- func (c *Cluster) InitFromConfig(backend Backend, config conf.ServerConfiguration)
- func (c *Cluster) List() *Machines
- func (c *Cluster) ParseConfig(configDirectory string)
- func (c *Cluster) ParseConfigFromBackend(configBackend conf.ConfigurationBackend)
- func (c *Cluster) RemoveMachine(machine *Machine)
- type Machine
- type Machines
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend interface { Init(c *Cluster, machine *Machine) DeploymentComplete(d *deployment.Deployment) DeploymentFailed(d *deployment.Deployment) GetValue(key string) map[string]interface{} GetString(key string) string GetValues(key string) map[string]interface{} Watch(key string, callback func(string)) }
type Cluster ¶
type Cluster struct { Machines Machines `json:"machines"` Backend Backend ClusterConfig map[string]interface{} }
func (*Cluster) AddMachine ¶
func (*Cluster) GetMachine ¶
func (*Cluster) InitFromConfig ¶
func (c *Cluster) InitFromConfig(backend Backend, config conf.ServerConfiguration)
func (*Cluster) ParseConfig ¶
func (*Cluster) ParseConfigFromBackend ¶
func (c *Cluster) ParseConfigFromBackend(configBackend conf.ConfigurationBackend)
func (*Cluster) RemoveMachine ¶
type Machine ¶
type Machine struct { Id string `json:"id"` Endpoint string `json:"endpoint"` Tags []string `json:"tags"` }
func DeserializeMachine ¶
func LocalMachine ¶
func (*Machine) TryDeploy ¶
func (m *Machine) TryDeploy(d deployment.Deployment) bool
Click to show internal directories.
Click to hide internal directories.