caasoperatorprovisioner

package
v0.0.0-...-8ff1004 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationPassword

type ApplicationPassword struct {
	Name     string
	Password string
}

ApplicationPassword holds parameters for setting an application password.

type Client

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

Client allows access to the CAAS operator provisioner API endpoint.

func NewClient

func NewClient(caller base.APICaller) *Client

NewClient returns a client used to access the CAAS Operator Provisioner API.

func (*Client) Life

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

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

func (*Client) OperatorProvisioningInfo

func (c *Client) OperatorProvisioningInfo() (OperatorProvisioningInfo, error)

OperatorProvisioningInfo returns the info needed to provision an operator.

func (*Client) SetPasswords

func (c *Client) SetPasswords(appPasswords []ApplicationPassword) (params.ErrorResults, error)

SetPasswords sets API passwords for the specified applications.

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 OperatorProvisioningInfo

type OperatorProvisioningInfo struct {
	ImagePath    string
	Version      version.Number
	APIAddresses []string
	Tags         map[string]string
	CharmStorage storage.KubernetesFilesystemParams
}

OperatorProvisioningInfo holds the info needed to provision an operator.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL