OLD | NEW |
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 "launchpad.net/juju-core/tools" | 7 "launchpad.net/juju-core/tools" |
| 8 "launchpad.net/juju-core/version" |
8 ) | 9 ) |
9 | 10 |
10 // Entity identifies a single entity. | 11 // Entity identifies a single entity. |
11 type Entity struct { | 12 type Entity struct { |
12 Tag string | 13 Tag string |
13 } | 14 } |
14 | 15 |
15 // Entities identifies multiple entities. | 16 // Entities identifies multiple entities. |
16 type Entities struct { | 17 type Entities struct { |
17 Entities []Entity | 18 Entities []Entity |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 } | 255 } |
255 | 256 |
256 // AgentGetEntitiesResult holds the results of a | 257 // AgentGetEntitiesResult holds the results of a |
257 // machineagent.API.GetEntities call for a single entity. | 258 // machineagent.API.GetEntities call for a single entity. |
258 type AgentGetEntitiesResult struct { | 259 type AgentGetEntitiesResult struct { |
259 Life Life | 260 Life Life |
260 Jobs []MachineJob | 261 Jobs []MachineJob |
261 Error *Error | 262 Error *Error |
262 } | 263 } |
263 | 264 |
| 265 // AgentVersionResult holds the version and possibly error for a given |
| 266 // DesiredVersion request |
| 267 type AgentVersionResult struct { |
| 268 Version *version.Number |
| 269 Error *Error |
| 270 } |
| 271 |
| 272 // AgentVersionResults is a list of versions for the requested entities |
| 273 type AgentVersionResults struct { |
| 274 Results []AgentVersionResult |
| 275 } |
| 276 |
264 // AgentToolsResult holds the tools and possibly error for a given AgentTools re
quest | 277 // AgentToolsResult holds the tools and possibly error for a given AgentTools re
quest |
265 type AgentToolsResult struct { | 278 type AgentToolsResult struct { |
266 Tools *tools.Tools | 279 Tools *tools.Tools |
267 Error *Error | 280 Error *Error |
268 } | 281 } |
269 | 282 |
270 // AgentToolsResults is a list of tools for various requested agents. | 283 // AgentToolsResults is a list of tools for various requested agents. |
271 type AgentToolsResults struct { | 284 type AgentToolsResults struct { |
272 Results []AgentToolsResult | 285 Results []AgentToolsResult |
273 } | 286 } |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 StringsWatcherId string | 328 StringsWatcherId string |
316 Changes []string | 329 Changes []string |
317 Error *Error | 330 Error *Error |
318 } | 331 } |
319 | 332 |
320 // StringsWatchResults holds the results for any API call which ends up | 333 // StringsWatchResults holds the results for any API call which ends up |
321 // returning a list of StringsWatchers. | 334 // returning a list of StringsWatchers. |
322 type StringsWatchResults struct { | 335 type StringsWatchResults struct { |
323 Results []StringsWatchResult | 336 Results []StringsWatchResult |
324 } | 337 } |
OLD | NEW |