|
state/api: Machiner API facade
Implemented Machiner facade providing API
methods with bulk operations support, but
only the subset of state calls needed by
the machiner worker.
Removed domain objects like Machine and Unit
both server-side and client-side. Instead,
the machiner facade at server-side provides
all the API calls needed by the machiner.
In a follow-up at the client-side there will
be another Machiner facade and lightweight
MachinerMachine wrapper preserving the state.Machine
interface, while using the facade to do the
actual calls.
Thus the machiner facade effectively implements
the state.State object, but for the machiner.
Also removed the Pinger at both sides and some
obsolete state/api/params types.
Added internal server-side tests for the machiner.
https://code.launchpad.net/~dimitern/juju-core/052-api-machiner-facade/+merge/167211
(do not edit description out of merge proposal)
Total comments: 29
Total comments: 22
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+392 lines, -1619 lines) |
Patch |
 |
A |
[revision details]
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/api/apierror.go
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
state/api/client.go
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
D |
state/api/machine.go
|
View
|
|
1 chunk |
+0 lines, -145 lines |
0 comments
|
Download
|
 |
M |
state/api/params/params.go
|
View
|
1
2
3
|
4 chunks |
+51 lines, -46 lines |
0 comments
|
Download
|
 |
M |
state/api/state.go
|
View
|
1
2
3
|
1 chunk |
+10 lines, -50 lines |
0 comments
|
Download
|
 |
D |
state/api/unit.go
|
View
|
|
1 chunk |
+0 lines, -48 lines |
0 comments
|
Download
|
 |
M |
state/api/watcher.go
|
View
|
1
2
|
1 chunk |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/api_test.go
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/apierror.go
|
View
|
1
2
3
|
3 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/errors_test.go
|
View
|
|
1 chunk |
+0 lines, -14 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/export_test.go
|
View
|
1
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/login_test.go
|
View
|
1
2
3
|
3 chunks |
+27 lines, -7 lines |
0 comments
|
Download
|
 |
D |
state/apiserver/machine.go
|
View
|
|
1 chunk |
+0 lines, -132 lines |
0 comments
|
Download
|
 |
D |
state/apiserver/machine_test.go
|
View
|
|
1 chunk |
+0 lines, -499 lines |
0 comments
|
Download
|
 |
A |
state/apiserver/machiner.go
|
View
|
1
2
3
|
1 chunk |
+90 lines, -0 lines |
0 comments
|
Download
|
 |
A |
state/apiserver/machiner_test.go
|
View
|
1
2
3
|
1 chunk |
+151 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/perm_test.go
|
View
|
|
5 chunks |
+1 line, -234 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/root.go
|
View
|
1
2
|
6 chunks |
+27 lines, -53 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/server_test.go
|
View
|
1
2
3
|
2 chunks |
+2 lines, -71 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/state.go
|
View
|
|
2 chunks |
+0 lines, -67 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/state_test.go
|
View
|
|
1 chunk |
+0 lines, -134 lines |
0 comments
|
Download
|
 |
D |
state/apiserver/unit.go
|
View
|
|
1 chunk |
+0 lines, -41 lines |
0 comments
|
Download
|
 |
D |
state/apiserver/unit_test.go
|
View
|
|
1 chunk |
+0 lines, -49 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/utils.go
|
View
|
|
2 chunks |
+0 lines, -14 lines |
0 comments
|
Download
|
Total messages: 7
|