Merge lp://staging/~dimitern/juju-core/043-api-client-new-watchers into lp://staging/~juju/juju-core/trunk
Proposed by
Dimiter Naydenov
Status: | Merged |
---|---|
Merged at revision: | 1237 |
Proposed branch: | lp://staging/~dimitern/juju-core/043-api-client-new-watchers |
Merge into: | lp://staging/~juju/juju-core/trunk |
Diff against target: |
641 lines (+460/-23) 4 files modified
state/api/apiclient.go (+144/-0) state/api/params/params.go (+21/-0) state/apiserver/api_test.go (+150/-19) state/apiserver/apiserver.go (+145/-4) |
To merge this branch: | bzr merge lp://staging/~dimitern/juju-core/043-api-client-new-watchers |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+165603@code.staging.launchpad.net |
Description of the change
state/api: New client API watchers; api.State
Implemented two API client-side watchers:
* LifecycleWatcher
* EnvironConfigWa
Also introducing a top-level api.State object to
provide API access to state.* calls. It's only
accessible by agents.
Implemented methods:
* State.WatchMachines (using LifecycleWatcher)
* State.WatchEnvi
These two can be called only by the environment manager
(for now, if we need we'll relax this restriction later).
Also, Machine.EnsureDead now can be called both by the
owning agent and the environment manager.
To post a comment you must log in.
Reviewers: mp+165603_ code.launchpad. net,
Message:
Please take a look.
Description:
state/api: New client API watchers; api.State
Implemented two API client-side watchers: tcher
* LifecycleWatcher
* EnvironConfigWa
Also introducing a top-level api.State object to ronConfig (using EnvironConfigWa tcher)
provide API access to state.* calls. It's only
accessible by agents.
Implemented methods:
* State.WatchMachines (using LifecycleWatcher)
* State.WatchEnvi
https:/ /code.launchpad .net/~dimitern/ juju-core/ 043-api- client- new-watchers/ +merge/ 165603
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/9714044/
Affected files: apiclient. go params/ params. go /api_test. go /apiserver. go
A [revision details]
M state/api/
M state/api/
M state/apiserver
M state/apiserver