Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDockBroker ¶
Types ¶
type Provisioner ¶
type Provisioner struct {
// contains filtered or unexported fields
}
Provisioner represents a running provisioning worker.
func NewProvisioner ¶
func NewProvisioner(pt ProvisionerType, st *state.State, machineId, dataDir string) *Provisioner
NewProvisioner returns a new Provisioner. When new machines are added to the state, it allocates instances from the environment and allocates them to the new machines.
func (*Provisioner) Err ¶
func (p *Provisioner) Err() (reason error)
Err returns the reason why the Provisioner has stopped or tomb.ErrStillAlive when it is still alive.
func (*Provisioner) Stop ¶
func (p *Provisioner) Stop() error
Stop stops the Provisioner and returns any error encountered while provisioning.
func (*Provisioner) String ¶
func (p *Provisioner) String() string
type ProvisionerTask ¶
func NewProvisionerTask ¶
func NewProvisionerTask( machineId string, machineGetter MachineGetter, watcher Watcher, broker environs.InstanceBroker, auth AuthenticationProvider, ) ProvisionerTask
type ProvisionerType ¶
type ProvisionerType string
var ( // ENVIRON provisioners create machines from the environment ENVIRON ProvisionerType = "environ" // LXC provisioners create lxc containers on their parent machine LXC ProvisionerType = "lxc" DOCK ProvisionerType = "dock" )
Click to show internal directories.
Click to hide internal directories.