|
New charm revision updater api
Add an api which provides functionality to query the
charm store and record in state the latest revision
for the charms. The charms queried are those which
are currently deployed. A charm record is created
and is marked as a placeholder. This makes the charm
invisible to state.Charm() queries. If the charm
is subsequently deployed and thus state.AddCharm()
is called, the placeholder record is updated accordngly.
The next step is to add a worker which
will periodically call this api.
https://code.launchpad.net/~wallyworld/juju-core/charm-version-updater/+merge/200758
Requires: https://code.launchpad.net/~wallyworld/juju-core/refactor-charm-repo/+merge/200753
(do not edit description out of merge proposal)
Total comments: 15
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+811 lines, -33 lines) |
Patch |
 |
A |
[revision details]
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
state/api/charmrevisionupdater/package_test.go
|
View
|
1
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
A |
state/api/charmrevisionupdater/updater.go
|
View
|
1
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
A |
state/api/charmrevisionupdater/updater_test.go
|
View
|
1
2
|
1 chunk |
+51 lines, -0 lines |
2 comments
|
Download
|
 |
M |
state/api/state.go
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
A |
state/apiserver/charmrevisionupdater/package_test.go
|
View
|
1
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
A |
state/apiserver/charmrevisionupdater/testing/suite.go
|
View
|
1
|
1 chunk |
+139 lines, -0 lines |
0 comments
|
Download
|
 |
A |
state/apiserver/charmrevisionupdater/updater.go
|
View
|
1
2
|
1 chunk |
+114 lines, -0 lines |
2 comments
|
Download
|
 |
A |
state/apiserver/charmrevisionupdater/updater_test.go
|
View
|
1
2
|
1 chunk |
+106 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/root.go
|
View
|
1
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/charm.go
|
View
|
1
2
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/state.go
|
View
|
1
2
|
4 chunks |
+140 lines, -17 lines |
0 comments
|
Download
|
 |
M |
state/state_test.go
|
View
|
1
2
|
4 chunks |
+174 lines, -16 lines |
0 comments
|
Download
|
Total messages: 8
|