Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) ApplicationScale(ctx context.Context, applicationName string) (int, error)
- func (c *Client) ApplicationTrust(ctx context.Context, applicationName string) (bool, error)
- func (c *Client) UpdateApplicationService(ctx context.Context, arg params.UpdateApplicationServiceArg) error
- func (c *Client) WatchApplication(ctx context.Context, appName string) (watcher.NotifyWatcher, error)
- func (c *Client) WatchApplicationScale(ctx context.Context, application string) (watcher.NotifyWatcher, error)
- func (c *Client) WatchApplicationTrustHash(ctx context.Context, application string) (watcher.StringsWatcher, 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 {
// contains filtered or unexported fields
}
Client allows access to the CAAS unit provisioner API endpoint.
func (*Client) ApplicationScale ¶
ApplicationScale returns the scale for the specified application.
func (*Client) ApplicationTrust ¶
ApplicationTrust returns the trust value for the specified application.
func (*Client) UpdateApplicationService ¶
func (c *Client) UpdateApplicationService(ctx context.Context, arg params.UpdateApplicationServiceArg) error
UpdateApplicationService updates the state model to reflect the state of the application's service as reported by the cloud.
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) WatchApplicationScale ¶
func (c *Client) WatchApplicationScale(ctx context.Context, application string) (watcher.NotifyWatcher, error)
WatchApplicationScale returns a NotifyWatcher that notifies of changes to the lifecycles of units of the specified CAAS application in the current model.
func (*Client) WatchApplicationTrustHash ¶
func (c *Client) WatchApplicationTrustHash(ctx context.Context, application string) (watcher.StringsWatcher, error)
WatchApplicationTrustHash returns a StringsWatcher that notifies of changes to the application's trust hash.
func (*Client) WatchApplications ¶
WatchApplications returns a StringsWatcher that notifies of changes to the lifecycles of CAAS applications in the current model.