Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Manifold ¶
func Manifold(config ManifoldConfig) dependency.Manifold
Manifold creates a manifold that runs a CAAS operator provisioner. See the ManifoldConfig type for discussion about how this can/should evolve.
func NewProvisionerWorker ¶
NewProvisionerWorker starts and returns a new CAAS provisioner worker.
Types ¶
type CAASProvisionerFacade ¶
type CAASProvisionerFacade interface { OperatorProvisioningInfo() (apicaasprovisioner.OperatorProvisioningInfo, error) WatchApplications() (watcher.StringsWatcher, error) SetPasswords([]apicaasprovisioner.ApplicationPassword) (params.ErrorResults, error) Life(string) (life.Value, error) }
CAASProvisionerFacade exposes CAAS provisioning functionality to a worker.
type Config ¶
type Config struct { Facade CAASProvisionerFacade Broker caas.Broker ModelTag names.ModelTag AgentConfig agent.Config }
Config defines the operation of a Worker.
type ManifoldConfig ¶
type ManifoldConfig struct { AgentName string APICallerName string BrokerName string NewWorker func(Config) (worker.Worker, error) }
ManifoldConfig defines a CAAS operator provisioner's dependencies.
func (ManifoldConfig) Validate ¶
func (config ManifoldConfig) Validate() error
Validate is called by start to check for bad configuration.
Click to show internal directories.
Click to hide internal directories.