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

package caasoperator

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

Index

Package Files

client.go

type Client Uses

type Client struct {
    *common.APIAddresser
    // contains filtered or unexported fields
}

Client allows access to the CAAS operator API endpoint.

func NewClient Uses

func NewClient(caller base.APICaller) *Client

NewClient returns a client used to access the CAAS Operator API.

func (*Client) Charm Uses

func (c *Client) Charm(application string) (_ *charm.URL, forceUpgrade bool, sha256 string, vers int, _ error)

Charm returns information about the charm currently assigned to the application, including url, force upgrade and sha etc.

func (*Client) Life Uses

func (c *Client) Life(entityName string) (life.Value, error)

Life returns the lifecycle state for the specified CAAS application or unit in the current model.

func (*Client) Model Uses

func (c *Client) Model() (*model.Model, error)

Model returns the model entity.

func (*Client) RemoveUnit Uses

func (c *Client) RemoveUnit(unitName string) error

RemoveUnit removes the specified unit from the current model.

func (*Client) SetPodSpec Uses

func (c *Client) SetPodSpec(appName string, spec string) error

SetPodSpec sets the pod spec of the specified application.

func (*Client) SetStatus Uses

func (c *Client) SetStatus(
    application string,
    status status.Status,
    info string,
    data map[string]interface{},
) error

SetStatus sets the status of the specified application.

func (*Client) SetVersion Uses

func (c *Client) SetVersion(appName string, v version.Binary) error

SetVersion sets the tools version associated with the given application.

func (*Client) Watch Uses

func (c *Client) Watch(application string) (watcher.NotifyWatcher, error)

Watch returns a watcher for observing changes to an application.

func (*Client) WatchUnits Uses

func (c *Client) WatchUnits(application string) (watcher.StringsWatcher, error)

WatchUnits returns a StringsWatcher that notifies of changes to the lifecycles of units of the specified CAAS application in the current model.

Package caasoperator imports 12 packages (graph) and is imported by 9 packages. Updated 2019-08-26. Refresh now. Tools for package owners.