juju: github.com/howbazaar/juju/api/deployer Index | Files

package deployer

import "github.com/howbazaar/juju/api/deployer"

Index

Package Files

deployer.go machine.go unit.go

type Machine Uses

type Machine struct {
    // contains filtered or unexported fields
}

Machine represents a juju machine as seen by the deployer worker.

func (*Machine) WatchUnits Uses

func (m *Machine) WatchUnits() (watcher.StringsWatcher, error)

WatchUnits starts a StringsWatcher to watch all units deployed to the machine, in order to track which ones should be deployed or recalled.

type State Uses

type State struct {
    *common.APIAddresser
    // contains filtered or unexported fields
}

State provides access to the deployer worker's idea of the state.

func NewState Uses

func NewState(caller base.APICaller) *State

NewState creates a new State instance that makes API calls through the given caller.

func (*State) ConnectionInfo Uses

func (st *State) ConnectionInfo() (result params.DeployerConnectionValues, err error)

ConnectionInfo returns all the address information that the deployer task needs in one call.

func (*State) Machine Uses

func (st *State) Machine(tag names.MachineTag) (*Machine, error)

Machine returns the machine with the given tag.

func (*State) StateAddresses Uses

func (st *State) StateAddresses() ([]string, error)

StateAddresses returns the list of addresses used to connect to the state.

func (*State) Unit Uses

func (st *State) Unit(tag names.UnitTag) (*Unit, error)

Unit returns the unit with the given tag.

type Unit Uses

type Unit struct {
    // contains filtered or unexported fields
}

Unit represents a juju unit as seen by the deployer worker.

func (*Unit) Life Uses

func (u *Unit) Life() params.Life

Life returns the unit's lifecycle value.

func (*Unit) Name Uses

func (u *Unit) Name() string

Name returns the unit's name.

func (*Unit) Refresh Uses

func (u *Unit) Refresh() error

Refresh updates the cached local copy of the unit's data.

func (*Unit) Remove Uses

func (u *Unit) Remove() error

Remove removes the unit from state, calling EnsureDead first, then Remove. It will fail if the unit is not present.

func (*Unit) SetPassword Uses

func (u *Unit) SetPassword(password string) error

SetPassword sets the unit's password.

func (*Unit) SetStatus Uses

func (u *Unit) SetStatus(unitStatus status.Status, info string, data map[string]interface{}) error

SetStatus sets the status of the unit.

func (*Unit) Tag Uses

func (u *Unit) Tag() string

Tag returns the unit's tag.

Package deployer imports 8 packages (graph). Updated 2016-10-12. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).