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

Issue 54650043: apiserver: Extract common.InstanceIdGetter mixin (Closed)

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

Description

apiserver: Extract common.InstanceIdGetter mixin Use by both the provisioner and the upcoming firewaller server-side APIs, the InstanceId() method is extracted to a common apiserver mixin. https://code.launchpad.net/~dimitern/juju-core/236-apiserver-common-instanceidgetter/+merge/202352 Requires: https://code.launchpad.net/~dimitern/juju-core/235-apiserver-common-environmachineswatcher/+merge/202350 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -28 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
A state/apiserver/common/instanceidgetter.go View 1 chunk +63 lines, -0 lines 0 comments Download
A state/apiserver/common/instanceidgetter_test.go View 1 chunk +79 lines, -0 lines 0 comments Download
M state/apiserver/provisioner/provisioner.go View 3 chunks +6 lines, -28 lines 0 comments Download
M state/interface.go View 2 chunks +8 lines, -0 lines 2 comments Download

Messages

Total messages: 3
dimitern
Please take a look.
10 years, 3 months ago (2014-01-20 17:51:20 UTC) #1
rog
LGTM with one suggestion. https://codereview.appspot.com/54650043/diff/1/state/interface.go File state/interface.go (right): https://codereview.appspot.com/54650043/diff/1/state/interface.go#newcode183 state/interface.go:183: type InstanceIdGetter interface { As ...
10 years, 3 months ago (2014-01-21 14:45:54 UTC) #2
dimitern
10 years, 3 months ago (2014-01-21 17:38:36 UTC) #3
https://codereview.appspot.com/54650043/diff/1/state/interface.go
File state/interface.go (right):

https://codereview.appspot.com/54650043/diff/1/state/interface.go#newcode183
state/interface.go:183: type InstanceIdGetter interface {
On 2014/01/21 14:45:54, rog wrote:
> As with my comments on a previous code review, I don't believe we need to
define
> all possible interfaces that might be used elsewhere here.

See my reply on the prereq. I think having them all here is important (due to
them defining parts of state objects interfaces).
Sign in to reply to this message.

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