Documentation ¶
Index ¶
- type Client
- func (c *Client) ApplicationCharmURL(appName string) (*charm.URL, error)
- func (c *Client) ApplicationOCIResources(appName string) (map[string]resources.DockerImageDetails, error)
- func (c *Client) GarbageCollect(appName string, observedUnits []names.Tag, desiredReplicas int, ...) error
- func (c *Client) Life(appName string) (life.Value, error)
- func (c *Client) ProvisioningInfo(applicationName string) (ProvisioningInfo, error)
- func (c *Client) SetOperatorStatus(appName string, status status.Status, message string, ...) error
- func (c *Client) SetPassword(appName string, password string) error
- func (c *Client) Units(appName string) ([]names.Tag, error)
- func (c *Client) UpdateUnits(arg params.UpdateApplicationUnits) (*params.UpdateApplicationUnitsInfo, error)
- func (c *Client) WatchApplication(appName string) (watcher.NotifyWatcher, error)
- func (c *Client) WatchApplications() (watcher.StringsWatcher, error)
- type ProvisioningInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *charmscommon.CharmsClient // contains filtered or unexported fields }
Client allows access to the CAAS application provisioner API endpoint.
func (*Client) ApplicationCharmURL ¶
ApplicationCharmURL finds the CharmURL for an application.
func (*Client) ApplicationOCIResources ¶
func (c *Client) ApplicationOCIResources(appName string) (map[string]resources.DockerImageDetails, error)
ApplicationOCIResources returns all the OCI image resources for an application.
func (*Client) GarbageCollect ¶
func (c *Client) GarbageCollect( appName string, observedUnits []names.Tag, desiredReplicas int, activePodNames []string, force bool) error
GarbageCollect cleans up units that have gone away permanently. Only observed units will be deleted as new units could have surfaced between the capturing of kubernetes pod state/application state and this call.
func (*Client) Life ¶
Life returns the lifecycle state for the specified CAAS application or unit in the current model.
func (*Client) ProvisioningInfo ¶
func (c *Client) ProvisioningInfo(applicationName string) (ProvisioningInfo, error)
ProvisioningInfo returns the info needed to provision an operator for an application.
func (*Client) SetOperatorStatus ¶
func (c *Client) SetOperatorStatus(appName string, status status.Status, message string, data map[string]interface{}) error
SetOperatorStatus updates the provisioning status of an operator.
func (*Client) SetPassword ¶
SetPassword sets API password for the specified application.
func (*Client) UpdateUnits ¶
func (c *Client) UpdateUnits(arg params.UpdateApplicationUnits) (*params.UpdateApplicationUnitsInfo, error)
UpdateUnits updates the state model to reflect the state of the units as reported by the cloud.
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 ProvisioningInfo ¶
type ProvisioningInfo struct { ImagePath string Version version.Number APIAddresses []string CACert string Tags map[string]string Constraints constraints.Value Filesystems []storage.KubernetesFilesystemParams Devices []devices.KubernetesDeviceParams Series string ImageRepo string CharmModifiedVersion int CharmURL *charm.URL }
ProvisioningInfo holds the info needed to provision an operator.