|
apiserver: Extract common.UnitsWatcher mixin
Both the deployer and the upcoming firewaller
server-side APIs have a WatchUnits() method,
which is now extracted to a common.UnitsWatcher
mixin in apiserver, as a prerequiste to the firewaller
API implementation. The deployer is also changed
to use the new mixin.
https://code.launchpad.net/~dimitern/juju-core/234-apiserver-common-unitswatcher/+merge/202348
Requires: https://code.launchpad.net/~dimitern/juju-core/233-state-SortedPorts-to-instance/+merge/202347
(do not edit description out of merge proposal)
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+345 lines, -163 lines) |
Patch |
 |
A |
[revision details]
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
instance/instance.go
|
View
|
1
|
3 chunks |
+21 lines, -1 line |
0 comments
|
Download
|
 |
M |
instance/instance_test.go
|
View
|
1
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
provider/azure/instance.go
|
View
|
1
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
provider/azure/instance_test.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
provider/dummy/environs.go
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
provider/ec2/ec2.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
provider/openstack/provider.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
state/apiserver/common/environwatcher.go
|
View
|
1
|
4 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/common/environwatcher_test.go
|
View
|
1
|
8 chunks |
+29 lines, -24 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/common/interfaces.go
|
View
|
1
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
A |
state/apiserver/common/unitswatcher.go
|
View
|
|
1 chunk |
+74 lines, -0 lines |
0 comments
|
Download
|
 |
A |
state/apiserver/common/unitswatcher_test.go
|
View
|
|
1 chunk |
+118 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/deployer/deployer.go
|
View
|
1
|
4 chunks |
+27 lines, -62 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/provisioner/provisioner.go
|
View
|
1
|
1 chunk |
+4 lines, -12 lines |
0 comments
|
Download
|
 |
M |
state/interface.go
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/state_test.go
|
View
|
1
|
1 chunk |
+0 lines, -18 lines |
0 comments
|
Download
|
 |
M |
state/unit.go
|
View
|
1
|
3 chunks |
+1 line, -21 lines |
0 comments
|
Download
|
 |
M |
worker/firewaller/firewaller.go
|
View
|
1
|
7 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
worker/firewaller/firewaller_test.go
|
View
|
1
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
Total messages: 3
|