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.

Index

Package Files

client.go

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 46 packages. Updated 2019-08-25. Refresh now. Tools for package owners.