Descriptionstate/api: Implement provisioner API calls
This adds more API objects and calls, as needed by
the provisioner:
* LifecycleWatcher
* EnvironConfigWatcher
* All client-side watchers were refactored to reduce
code duplication and make adding new ones and also
maintaining them much easier.
* State object at top-level (like Machine, Unit, Client).
* State.AllMachines
* State.WatchMachines - using LifecycleWatcher
* State.WatchEnvironConfig - using EnvironConfigWatcher
* Machine.Series
* Machine.Remove
* Machine.Status
* Machine.SetProvisioned
* Machine.SetMongoPassword
* Machine.Constraints
Calling Machine.EnsureDead now allowed for both owning
agents and the environment manager.
Most restrictive permission checks implemented for
Machine.Constraints, .Status, .SetProvisioned and
.SetMongoPassword (environment manager only allowed).
For some of them we might relax the restriction in
the future, as needed, so the owning agent can also
call them.
https://code.launchpad.net/~dimitern/juju-core/041-provisioner-api-calls/+merge/165566
(do not edit description out of merge proposal)
Patch Set 1 #
MessagesTotal messages: 2
|