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

Issue 11044043: state: Introducing StringsWatcher interface (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+173771, fwereade
Visibility:
Public.

Description

state: Introducing StringsWatcher interface Replaces LifecycleWatcher, MinUnitsWatcher, UnitsWatcher, and MachineUnitsWatcher (all of these are now unexported and the creation functions return the interface instead). It defines a common patterns for a watcher returning changes as []string. This is a preliminary step towards implementing some of the API needed by the deployer. https://code.launchpad.net/~dimitern/juju-core/065-state-stringswatcher/+merge/173771 (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 (+66 lines, -56 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M state/apiserver/root.go View 1 chunk +1 line, -1 line 0 comments Download
M state/apiserver/watcher.go View 1 chunk +2 lines, -2 lines 2 comments Download
M state/watcher.go View 30 chunks +59 lines, -51 lines 0 comments Download
M worker/firewaller/firewaller.go View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 4
dimitern
Please take a look.
10 years, 9 months ago (2013-07-09 16:34:08 UTC) #1
fwereade
LGTM, but fix the name I flag below. https://codereview.appspot.com/11044043/diff/1/state/apiserver/watcher.go File state/apiserver/watcher.go (left): https://codereview.appspot.com/11044043/diff/1/state/apiserver/watcher.go#oldcode57 state/apiserver/watcher.go:57: type ...
10 years, 9 months ago (2013-07-09 16:36:51 UTC) #2
mue
LGTM
10 years, 9 months ago (2013-07-09 16:39:00 UTC) #3
dimitern
10 years, 9 months ago (2013-07-09 17:23:04 UTC) #4
https://codereview.appspot.com/11044043/diff/1/state/apiserver/watcher.go
File state/apiserver/watcher.go (left):

https://codereview.appspot.com/11044043/diff/1/state/apiserver/watcher.go#old...
state/apiserver/watcher.go:57: type srvLifecycleWatcher struct {
On 2013/07/09 16:36:51, fwereade wrote:
> Would be good to make this a srvStringsWatcher.

As agreed online, I'll do that in a follow-up.
Sign in to reply to this message.

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