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

package caasoperatorprovisioner

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


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 {
    // 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(args params.Entities) (params.OperatorProvisioningInfoResults, 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 Application Uses

type Application interface {
    Charm() (ch Charm, force bool, err error)

type CAASOperatorProvisionerState Uses

type CAASOperatorProvisionerState interface {
    ControllerConfig() (controller.Config, error)
    StateServingInfo() (controller.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
    Application(string) (Application, error)

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

type Charm Uses

type Charm interface {
    Meta() *charm.Meta

type Model Uses

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

Package caasoperatorprovisioner imports 23 packages (graph) and is imported by 6 packages. Updated 2020-09-01. Refresh now. Tools for package owners.