Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) ApplicationConfig(ctx context.Context, applicationName string) (config.ConfigAttributes, error)
- func (c *Client) IsExposed(ctx context.Context, appName string) (bool, error)
- func (c *Client) Life(ctx context.Context, appName string) (life.Value, error)
- func (c *Client) WatchApplication(ctx context.Context, appName string) (watcher.NotifyWatcher, error)
- func (c *Client) WatchApplications(ctx context.Context) (watcher.StringsWatcher, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
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 (*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 ¶
IsExposed returns whether the specified CAAS application in the current model is exposed.
func (*Client) Life ¶
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 ¶
WatchApplications returns a StringsWatcher that notifies of changes to the lifecycles of CAAS applications in the current model.