|
Annotations API functionality
Annotations are now exposed through the API via 'GetAnnotations' and
'SetAnnotation'. These allow a user to set an annotation on an Entity (service,
'unit', 'machine', with environment coming in a future branch), and retrieve
all annotations on an entity. Tests were added around the added functionality.
Note that now the service is an Entity, as suggested by Roger.
https://code.launchpad.net/~frankban/juju-core/bug-1147138-annotations-api/+merge/152037
(do not edit description out of merge proposal)
Total comments: 4
Total comments: 22
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+256 lines, -29 lines) |
Patch |
|
A |
[revision details]
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/api/apiclient.go
|
View
|
1
2
3
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/api/params/params.go
|
View
|
1
2
3
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/apiserver/api_test.go
|
View
|
1
2
3
|
5 chunks |
+123 lines, -4 lines |
0 comments
|
Download
|
|
M |
state/apiserver/apiserver.go
|
View
|
1
2
3
|
6 chunks |
+24 lines, -6 lines |
0 comments
|
Download
|
|
M |
state/machine_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
state/service.go
|
View
|
1
2
3
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/service_test.go
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/state.go
|
View
|
1
2
3
|
2 chunks |
+12 lines, -5 lines |
0 comments
|
Download
|
|
M |
state/state_test.go
|
View
|
1
2
3
|
4 chunks |
+17 lines, -11 lines |
0 comments
|
Download
|
|
M |
state/unit_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
state/user.go
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/user_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 7
|