Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Machine ¶
type Machine struct {
// contains filtered or unexported fields
}
Machine represents a juju machine as seen by the firewaller worker.
func (*Machine) InstanceId ¶
InstanceId returns the provider specific instance id for this machine, or a CodeNotProvisioned error, if not set.
func (*Machine) WatchUnits ¶
func (m *Machine) WatchUnits() (watcher.StringsWatcher, error)
WatchUnits starts a StringsWatcher to watch all units assigned to the machine.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents the state of a service.
func (*Service) IsExposed ¶
IsExposed returns whether this service is exposed. The explicitly open ports (with open-port) for exposed services may be accessed from machines outside of the local deployment network.
NOTE: This differs from state.Service.IsExposed() by returning an error as well, because it needs to make an API call.
type State ¶
type State struct { *common.EnvironWatcher // contains filtered or unexported fields }
State provides access to the Firewaller API facade.
func (*State) WatchEnvironMachines ¶
func (st *State) WatchEnvironMachines() (watcher.StringsWatcher, error)
WatchEnvironMachines returns a StringsWatcher that notifies of changes to the life cycles of the top level machines in the current environment.
type Unit ¶
type Unit struct {
// contains filtered or unexported fields
}
Unit represents a juju unit as seen by a firewaller worker.
func (*Unit) AssignedMachine ¶
AssignedMachine returns the tag of this unit's assigned machine (if any), or a CodeNotAssigned error.
func (*Unit) OpenedPorts ¶
OpenedPorts returns the list of opened ports for this unit.
NOTE: This differs from state.Unit.OpenedPorts() by returning an error as well, because it needs to make an API call.