Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { *common.PasswordChanger *common.LifeGetter *common.APIAddresser // contains filtered or unexported fields }
func NewCAASOperatorProvisionerAPI ¶
func NewCAASOperatorProvisionerAPI( resources facade.Resources, authorizer facade.Authorizer, st CAASOperatorProvisionerState, storageProviderRegistry storage.ProviderRegistry, storagePoolManager poolmanager.PoolManager, ) (*API, error)
NewCAASOperatorProvisionerAPI returns a new CAAS operator provisioner API facade.
func NewStateCAASOperatorProvisionerAPI ¶
NewStateCAASOperatorProvisionerAPI provides the signature required for facade registration.
func (*API) OperatorProvisioningInfo ¶
func (a *API) OperatorProvisioningInfo() (params.OperatorProvisioningInfo, error)
OperatorProvisioningInfo returns the info needed to provision an operator.
func (*API) WatchApplications ¶
func (a *API) WatchApplications() (params.StringsWatchResult, error)
WatchApplications starts a StringsWatcher to watch CAAS applications deployed to this model.
type CAASOperatorProvisionerState ¶
type CAASOperatorProvisionerState interface { ControllerConfig() (controller.Config, error) WatchApplications() state.StringsWatcher FindEntity(tag names.Tag) (state.Entity, error) Addresses() ([]string, error) ModelUUID() string Model() (Model, error) APIHostPortsForAgents() ([][]network.HostPort, error) WatchAPIHostPortsForAgents() state.NotifyWatcher }
CAASOperatorProvisionerState provides the subset of global state required by the CAAS operator provisioner facade.
Click to show internal directories.
Click to hide internal directories.