|
apiserver: Deployer facade; refactoring
This introduces the server-side Deployer API facade.
In addition to being composed by LifeGetter, Remover,
and PasswordChanger, it has WatchUnits method.
Also extracted the common ErrUnauthorized case into
its own common testing package and refactored other
facades to use it. Removed assertError and replaced
it with DeepEquals, because I think it stands out more
and reads better.
https://code.launchpad.net/~dimitern/juju-core/069-apiserver-deployer-initial/+merge/174144
(do not edit description out of merge proposal)
Total comments: 38
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+566 lines, -99 lines) |
Patch |
|
A |
[revision details]
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/api/params/internal.go
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/apiserver/common/interfaces.go
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/apiserver/common/life_test.go
|
View
|
1
2
|
2 chunks |
+4 lines, -9 lines |
0 comments
|
Download
|
|
M |
state/apiserver/common/password_test.go
|
View
|
1
|
2 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
|
M |
state/apiserver/common/remove.go
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/apiserver/common/remove_test.go
|
View
|
1
2
|
5 chunks |
+20 lines, -16 lines |
0 comments
|
Download
|
|
A |
state/apiserver/deployer/deployer.go
|
View
|
1
|
1 chunk |
+105 lines, -0 lines |
0 comments
|
Download
|
|
A |
state/apiserver/deployer/deployer_test.go
|
View
|
1
2
|
1 chunk |
+303 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/apiserver/machine/agent_test.go
|
View
|
1
|
3 chunks |
+15 lines, -19 lines |
0 comments
|
Download
|
|
M |
state/apiserver/machine/common_test.go
|
View
|
1
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
state/apiserver/machine/machiner_test.go
|
View
|
1
|
7 chunks |
+32 lines, -25 lines |
0 comments
|
Download
|
|
M |
state/apiserver/root.go
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
A |
state/apiserver/testing/errors.go
|
View
|
1
2
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/apiserver/testing/fakeauthorizer.go
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/apiserver/upgrader/upgrader.go
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
state/apiserver/upgrader/upgrader_test.go
|
View
|
1
|
6 chunks |
+6 lines, -12 lines |
0 comments
|
Download
|
|
M |
state/state.go
|
View
|
1
2
|
3 chunks |
+16 lines, -4 lines |
0 comments
|
Download
|
|
M |
state/unit.go
|
View
|
|
1 chunk |
+12 lines, -1 line |
0 comments
|
Download
|
Total messages: 10
|