caasfirewaller

package
v0.0.0-...-0a82276 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WithTracer = base.WithTracer

WithTracer returns an Option that configures the Client to use the supplied tracer.

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 for sidecar applications.

func NewClient

func NewClient(caller base.APICaller, options ...Option) *Client

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

func (*Client) ApplicationConfig

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

ApplicationConfig returns the config for the specified application.

func (*Client) IsExposed

func (c *Client) IsExposed(ctx context.Context, appName string) (bool, error)

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

func (*Client) Life

func (c *Client) Life(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context) (watcher.StringsWatcher, error)

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

type Option

type Option = base.Option

Option is a function that can be used to configure a Client.

Jump to

Keyboard shortcuts

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