juju: github.com/juju/juju/api/machiner Index | Files

package machiner

import "github.com/juju/juju/api/machiner"

Index

Package Files

machine.go machiner.go

type Machine Uses

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

Machine represents a juju machine as seen by a machiner worker.

func (*Machine) EnsureDead Uses

func (m *Machine) EnsureDead() error

EnsureDead sets the machine lifecycle to Dead if it is Alive or Dying. It does nothing otherwise.

func (*Machine) Jobs Uses

func (m *Machine) Jobs() (*params.JobsResult, error)

Jobs returns a list of jobs for the machine.

func (*Machine) Life Uses

func (m *Machine) Life() params.Life

Life returns the machine's lifecycle value.

func (*Machine) Refresh Uses

func (m *Machine) Refresh() error

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

func (*Machine) SetMachineAddresses Uses

func (m *Machine) SetMachineAddresses(addresses []network.MachineAddress) error

SetMachineAddresses sets the machine determined addresses of the machine.

func (*Machine) SetObservedNetworkConfig Uses

func (m *Machine) SetObservedNetworkConfig(netConfig []params.NetworkConfig) error

SetObservedNetworkConfig sets the machine network config as observed on the machine.

func (*Machine) SetProviderNetworkConfig Uses

func (m *Machine) SetProviderNetworkConfig() error

SetProviderNetworkConfig sets the machine network config as seen by the provider.

func (*Machine) SetStatus Uses

func (m *Machine) SetStatus(status status.Status, info string, data map[string]interface{}) error

SetStatus sets the status of the machine.

func (*Machine) Tag Uses

func (m *Machine) Tag() names.Tag

Tag returns the machine's tag.

func (*Machine) Watch Uses

func (m *Machine) Watch() (watcher.NotifyWatcher, error)

Watch returns a watcher for observing changes to the machine.

type State Uses

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

State provides access to the Machiner API facade.

func NewState Uses

func NewState(caller base.APICaller) *State

NewState creates a new client-side Machiner facade.

func (*State) Machine Uses

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

Machine provides access to methods of a state.Machine through the facade.

Package machiner imports 8 packages (graph) and is imported by 147 packages. Updated 2019-09-24. Refresh now. Tools for package owners.