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

package meterstatus

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

Package meterstatus contains an implementation of the api facade to watch the meter status of a unit for changes and return the current meter status.


Package Files


type Client Uses

type Client struct {
    // contains filtered or unexported fields

Client provides access to the meter status API.

func (*Client) MeterStatus Uses

func (c *Client) MeterStatus() (statusCode, statusInfo string, rErr error)

MeterStatus is part of the MeterStatusClient interface.

func (*Client) WatchMeterStatus Uses

func (c *Client) WatchMeterStatus() (watcher.NotifyWatcher, error)

WatchMeterStatus is part of the MeterStatusClient interface.

type MeterStatusClient Uses

type MeterStatusClient interface {
    // MeterStatus returns the meter status and additional information for the
    // API client.
    MeterStatus() (string, string, error)
    // WatchMeterStatus returns a watcher for observing changes to the unit's meter
    // status.
    WatchMeterStatus() (watcher.NotifyWatcher, error)

MeterStatusClient defines the methods on the MeterStatus API end point.

func NewClient Uses

func NewClient(caller base.APICaller, tag names.UnitTag) MeterStatusClient

NewClient creates a new client for accessing the MeterStatus API.

Package meterstatus imports 6 packages (graph) and is imported by 53 packages. Updated 2020-05-12. Refresh now. Tools for package owners.