|
Refactor charm/hooks,worker/uniter/hook
As discussed, this splits worker/uniter/hook
module into uniter-related stuff (Info and
validation) and generic charm hooks stuff
(defined hooks kinds). Adds UnitHooks
and RelationHooks func, which return
their respective Kinds as slices. Changed
uniter code to match the code split. Added
a Meta method Hooks() to return map[string]bool
of all (possible) hooks according to the metadata.
This is needed for a follow-up CL to fix
bug #864164.
https://code.launchpad.net/~dimitern/juju-core/refactor-charm-hooks/+merge/148512
(do not edit description out of merge proposal)
Total comments: 15
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+307 lines, -202 lines) |
Patch |
 |
A |
[revision details]
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
charm/hooks/hooks.go
|
View
|
1
2
3
|
1 chunk |
+67 lines, -0 lines |
0 comments
|
Download
|
 |
M |
charm/meta.go
|
View
|
1
2
|
2 chunks |
+29 lines, -0 lines |
0 comments
|
Download
|
 |
M |
charm/meta_test.go
|
View
|
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/hook/hook.go
|
View
|
1
|
2 chunks |
+7 lines, -40 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/hook/hook_test.go
|
View
|
1
|
2 chunks |
+14 lines, -13 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/modes.go
|
View
|
1
|
7 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/relation/hookqueue.go
|
View
|
1
|
13 chunks |
+19 lines, -18 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/relation/hookqueue_test.go
|
View
|
1
|
9 chunks |
+40 lines, -39 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/relation/relation.go
|
View
|
1
|
4 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/relation/relation_test.go
|
View
|
1
|
2 chunks |
+47 lines, -46 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/relationer.go
|
View
|
1
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/relationer_test.go
|
View
|
1
|
9 chunks |
+14 lines, -13 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/state.go
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/state_test.go
|
View
|
1
|
6 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/uniter.go
|
View
|
1
|
4 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
Total messages: 10
|