Documentation ¶
Index ¶
- type Client
- func (c *Client) ApplicationConfig(applicationName string) (application.ConfigAttributes, error)
- func (c *Client) IsExposed(appName string) (bool, error)
- func (c *Client) Life(appName string) (life.Value, error)
- func (c *Client) WatchApplication(appName string) (watcher.NotifyWatcher, error)
- func (c *Client) WatchApplications() (watcher.StringsWatcher, error)
- type ClientEmbedded
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client allows access to the CAAS firewaller API endpoint.
func NewClientLegacy ¶
NewClientLegacy returns a client used to access the CAAS unit provisioner API.
func (*Client) ApplicationConfig ¶
func (c *Client) ApplicationConfig(applicationName string) (application.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(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 ClientEmbedded ¶
type ClientEmbedded struct { *Client *charmscommon.CharmsClient }
ClientEmbedded allows access to the CAAS firewaller API endpoint for embedded applications.
func NewClientEmbedded ¶
func NewClientEmbedded(caller base.APICaller) *ClientEmbedded
NewClientEmbedded returns a client used to access the CAAS unit provisioner API.
func (*ClientEmbedded) ApplicationCharmInfo ¶
func (c *ClientEmbedded) ApplicationCharmInfo(appName string) (*charmscommon.CharmInfo, error)
ApplicationCharmInfo finds the CharmInfo for an application.
func (*ClientEmbedded) WatchOpenedPorts ¶
func (c *ClientEmbedded) WatchOpenedPorts() (watcher.StringsWatcher, error)
WatchOpenedPorts returns a StringsWatcher that notifies of changes to the opened ports for the current model.