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

package caasfirewaller

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

Index

Package Files

client.go

type Client Uses

type Client struct {
    // contains filtered or unexported fields
}

Client allows access to the CAAS firewaller API endpoint.

func NewClient Uses

func NewClient(caller base.APICaller) *Client

NewClient returns a client used to access the CAAS unit provisioner API.

func (*Client) ApplicationConfig Uses

func (c *Client) ApplicationConfig(applicationName string) (application.ConfigAttributes, error)

ApplicationConfig returns the config for the specified application.

func (*Client) IsExposed Uses

func (c *Client) IsExposed(appName string) (bool, error)

IsExposed returns whether the specified CAAS application in the current model is exposed.

func (*Client) Life Uses

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

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

func (*Client) WatchApplication Uses

func (c *Client) WatchApplication(appName string) (watcher.NotifyWatcher, error)

WatchApplication returns a NotifyWatcher that notifies of changes to the application in the current model.

func (*Client) WatchApplications Uses

func (c *Client) WatchApplications() (watcher.StringsWatcher, error)

WatchApplications returns a StringsWatcher that notifies of changes to the lifecycles of CAAS applications in the current model.

Package caasfirewaller imports 9 packages (graph) and is imported by 3 packages. Updated 2019-08-23. Refresh now. Tools for package owners.