Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Manifold ¶
func Manifold(config ManifoldConfig) dependency.Manifold
Manifold returns a dependency.Manifold that runs a charm revision worker according to the supplied configuration.
Types ¶
type Facade ¶
type Facade interface { charmrevision.RevisionUpdater }
Facade has all the controller methods used by the charm revision worker.
type ManifoldConfig ¶
type ManifoldConfig struct { // The named dependencies will be exposed to the start func as resources. APICallerName string ClockName string // The remaining dependencies will be used with the resources to configure // and create the worker. The period must be greater than 0; the NewFacade // and NewWorker fields must not be nil. charmrevision.NewWorker, and // NewAPIFacade, are suitable implementations for most clients. Period time.Duration NewFacade func(base.APICaller) (Facade, error) NewWorker func(charmrevision.Config) (worker.Worker, error) }
ManifoldConfig describes how to create a worker that checks for updates available to deployed charms in an environment.
Click to show internal directories.
Click to hide internal directories.