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

Issue 6844087: goose: all current code

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by rog
Modified:
11 years, 5 months ago
Reviewers:
mp+136144, jameinel
Visibility:
Public.

Description

goose: all current code This CL is a way for anyone to comment on the current state of the Goose world. https://code.launchpad.net/~rogpeppe/goose/state-of-the-world/+merge/136144 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 62
Unified diffs Side-by-side diffs Delta from patch set Stats (+2523 lines, -2 lines) Patch
A .bzrignore View 1 chunk +2 lines, -0 lines 0 comments Download
A .lbox View 1 chunk +1 line, -0 lines 0 comments Download
A .lbox.check View 1 chunk +20 lines, -0 lines 0 comments Download
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
A client/client.go View 1 chunk +658 lines, -0 lines 21 comments Download
A client/client_test.go View 1 chunk +428 lines, -0 lines 0 comments Download
A errors/errors.go View 1 chunk +17 lines, -0 lines 1 comment Download
M goose.go View 1 chunk +0 lines, -1 line 0 comments Download
M goose_test.go View 1 chunk +0 lines, -1 line 0 comments Download
A http/client.go View 1 chunk +185 lines, -0 lines 17 comments Download
A identity/identity.go View 1 chunk +50 lines, -0 lines 8 comments Download
A identity/identity_test.go View 1 chunk +67 lines, -0 lines 0 comments Download
A identity/legacy.go View 1 chunk +45 lines, -0 lines 5 comments Download
A identity/legacy_test.go View 1 chunk +37 lines, -0 lines 0 comments Download
A identity/setup_test.go View 1 chunk +10 lines, -0 lines 0 comments Download
A identity/userpass.go View 1 chunk +111 lines, -0 lines 2 comments Download
A identity/userpass_test.go View 1 chunk +25 lines, -0 lines 0 comments Download
A testing/envsuite/envsuite.go View 1 chunk +33 lines, -0 lines 1 comment Download
A testing/envsuite/envsuite_test.go View 1 chunk +48 lines, -0 lines 0 comments Download
A testing/httpsuite/httpsuite.go View 1 chunk +43 lines, -0 lines 0 comments Download
A testing/httpsuite/httpsuite_test.go View 1 chunk +39 lines, -0 lines 0 comments Download
A testservices/identityservice/identityservice.go View 1 chunk +10 lines, -0 lines 0 comments Download
A testservices/identityservice/legacy.go View 1 chunk +44 lines, -0 lines 0 comments Download
A testservices/identityservice/legacy_test.go View 1 chunk +96 lines, -0 lines 0 comments Download
A testservices/identityservice/service_test.go View 1 chunk +23 lines, -0 lines 0 comments Download
A testservices/identityservice/setup_test.go View 1 chunk +10 lines, -0 lines 0 comments Download
A testservices/identityservice/userpass.go View 1 chunk +241 lines, -0 lines 1 comment Download
A testservices/identityservice/userpass_test.go View 1 chunk +150 lines, -0 lines 0 comments Download
A testservices/identityservice/util.go View 1 chunk +31 lines, -0 lines 4 comments Download
A testservices/identityservice/util_test.go View 1 chunk +28 lines, -0 lines 0 comments Download
A testservices/main.go View 1 chunk +69 lines, -0 lines 2 comments Download

Messages

Total messages: 6
jameinel
Just adding a comment so that I get subscribed to any discussions on this MP.
11 years, 5 months ago (2012-11-26 11:18:45 UTC) #1
rog
lots of comments but mostly superficial. i haven't looked at the tests at all yet, ...
11 years, 5 months ago (2012-11-26 12:51:37 UTC) #2
jameinel
https://codereview.appspot.com/6844087/diff/1/identity/identity.go File identity/identity.go (right): https://codereview.appspot.com/6844087/diff/1/identity/identity.go#newcode8 identity/identity.go:8: AUTH_LEGACY = iota On 2012/11/26 12:51:38, rog wrote: > ...
11 years, 5 months ago (2012-11-26 16:30:58 UTC) #3
rog
https://codereview.appspot.com/6844087/diff/1/identity/identity.go File identity/identity.go (right): https://codereview.appspot.com/6844087/diff/1/identity/identity.go#newcode8 identity/identity.go:8: AUTH_LEGACY = iota On 2012/11/26 16:30:58, john.meinel wrote: > ...
11 years, 5 months ago (2012-11-26 18:27:35 UTC) #4
jameinel
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ... >> This one is actually part of the ...
11 years, 5 months ago (2012-11-27 04:26:34 UTC) #5
rog
11 years, 5 months ago (2012-11-27 14:44:36 UTC) #6
On 27 November 2012 04:26, John Arbash Meinel <john.meinel@canonical.com>
wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> ...
>
>
>>> This one is actually part of the public api. Though AuthLegacy
>>> would
>> be ok.
>>
>> yeah, i saw that. although, given that the auth method is an
>> argument to NewOpenStackClient, perhaps it wouldn't be unreasonable
>> to ask clients to pass in an auth method value themselves, rather
>> than a constant that implies one. alternatively, you could make
>> these constants of a type that has a Method() Authenticator
>> method.
>>
>> requiring external clients to enumerate all the possible auth
>> methods when we can easily make the linkage here seems somewhat
>> unnecessary.
>>
>> i'm probably missing something crucial though.
>>
>
> Ultimately the auth that we pick has to come from the
> environments.yaml file. Because it depends heavily on what openstack
> cloud we are connecting to. (HP's auth is different from Rackspace, is
> different from Canonistack, etc.)
>
> So ideally the outside-of-goose level would just be a string request
> of an auth to use, of a specific set of enumerated constants.

if this is the case, then something that maps from string to authenticator
type might seem more appropriate - the intermediate iota-based constants
still seem a little redundant.
Sign in to reply to this message.

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