Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CharmStorageParams ¶
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.
Types ¶
type API ¶
type API struct { *common.PasswordChanger *common.LifeGetter *common.APIAddresser // contains filtered or unexported fields }
API is CAAS operator provisioner API facade.
func NewCAASOperatorProvisionerAPI ¶
func NewCAASOperatorProvisionerAPI( resources facade.Resources, authorizer facade.Authorizer, ctrlSt CAASControllerState, st CAASOperatorProvisionerState, storagePoolManager poolmanager.PoolManager, registry storage.ProviderRegistry, ) (*API, error)
NewCAASOperatorProvisionerAPI returns a new CAAS operator provisioner API facade.
func (*API) IssueOperatorCertificate ¶
func (a *API) IssueOperatorCertificate(args params.Entities) (params.IssueOperatorCertificateResults, error)
IssueOperatorCertificate issues an x509 certificate for use by the specified application operator.
func (*API) ModelUUID ¶
func (a *API) ModelUUID() params.StringResult
ModelUUID returns the model UUID that this facade is used to operate. It is implemented here directly as a result of removing it from embedded APIAddresser *without* bumping the facade version. It should be blanked when this facade version is next incremented.
func (*API) OperatorProvisioningInfo ¶
func (a *API) OperatorProvisioningInfo(args params.Entities) (params.OperatorProvisioningInfoResults, error)
OperatorProvisioningInfo returns the info needed to provision an operator.
type APIGroup ¶
type APIGroup struct { *common.ApplicationWatcherFacade *API }
type Application ¶
type CAASControllerState ¶
type CAASControllerState interface { common.APIAddressAccessor ControllerConfig() (controller.Config, error) StateServingInfo() (controller.StateServingInfo, error) }
CAASControllerState provides the subset of controller state required by the CAAS operator provisioner facade.
type CAASOperatorProvisionerState ¶
type CAASOperatorProvisionerState interface { WatchApplications() state.StringsWatcher FindEntity(tag names.Tag) (state.Entity, error) Model() (Model, error) Application(string) (Application, error) }
CAASOperatorProvisionerState provides the subset of model state required by the CAAS operator provisioner facade.