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

package caasoperatorprovisioner

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


Package Files


type ApplicationPassword Uses

type ApplicationPassword struct {
    Name     string
    Password string

ApplicationPassword holds parameters for setting an application password.

type Client Uses

type Client struct {
    // contains filtered or unexported fields

Client allows access to the CAAS operator provisioner API endpoint.

func NewClient Uses

func NewClient(caller base.APICaller) *Client

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

func (*Client) IssueOperatorCertificate Uses

func (c *Client) IssueOperatorCertificate(applicationName string) (OperatorCertificate, error)

IssueOperatorCertificate issues an x509 certificate for use by the specified application operator.

func (*Client) Life Uses

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 Uses

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

OperatorProvisioningInfo returns the info needed to provision an operator for an application.

func (*Client) SetPasswords Uses

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

SetPasswords sets API passwords for the specified applications.

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.

type OperatorCertificate Uses

type OperatorCertificate struct {
    CACert     string
    Cert       string
    PrivateKey string

OperatorCertificate provides all the information an operator needs to create a TLS listener.

type OperatorProvisioningInfo Uses

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.

Package caasoperatorprovisioner imports 9 packages (graph) and is imported by 5 packages. Updated 2020-04-24. Refresh now. Tools for package owners.