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

Unified Diff: state/api/params/params.go

Issue 7519043: state/api/params: new package
Patch Set: state/api/params: new package Created 11 years ago
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « state/api/apiclient.go ('k') | state/apiserver/api_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: state/api/params/params.go
=== added file 'state/api/params/params.go'
--- state/api/params/params.go 1970-01-01 00:00:00 +0000
+++ state/api/params/params.go 2013-03-06 19:13:26 +0000
@@ -0,0 +1,72 @@
+package params
+
+// ServiceExpose holds the parameters for making the ServiceExpose call.
+type ServiceExpose struct {
+ ServiceName string
+}
+
+// ServiceSet holds the parameters for a ServiceSet
+// command. Options contains the configuration data.
+type ServiceSet struct {
+ ServiceName string
+ Options map[string]string
+}
+
+// ServiceSetYAML holds the parameters for
+// a ServiceSetYAML command. Config contains the
+// configuration data in YAML format.
+type ServiceSetYAML struct {
+ ServiceName string
+ Config string
+}
+
+// ServiceGet holds parameters for making the ServiceGet call.
+type ServiceGet struct {
+ ServiceName string
+}
+
+// ServiceGetResults holds results of the ServiceGet call.
+type ServiceGetResults struct {
+ Service string
+ Charm string
+ Settings map[string]interface{}
+}
+
+// ServiceUnexpose holds parameters for the ServiceUnexpose call.
+type ServiceUnexpose struct {
+ ServiceName string
+}
+
+// Creds holds credentials for identifying an entity.
+type Creds struct {
+ EntityName string
+ Password string
+}
+
+// Machine holds details of a machine.
+type Machine struct {
+ InstanceId string
+}
+
+// EntityWatcherId holds the id of an EntityWatcher.
+type EntityWatcherId struct {
+ EntityWatcherId string
+}
+
+// Password holds a password.
+type Password struct {
+ Password string
+}
+
+// Unit holds details of a unit.
+type Unit struct {
+ DeployerName string
+ // TODO(rog) other unit attributes.
+}
+
+// User holds details of a user.
+type User struct {
+ // This is a placeholder for any information
+ // that may be associated with a user in the
+ // future.
+}
« no previous file with comments | « state/api/apiclient.go ('k') | state/apiserver/api_test.go » ('j') | no next file with comments »

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