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

Issue 6215045: environs: add NewEnviron(kind, config) (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 12 months ago by dave
Modified:
11 years, 11 months ago
Reviewers:
mp+105769
Visibility:
Public.

Description

environs: add NewEnviron(kind, config) NewEnviron is used to convert the a *ConfigNode (retrieved from state.WatchEnvironment) into a functioning Environ. https://code.launchpad.net/~dave-cheney/juju/go-environ-schema/+merge/105769 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : environs: add NewEnviron(kind, config) #

Total comments: 1

Patch Set 3 : environs: add NewEnviron(kind, config) #

Patch Set 4 : environs: add NewEnviron(kind, config) #

Total comments: 8

Patch Set 5 : environs: add NewEnviron(kind, config) #

Patch Set 6 : environs: add NewEnviron(kind, config) #

Patch Set 7 : environs: add NewEnviron(kind, config) #

Total comments: 7

Patch Set 8 : environs: add NewEnviron(kind, config) #

Patch Set 9 : environs: add NewEnviron(kind, config) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -9 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M environs/config.go View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M environs/interface.go View 1 2 3 4 5 6 7 1 chunk +4 lines, -4 lines 0 comments Download
M environs/open.go View 1 2 3 4 5 6 7 2 chunks +19 lines, -3 lines 0 comments Download
A environs/open_test.go View 1 chunk +28 lines, -0 lines 0 comments Download
M state/util.go View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 16
dave_cheney.net
Please take a look.
11 years, 12 months ago (2012-05-15 07:58:46 UTC) #1
TheMue
Mostly LGTM. Understand your feelings regarding the usage of interface{}. Also have one question about ...
11 years, 12 months ago (2012-05-15 08:06:32 UTC) #2
dave_cheney.net
Please take a look.
11 years, 12 months ago (2012-05-15 08:12:22 UTC) #3
rog
not sure about this. misgivings below. https://codereview.appspot.com/6215045/diff/13/environs/config.go File environs/config.go (left): https://codereview.appspot.com/6215045/diff/13/environs/config.go#oldcode15 environs/config.go:15: config interface{} // ...
11 years, 12 months ago (2012-05-15 08:59:29 UTC) #4
niemeyer
https://codereview.appspot.com/6215045/diff/13/environs/dummy/environs.go File environs/dummy/environs.go (right): https://codereview.appspot.com/6215045/diff/13/environs/dummy/environs.go#newcode122 environs/dummy/environs.go:122: func (e *environProvider) Check(attributes interface{}) (interface{}, error) { I'm ...
11 years, 11 months ago (2012-05-15 21:03:13 UTC) #5
dave_cheney.net
Please take a look. https://codereview.appspot.com/6215045/diff/13/environs/dummy/environs.go File environs/dummy/environs.go (right): https://codereview.appspot.com/6215045/diff/13/environs/dummy/environs.go#newcode122 environs/dummy/environs.go:122: func (e *environProvider) Check(attributes interface{}) ...
11 years, 11 months ago (2012-05-15 23:16:01 UTC) #6
dave_cheney.net
Please take a look.
11 years, 11 months ago (2012-05-15 23:22:16 UTC) #7
rog
On May 15, 2012 10:03 PM, <n13m3y3r@gmail.com> wrote: > > > https://codereview.appspot.com/6215045/diff/13/environs/dummy/environs.go > File environs/dummy/environs.go ...
11 years, 11 months ago (2012-05-16 00:30:32 UTC) #8
gustavo_niemeyer.net
On Tue, May 15, 2012 at 9:30 PM, roger peppe <rogpeppe@gmail.com> wrote: > It's late ...
11 years, 11 months ago (2012-05-16 02:11:54 UTC) #9
rog
On 2012/05/16 02:11:54, gustavo_niemeyer.net wrote: > On Tue, May 15, 2012 at 9:30 PM, roger ...
11 years, 11 months ago (2012-05-16 17:14:11 UTC) #10
niemeyer
<rogpeppe> niemeyer: just replied to https://codereview.appspot.com/6215045/ . it would probably be good to have a ...
11 years, 11 months ago (2012-05-16 17:18:52 UTC) #11
dave_cheney.net
Hello, Is there more to discuss on this proposal? Dave
11 years, 11 months ago (2012-05-17 00:09:49 UTC) #12
niemeyer
This can go in, Dave. What you have here is a nice and clear step ...
11 years, 11 months ago (2012-05-17 01:23:07 UTC) #13
niemeyer
LGTM with the changes described.
11 years, 11 months ago (2012-05-17 01:23:21 UTC) #14
dave_cheney.net
Please take a look. https://codereview.appspot.com/6215045/diff/12001/environs/interface.go File environs/interface.go (right): https://codereview.appspot.com/6215045/diff/12001/environs/interface.go#newcode18 environs/interface.go:18: // schema.Checker.Coerce(). The name is ...
11 years, 11 months ago (2012-05-17 01:46:52 UTC) #15
dave_cheney.net
11 years, 11 months ago (2012-05-17 01:49:45 UTC) #16
*** Submitted:

environs: add NewEnviron(kind, config)

NewEnviron is used to convert the a *ConfigNode (retrieved 
from state.WatchEnvironment) into a functioning Environ.

R=TheMue, rog, niemeyer, gustavo@niemeyer.net
CC=
https://codereview.appspot.com/6215045
Sign in to reply to this message.

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