Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1305)

Side by Side Diff: state/api/params/internal.go

Issue 67750045: Implement the get charm file API.
Patch Set: Created 10 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
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 "time" 7 "time"
8 8
9 "launchpad.net/juju-core/constraints" 9 "launchpad.net/juju-core/constraints"
10 "launchpad.net/juju-core/instance" 10 "launchpad.net/juju-core/instance"
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 Changes RelationUnitsChange 499 Changes RelationUnitsChange
500 Error *Error 500 Error *Error
501 } 501 }
502 502
503 // RelationUnitsWatchResults holds the results for any API call which ends up 503 // RelationUnitsWatchResults holds the results for any API call which ends up
504 // returning a list of RelationUnitsWatchers. 504 // returning a list of RelationUnitsWatchers.
505 type RelationUnitsWatchResults struct { 505 type RelationUnitsWatchResults struct {
506 Results []RelationUnitsWatchResult 506 Results []RelationUnitsWatchResult
507 } 507 }
508 508
509 // CharmsResponse is the server response to a charm upload request. 509 // CharmsResponse is the server response to charm upload or get requests.
dimitern 2014/02/25 10:07:09 s/get/GET/
frankban 2014/02/25 17:03:53 Done.
510 type CharmsResponse struct { 510 type CharmsResponse struct {
511 » Error string `json:",omitempty"` 511 » Error string `json:",omitempty"`
512 » CharmURL string `json:",omitempty"` 512 » CharmURL string `json:",omitempty"`
513 » Files []string `json:",omitempty"`
513 } 514 }
514 515
515 // RunParams is used to provide the parameters to the Run method. 516 // RunParams is used to provide the parameters to the Run method.
516 // Commands and Timeout are expected to have values, and one or more 517 // Commands and Timeout are expected to have values, and one or more
517 // values should be in the Machines, Services, or Units slices. 518 // values should be in the Machines, Services, or Units slices.
518 type RunParams struct { 519 type RunParams struct {
519 Commands string 520 Commands string
520 Timeout time.Duration 521 Timeout time.Duration
521 Machines []string 522 Machines []string
522 Services []string 523 Services []string
523 Units []string 524 Units []string
524 } 525 }
525 526
526 // RunResult contains the result from an individual run call on a machine. 527 // RunResult contains the result from an individual run call on a machine.
527 // UnitId is populated if the command was run inside the unit context. 528 // UnitId is populated if the command was run inside the unit context.
528 type RunResult struct { 529 type RunResult struct {
529 exec.ExecResponse 530 exec.ExecResponse
530 MachineId string 531 MachineId string
531 UnitId string 532 UnitId string
532 Error string 533 Error string
533 } 534 }
534 535
535 // RunResults is used to return the slice of results. Api server side calls 536 // RunResults is used to return the slice of results. Api server side calls
536 // need to return single structure values. 537 // need to return single structure values.
537 type RunResults struct { 538 type RunResults struct {
538 Results []RunResult 539 Results []RunResult
539 } 540 }
OLDNEW
« no previous file with comments | « [revision details] ('k') | state/apiserver/apiserver.go » ('j') | state/apiserver/charms.go » ('J')

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b