|
Replace agent.Conf with an interface
This was supposed to be smallish, but turned epic.
I also unexported the Conf structure so construction
now has to be through one of the two New* methods or
the Read method.
A lot of the changes are making the call sites work
with the interface instead of directly poking at the
structure.
Quite a few of the tests in agent were testing for
situations that can no longer occur. Those have
been removed.
https://code.launchpad.net/~thumper/juju-core/agent-conf-interface/+merge/181450
(do not edit description out of merge proposal)
Total comments: 22
Total comments: 14
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+808 lines, -879 lines) |
Patch |
|
A |
[revision details]
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
agent/agent.go
|
View
|
1
|
11 chunks |
+257 lines, -39 lines |
12 comments
|
Download
|
|
M |
agent/agent_test.go
|
View
|
1
|
1 chunk |
+232 lines, -391 lines |
0 comments
|
Download
|
|
M |
cmd/jujud/agent.go
|
View
|
|
5 chunks |
+12 lines, -29 lines |
0 comments
|
Download
|
|
M |
cmd/jujud/agent_test.go
|
View
|
|
4 chunks |
+62 lines, -69 lines |
0 comments
|
Download
|
|
M |
cmd/jujud/bootstrap.go
|
View
|
|
5 chunks |
+9 lines, -10 lines |
0 comments
|
Download
|
|
M |
cmd/jujud/bootstrap_test.go
|
View
|
|
3 chunks |
+20 lines, -48 lines |
0 comments
|
Download
|
|
M |
cmd/jujud/deploy_test.go
|
View
|
|
2 chunks |
+0 lines, -28 lines |
0 comments
|
Download
|
|
M |
cmd/jujud/machine.go
|
View
|
|
7 chunks |
+11 lines, -10 lines |
0 comments
|
Download
|
|
M |
cmd/jujud/machine_test.go
|
View
|
1
|
12 chunks |
+43 lines, -73 lines |
0 comments
|
Download
|
|
M |
cmd/jujud/unit.go
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
cmd/jujud/unit_test.go
|
View
|
|
2 chunks |
+9 lines, -7 lines |
0 comments
|
Download
|
|
M |
environs/bootstrap.go
|
View
|
|
3 chunks |
+1 line, -34 lines |
0 comments
|
Download
|
|
M |
environs/cloudinit/cloudinit.go
|
View
|
1
|
1 chunk |
+35 lines, -26 lines |
0 comments
|
Download
|
|
M |
environs/cloudinit/cloudinit_test.go
|
View
|
1
|
7 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
|
M |
provider/azure/config_test.go
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
provider/azure/customdata_test.go
|
View
|
|
2 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
|
M |
provider/ec2/config_test.go
|
View
|
1
|
3 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
|
M |
provider/ec2/local_test.go
|
View
|
1
|
4 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
provider/local/environ.go
|
View
|
1
|
2 chunks |
+36 lines, -43 lines |
0 comments
|
Download
|
|
M |
provider/maas/config_test.go
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
provider/maas/environ_test.go
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
provider/openstack/config_test.go
|
View
|
|
4 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
|
M |
provider/openstack/local_test.go
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
state/open.go
|
View
|
1
|
5 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
|
M |
state/state.go
|
View
|
1
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
testing/mgo.go
|
View
|
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
worker/deployer/simple.go
|
View
|
|
3 chunks |
+15 lines, -21 lines |
0 comments
|
Download
|
|
M |
worker/deployer/simple_test.go
|
View
|
|
5 chunks |
+6 lines, -16 lines |
2 comments
|
Download
|
Total messages: 6
|