Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2002)

Issue 11765043: state/api(server)/deployer: Addresses, CACert (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by dimitern
Modified:
10 years, 9 months ago
Reviewers:
mue, mp+176669, rog
Visibility:
Public.

Description

state/api(server)/deployer: Addresses, CACert Three calls implemented in the Deployer API facades (client- and server-side), needed by the deployer worker: StateAddresses(), APIAddresses(), and CACert(). They match the same methods found in state/open.go, except for StateAddresses(), which corresponds to Addresses(), but was renamed as a suggestion in the review. https://code.launchpad.net/~dimitern/juju-core/079-api-addresses-deployer/+merge/176669 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state/api(server)/deployer: (API)Addresses #

Total comments: 8

Patch Set 3 : state/api(server)/deployer: Addresses, CACert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -0 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M state/api/deployer/deployer.go View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
M state/api/deployer/deployer_test.go View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M state/api/params/internal.go View 1 1 chunk +12 lines, -0 lines 0 comments Download
M state/apiserver/deployer/deployer.go View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
M state/apiserver/deployer/deployer_test.go View 1 2 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 5
dimitern
Please take a look.
10 years, 9 months ago (2013-07-24 12:24:46 UTC) #1
dimitern
Please take a look.
10 years, 9 months ago (2013-07-24 12:51:19 UTC) #2
rog
LGTM with a couple of suggestions below https://codereview.appspot.com/11765043/diff/4001/state/api/deployer/deployer.go File state/api/deployer/deployer.go (right): https://codereview.appspot.com/11765043/diff/4001/state/api/deployer/deployer.go#newcode67 state/api/deployer/deployer.go:67: err := ...
10 years, 9 months ago (2013-07-24 13:00:59 UTC) #3
mue
LGTM, some smaller comments. https://codereview.appspot.com/11765043/diff/4001/state/api/deployer/deployer.go File state/api/deployer/deployer.go (right): https://codereview.appspot.com/11765043/diff/4001/state/api/deployer/deployer.go#newcode67 state/api/deployer/deployer.go:67: err := st.caller.Call("Deployer", "", "Addresses", ...
10 years, 9 months ago (2013-07-24 13:17:59 UTC) #4
dimitern
10 years, 9 months ago (2013-07-24 13:21:31 UTC) #5
Please take a look.

https://codereview.appspot.com/11765043/diff/4001/state/api/deployer/deployer.go
File state/api/deployer/deployer.go (right):

https://codereview.appspot.com/11765043/diff/4001/state/api/deployer/deployer...
state/api/deployer/deployer.go:67: err := st.caller.Call("Deployer", "",
"Addresses", nil, &result)
On 2013/07/24 13:00:59, rog wrote:
> s/Addresses/MongoAddresses/ ?

StateAddresses, as agreed online. This will require changing some interfaces in
the deployer worker in the coming follow-up.

https://codereview.appspot.com/11765043/diff/4001/state/api/deployer/deployer...
state/api/deployer/deployer.go:67: err := st.caller.Call("Deployer", "",
"Addresses", nil, &result)
On 2013/07/24 13:17:59, mue wrote:
> On 2013/07/24 13:00:59, rog wrote:
> > s/Addresses/MongoAddresses/ ?
> 
> Please no technology in the naming, better StateAddresses.

Done.

https://codereview.appspot.com/11765043/diff/4001/state/apiserver/deployer/de...
File state/apiserver/deployer/deployer.go (right):

https://codereview.appspot.com/11765043/diff/4001/state/apiserver/deployer/de...
state/apiserver/deployer/deployer.go:145: func (d *DeployerAPI) Addresses()
(params.StringsResult, error) {
On 2013/07/24 13:17:59, mue wrote:
> StateAddresses?

Done.

https://codereview.appspot.com/11765043/diff/4001/state/apiserver/deployer/de...
state/apiserver/deployer/deployer.go:156: func (d *DeployerAPI) APIAddresses()
(params.StringsResult, error) {
On 2013/07/24 13:00:59, rog wrote:
> just a thought:
> 
> func (d *DeployerAPI) APIAddresses() (result params.String, err error) {
>     result.Result, err = d.st.APIAddresses()
>     return
> }

I prefer the more explicit form, if you don't mind, while keeping the more
descriptive StringsResult type.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b