caasfirewaller

package
v0.0.0-...-51a0f74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*charmscommon.CharmInfoClient
	*charmscommon.ApplicationCharmInfoClient
	// contains filtered or unexported fields
}

Client allows access to the CAAS firewaller API endpoint.

func NewClientLegacy

func NewClientLegacy(caller base.APICaller) *Client

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

func (*Client) ApplicationConfig

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

ApplicationConfig returns the config for the specified application.

func (*Client) IsExposed

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

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

func (*Client) Life

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

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

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.

type ClientSidecar

type ClientSidecar struct {
	*Client
}

ClientSidecar allows access to the CAAS firewaller API endpoint for sidecar applications.

func NewClientSidecar

func NewClientSidecar(caller base.APICaller) *ClientSidecar

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

func (*ClientSidecar) GetOpenedPorts

func (c *ClientSidecar) GetOpenedPorts(appName string) (network.GroupedPortRanges, error)

GetOpenedPorts returns all the opened ports for each given application.

func (*ClientSidecar) WatchOpenedPorts

func (c *ClientSidecar) WatchOpenedPorts() (watcher.StringsWatcher, error)

WatchOpenedPorts returns a StringsWatcher that notifies of changes to the opened ports for the current model.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL