This section is empty.


This section is empty.


This section is empty.


type API

type API struct {
	// contains filtered or unexported fields

    API provides access to the InstancePoller API facade.

    func NewAPI

    func NewAPI(caller base.APICaller) *API

      NewAPI creates a new client-side InstancePoller facade.

      func (*API) Machine

      func (api *API) Machine(tag names.MachineTag) (*Machine, error)

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

        func (*API) WatchModelMachines

        func (api *API) WatchModelMachines() (watcher.StringsWatcher, error)

          WatchModelMachines returns a StringsWatcher reporting changes to the machine life or agent start timestamps.

          type Machine

          type Machine struct {
          	// contains filtered or unexported fields

            Machine represents a juju machine as seen by an instancepoller worker.

            func (*Machine) Id

            func (m *Machine) Id() string

              Id returns the machine's id.

              func (*Machine) InstanceId

              func (m *Machine) InstanceId() (instance.Id, error)

                InstanceId returns the machine's instance id.

                func (*Machine) InstanceStatus

                func (m *Machine) InstanceStatus() (params.StatusResult, error)

                  InstanceStatus returns the machine's instance status.

                  func (*Machine) IsManual

                  func (m *Machine) IsManual() (bool, error)

                    IsManual returns whether the machine is manually provisioned.

                    func (*Machine) Life

                    func (m *Machine) Life() life.Value

                      Life returns the machine's lifecycle value.

                      func (*Machine) Refresh

                      func (m *Machine) Refresh() error

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

                        func (*Machine) SetInstanceStatus

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

                          SetInstanceStatus sets the instance status of the machine.

                          func (*Machine) SetProviderNetworkConfig

                          func (m *Machine) SetProviderNetworkConfig(ifList network.InterfaceInfos) (network.ProviderAddresses, bool, error)

                            SetProviderNetworkConfig updates the provider addresses for this machine.

                            func (*Machine) Status

                            func (m *Machine) Status() (params.StatusResult, error)

                              Status returns the machine status.

                              func (*Machine) String

                              func (m *Machine) String() string

                                String returns the machine as a string.

                                func (*Machine) Tag

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

                                  Tag returns the machine's tag.