juju: github.com/juju/juju/api/caasunitprovisioner Index | Files

package caasunitprovisioner

import "github.com/juju/juju/api/caasunitprovisioner"

Index

Package Files

client.go

type Client Uses

type Client struct {
    // contains filtered or unexported fields
}

Client allows access to the CAAS unit provisioner API endpoint.

func NewClient Uses

func NewClient(caller base.APICaller) *Client

NewClient returns a client used to access the CAAS unit provisioner API.

func (*Client) ApplicationConfig Uses

func (c *Client) ApplicationConfig(applicationName string) (application.ConfigAttributes, error)

ApplicationConfig returns the config for the specified application.

func (*Client) ApplicationScale Uses

func (c *Client) ApplicationScale(applicationName string) (int, error)

ApplicationScale returns the scale for the specified application.

func (*Client) Life Uses

func (c *Client) Life(entityName string) (life.Value, error)

Life returns the lifecycle state for the specified CAAS application or unit in the current model.

func (*Client) ProvisioningInfo Uses

func (c *Client) ProvisioningInfo(appName string) (*ProvisioningInfo, error)

ProvisioningInfo returns the provisioning info for the specified CAAS application in the current model.

func (*Client) SetOperatorStatus Uses

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) UpdateApplicationService Uses

func (c *Client) UpdateApplicationService(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) UpdateUnits Uses

func (c *Client) UpdateUnits(arg params.UpdateApplicationUnits) error

UpdateUnits updates the state model to reflect the state of the units as reported by the cloud.

func (*Client) WatchApplicationScale Uses

func (c *Client) WatchApplicationScale(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) WatchApplications Uses

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.

func (*Client) WatchPodSpec Uses

func (c *Client) WatchPodSpec(application string) (watcher.NotifyWatcher, error)

WatchPodSpec returns a NotifyWatcher that notifies of changes to the pod spec of the specified CAAS application in the current model.

type DeploymentInfo Uses

type DeploymentInfo struct {
    DeploymentType string
    ServiceType    string
}

DeploymentInfo holds deployment info from charm metadata.

type ProvisioningInfo Uses

type ProvisioningInfo struct {
    DeploymentInfo DeploymentInfo
    PodSpec        string
    Constraints    constraints.Value
    Filesystems    []storage.KubernetesFilesystemParams
    Devices        []devices.KubernetesDeviceParams
    Tags           map[string]string
}

ProvisioningInfo holds unit provisioning info.

Package caasunitprovisioner imports 12 packages (graph) and is imported by 6 packages. Updated 2019-08-25. Refresh now. Tools for package owners.