Documentation ¶
Overview ¶
Copyright 2016 Canonical Ltd. Licensed under the AGPLv3, see LICENCE file for details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector is a prometheus.Collector that collects metrics about the Juju global state.
func (*Collector) Collect ¶
func (c *Collector) Collect(ch chan<- prometheus.Metric)
Collect is part of the prometheus.Collector interface.
func (*Collector) Describe ¶
func (c *Collector) Describe(ch chan<- *prometheus.Desc)
Describe is part of the prometheus.Collector interface.
type Machine ¶
type Machine interface { InstanceStatus() (status.StatusInfo, error) Life() state.Life Status() (status.StatusInfo, error) }
Machine represents a machine in a Juju model.
type Model ¶
type Model interface { Life() state.Life ModelTag() names.ModelTag Status() (status.StatusInfo, error) }
Model represents a Juju model.
type State ¶
type State interface { AllMachines() ([]Machine, error) AllModels() ([]Model, error) AllUsers() ([]User, error) ControllerTag() names.ControllerTag ForModel(names.ModelTag) (StateCloser, error) UserAccess(names.UserTag, names.Tag) (permission.UserAccess, error) }
State represents the global state managed by the Juju controller.
type StateCloser ¶
StateCloser extends the State interface with a Close method.
Click to show internal directories.
Click to hide internal directories.