juju: github.com/juju/juju/apiserver/facades/controller/caasoperatorprovisioner Index | Files

package caasoperatorprovisioner

import "github.com/juju/juju/apiserver/facades/controller/caasoperatorprovisioner"

Index

Package Files

provisioner.go state.go

func CharmStorageParams Uses

func CharmStorageParams(
    controllerUUID string,
    storageClassName string,
    modelCfg *config.Config,
    poolName string,
    poolManager poolmanager.PoolManager,
    registry storage.ProviderRegistry,
) (params.KubernetesFilesystemParams, error)

CharmStorageParams returns filesystem parameters needed to provision storage used for a charm operator or workload.

type API Uses

type API struct {
    *common.PasswordChanger
    *common.LifeGetter
    *common.APIAddresser
    // contains filtered or unexported fields
}

func NewCAASOperatorProvisionerAPI Uses

func NewCAASOperatorProvisionerAPI(
    resources facade.Resources,
    authorizer facade.Authorizer,
    st CAASOperatorProvisionerState,
    storagePoolManager poolmanager.PoolManager,
    registry storage.ProviderRegistry,
) (*API, error)

NewCAASOperatorProvisionerAPI returns a new CAAS operator provisioner API facade.

func NewStateCAASOperatorProvisionerAPI Uses

func NewStateCAASOperatorProvisionerAPI(ctx facade.Context) (*API, error)

NewStateCAASOperatorProvisionerAPI provides the signature required for facade registration.

func (*API) IssueOperatorCertificate Uses

func (a *API) IssueOperatorCertificate(args params.Entities) (params.IssueOperatorCertificateResults, error)

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

func (*API) OperatorProvisioningInfo Uses

func (a *API) OperatorProvisioningInfo() (params.OperatorProvisioningInfo, error)

OperatorProvisioningInfo returns the info needed to provision an operator.

func (*API) WatchApplications Uses

func (a *API) WatchApplications() (params.StringsWatchResult, error)

WatchApplications starts a StringsWatcher to watch CAAS applications deployed to this model.

type CAASOperatorProvisionerState Uses

type CAASOperatorProvisionerState interface {
    network.SpaceLookup

    ControllerConfig() (controller.Config, error)
    StateServingInfo() (state.StateServingInfo, error)
    WatchApplications() state.StringsWatcher
    FindEntity(tag names.Tag) (state.Entity, error)
    Addresses() ([]string, error)
    ModelUUID() string
    Model() (Model, error)
    APIHostPortsForAgents() ([]network.SpaceHostPorts, error)
    WatchAPIHostPortsForAgents() state.NotifyWatcher
}

CAASOperatorProvisionerState provides the subset of global state required by the CAAS operator provisioner facade.

type Model Uses

type Model interface {
    UUID() string
    ModelConfig() (*config.Config, error)
}

Package caasoperatorprovisioner imports 19 packages (graph) and is imported by 5 packages. Updated 2019-10-21. Refresh now. Tools for package owners.