Merge lp:~thumper/juju-core/common-api-env-watcher into lp:~go-bot/juju-core/trunk
Status: | Merged |
---|---|
Approved by: | Tim Penhey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2243 |
Proposed branch: | lp:~thumper/juju-core/common-api-env-watcher |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
522 lines (+111/-75) 14 files modified
state/api/agent/state.go (+3/-3) state/api/base/caller.go (+1/-1) state/api/charmrevisionupdater/updater.go (+3/-3) state/api/common/environwatcher.go (+56/-0) state/api/common/life.go (+2/-1) state/api/deployer/deployer.go (+3/-2) state/api/firewaller/firewaller.go (+3/-2) state/api/keyupdater/authorisedkeys.go (+3/-3) state/api/logger/logger.go (+3/-3) state/api/machiner/machiner.go (+3/-2) state/api/provisioner/provisioner.go (+18/-43) state/api/uniter/uniter.go (+3/-2) state/api/upgrader/upgrader.go (+3/-3) state/api/watcher/watcher.go (+7/-7) |
To merge this branch: | bzr merge lp:~thumper/juju-core/common-api-env-watcher |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+202766@code.launchpad.net |
Commit message
Refactor client side api to have common behaviour
The apiserver components have a common packge that
enables other end points to share the implementation
of some common facilities.
The api client side should also have this common
behaviour.
This branch starts this with the environ watcher
and getter for the provisioner. This will be used
by the Uniter in the next branch.
In order to reduce import cycles the common.Caller
interface had to be moved. It was either that or to
have the common code in a different package. I
decided that it was better to have the same package
name for the common code on both the client and
server side for the api, so common.Caller becomes
base.Caller.
Description of the change
Refactor client side api to have common behaviour
The apiserver components have a common packge that
enables other end points to share the implementation
of some common facilities.
The api client side should also have this common
behaviour.
This branch starts this with the environ watcher
and getter for the provisioner. This will be used
by the Uniter in the next branch.
In order to reduce import cycles the common.Caller
interface had to be moved. It was either that or to
have the common code in a different package. I
decided that it was better to have the same package
name for the common code on both the client and
server side for the api, so common.Caller becomes
base.Caller.
Reviewers: mp+202766_ code.launchpad. net,
Message:
Please take a look.
Description:
Refactor client side api to have common behaviour
The apiserver components have a common packge that
enables other end points to share the implementation
of some common facilities.
The api client side should also have this common
behaviour.
This branch starts this with the environ watcher
and getter for the provisioner. This will be used
by the Uniter in the next branch.
In order to reduce import cycles the common.Caller
interface had to be moved. It was either that or to
have the common code in a different package. I
decided that it was better to have the same package
name for the common code on both the client and
server side for the api, so common.Caller becomes
base.Caller.
https:/ /code.launchpad .net/~thumper/ juju-core/ common- api-env- watcher/ +merge/ 202766
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/52610045/
Affected files (+104, -75 lines): agent/state. go base/caller. go charmrevisionup dater/updater. go common/ environwatcher. go deployer/ deployer. go keyupdater/ authorisedkeys. go logger/ logger. go machiner/ machiner. go provisioner/ provisioner. go uniter/ uniter. go upgrader/ upgrader. go watcher/ watcher. go
A [revision details]
M state/api/
M state/api/
M state/api/
A state/api/
M state/api/
M state/api/
M state/api/
M state/api/
M state/api/
M state/api/
M state/api/
M state/api/