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

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

Issue 78890043: state/api: implement APIHostPorts methods
Patch Set: state/api: implement APIHostPorts methods Created 11 years 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
« no previous file with comments | « state/api/machiner/machiner_test.go ('k') | state/api/provisioner/provisioner.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // ConfigSettingsResults holds multiple configuration maps or errors. 175 // ConfigSettingsResults holds multiple configuration maps or errors.
176 type ConfigSettingsResults struct { 176 type ConfigSettingsResults struct {
177 Results []ConfigSettingsResult 177 Results []ConfigSettingsResult
178 } 178 }
179 179
180 // EnvironConfig holds an environment configuration. 180 // EnvironConfig holds an environment configuration.
181 type EnvironConfig map[string]interface{} 181 type EnvironConfig map[string]interface{}
182 182
183 // EnvironConfigResult holds environment configuration or an error. 183 // EnvironConfigResult holds environment configuration or an error.
184 type EnvironConfigResult struct { 184 type EnvironConfigResult struct {
185 Error *Error
186 Config EnvironConfig 185 Config EnvironConfig
187 } 186 }
188 187
189 // RelationUnit holds a relation and a unit tag. 188 // RelationUnit holds a relation and a unit tag.
190 type RelationUnit struct { 189 type RelationUnit struct {
191 Relation string 190 Relation string
192 Unit string 191 Unit string
193 } 192 }
194 193
195 // RelationUnits holds the parameters for API calls expecting a pair 194 // RelationUnits holds the parameters for API calls expecting a pair
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 517
519 // RunResult contains the result from an individual run call on a machine. 518 // RunResult contains the result from an individual run call on a machine.
520 // UnitId is populated if the command was run inside the unit context. 519 // UnitId is populated if the command was run inside the unit context.
521 type RunResult struct { 520 type RunResult struct {
522 exec.ExecResponse 521 exec.ExecResponse
523 MachineId string 522 MachineId string
524 UnitId string 523 UnitId string
525 Error string 524 Error string
526 } 525 }
527 526
528 // RunResults is used to return the slice of results. Api server side calls 527 // RunResults is used to return the slice of results. API server side calls
529 // need to return single structure values. 528 // need to return single structure values.
530 type RunResults struct { 529 type RunResults struct {
531 Results []RunResult 530 Results []RunResult
532 } 531 }
532
533 // APIHostPortsResult holds the result of an APIHostPorts
534 // call. Each element in the top level slice holds
535 // the addresses for one API server.
536 type APIHostPortsResult struct {
537 Servers [][]instance.HostPort
538 }
OLDNEW
« no previous file with comments | « state/api/machiner/machiner_test.go ('k') | state/api/provisioner/provisioner.go » ('j') | no next file with comments »

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