Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // RevisionUpdater is the worker's view of the controller. RevisionUpdater RevisionUpdater // Clock is the worker's view of time. Clock clock.Clock // Period is the time between charm revision updates. Period time.Duration }
Config defines the operation of a charm revision updater worker.
type RevisionUpdater ¶
type RevisionUpdater interface { // UpdateLatestRevisions causes the environment to be scanned, the charm // store to be interrogated, and model representations of updated charms // to be stored in the environment. // // That is sufficiently complex that the logic should be implemented by // the worker, not directly on the apiserver; as this functionality needs // to change/mature, please migrate responsibilities down to the worker // and grow this interface to match. UpdateLatestRevisions() error }
RevisionUpdater exposes the "single" capability required by the worker. As the worker gains more responsibilities, it will likely need more; see storageprovisioner for a helpful model to grow towards.
Click to show internal directories.
Click to hide internal directories.