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

Issue 12633043: Add a new command for returning the api endpoints.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by hazmat
Modified:
10 years, 8 months ago
Reviewers:
dimitern, mp+179063, fwereade, jameinel
Visibility:
Public.

Description

Add a new command for returning the api endpoints. Utilities that build on top of juju-core's api need a simple discovery mechanism for the api endpoints available. Currently that involves retrieving the entire tstatus of the environment and then parsing out implicitly the api servers (machine 0). This command (api-endpoints) adds an alternative mechanism that directly returns exactly the information needed without the additional computation or roundtrips needed by status and is forward compatible to HA API servers. https://code.launchpad.net/~hazmat/juju-core/endpoint-cli/+merge/179063 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 19

Patch Set 2 : Add a new command for returning the api endpoints. #

Patch Set 3 : Add a new command for returning the api endpoints. #

Patch Set 4 : Add a new command for returning the api endpoints. #

Patch Set 5 : Add a new command for returning the api endpoints. #

Patch Set 6 : Add a new command for returning the api endpoints. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -0 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A cmd/juju/endpoint.go View 1 2 1 chunk +59 lines, -0 lines 0 comments Download
A cmd/juju/endpoint_test.go View 1 1 chunk +31 lines, -0 lines 0 comments Download
M cmd/juju/main.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M cmd/juju/main_test.go View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10
hazmat
Please take a look.
10 years, 8 months ago (2013-08-07 23:00:45 UTC) #1
dimitern
LGTM with a few suggestions below https://codereview.appspot.com/12633043/diff/1/cmd/juju/endpoint.go File cmd/juju/endpoint.go (right): https://codereview.appspot.com/12633043/diff/1/cmd/juju/endpoint.go#newcode1 cmd/juju/endpoint.go:1: // Copyright 2012, ...
10 years, 8 months ago (2013-08-08 15:30:56 UTC) #2
fwereade
LGTM modulo suggestions below. https://codereview.appspot.com/12633043/diff/1/cmd/juju/endpoint.go File cmd/juju/endpoint.go (right): https://codereview.appspot.com/12633043/diff/1/cmd/juju/endpoint.go#newcode12 cmd/juju/endpoint.go:12: // EndpointCommand returns the api ...
10 years, 8 months ago (2013-08-09 14:23:35 UTC) #3
jameinel
I think you might be missing the long help for "juju help endpoint" and I'd ...
10 years, 8 months ago (2013-08-13 13:35:57 UTC) #4
fwereade
On 2013/08/13 13:35:57, jameinel wrote: > I think you might be missing the long help ...
10 years, 8 months ago (2013-08-13 15:08:02 UTC) #5
hazmat
On 2013/08/13 15:08:02, fwereade wrote: > On 2013/08/13 13:35:57, jameinel wrote: > > I think ...
10 years, 8 months ago (2013-08-15 14:59:36 UTC) #6
hazmat
review comments addressed. https://codereview.appspot.com/12633043/diff/1/cmd/juju/endpoint.go File cmd/juju/endpoint.go (right): https://codereview.appspot.com/12633043/diff/1/cmd/juju/endpoint.go#newcode1 cmd/juju/endpoint.go:1: // Copyright 2012, 2013 Canonical Ltd. ...
10 years, 8 months ago (2013-08-15 15:00:12 UTC) #7
hazmat
Please take a look.
10 years, 8 months ago (2013-08-15 15:03:14 UTC) #8
hazmat
Please take a look.
10 years, 8 months ago (2013-08-15 15:11:17 UTC) #9
hazmat
10 years, 8 months ago (2013-08-15 15:11:38 UTC) #10
On 2013/08/13 13:35:57, jameinel wrote:
> I think you might be missing the long help for "juju help endpoint" and I'd
like
> to see it called at least "juju endpoints" so callers are prepared for when we
> have multiple API servers.
> 

added long form doc documenting the default format of one per line (along with
rename to api-endpoints)
Sign in to reply to this message.

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