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

package deployer

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


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 {
    // 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) 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() life.Value

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 9 packages (graph). Updated 2020-05-09. Refresh now. Tools for package owners.