LEFT | RIGHT |
1 // Copyright 2013 Canonical Ltd. | 1 // Copyright 2013 Canonical Ltd. |
2 // Licensed under the AGPLv3, see LICENCE file for details. | 2 // Licensed under the AGPLv3, see LICENCE file for details. |
3 | 3 |
4 package params | 4 package params |
5 | 5 |
6 import ( | 6 import ( |
7 "bytes" | 7 "bytes" |
8 "encoding/json" | 8 "encoding/json" |
9 "fmt" | 9 "fmt" |
10 "launchpad.net/juju-core/charm" | 10 "launchpad.net/juju-core/charm" |
(...skipping 22 matching lines...) Expand all Loading... |
33 // Unit.SetStatus. | 33 // Unit.SetStatus. |
34 type SetStatus struct { | 34 type SetStatus struct { |
35 Status Status | 35 Status Status |
36 Info string | 36 Info string |
37 } | 37 } |
38 | 38 |
39 // StatusResults holds the results for Machine.Status and Unit.Status. | 39 // StatusResults holds the results for Machine.Status and Unit.Status. |
40 type StatusResults struct { | 40 type StatusResults struct { |
41 Status Status | 41 Status Status |
42 Info string | 42 Info string |
43 } | |
44 | |
45 // SetMongoPassword holds the parameters for Machine.SetMongoPassword. | |
46 type SetMongoPassword struct { | |
47 Password string | |
48 } | 43 } |
49 | 44 |
50 // SetProvisioned holds the parameters for Machine.SetProvisioned. | 45 // SetProvisioned holds the parameters for Machine.SetProvisioned. |
51 type SetProvisioned struct { | 46 type SetProvisioned struct { |
52 InstanceId string | 47 InstanceId string |
53 Nonce string | 48 Nonce string |
54 } | 49 } |
55 | 50 |
56 // ConstraintsResults holds the results for Machine.Constraints and | 51 // ConstraintsResults holds the results for Machine.Constraints and |
57 // Service.Constraints. | 52 // Service.Constraints. |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 Tag string | 455 Tag string |
461 Annotations map[string]string | 456 Annotations map[string]string |
462 } | 457 } |
463 | 458 |
464 func (i *AnnotationInfo) EntityId() EntityId { | 459 func (i *AnnotationInfo) EntityId() EntityId { |
465 return EntityId{ | 460 return EntityId{ |
466 Kind: "annotation", | 461 Kind: "annotation", |
467 Id: i.Tag, | 462 Id: i.Tag, |
468 } | 463 } |
469 } | 464 } |
LEFT | RIGHT |