Ver Fonte

Update to inline comments.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Daniel Nephin há 8 anos atrás
pai
commit
8f81bb92a3

+ 10 - 20
api/server/types/volume/volumes_create.go

@@ -7,33 +7,23 @@ package volume
 // See hack/swagger-gen.sh
 // See hack/swagger-gen.sh
 // ----------------------------------------------------------------------------
 // ----------------------------------------------------------------------------
 
 
-/*VolumesCreateBody volumes create body
-
-swagger:model VolumesCreateBody
-*/
+// VolumesCreateBody volumes create body
+// swagger:model VolumesCreateBody
 type VolumesCreateBody struct {
 type VolumesCreateBody struct {
 
 
-	/* Name of the volume driver to use.
-
-	Required: true
-	*/
+	// Name of the volume driver to use.
+	// Required: true
 	Driver string `json:"Driver"`
 	Driver string `json:"Driver"`
 
 
-	/* A mapping of driver options and values. These options are passed directly to the driver and are driver specific.
-
-	Required: true
-	*/
+	// A mapping of driver options and values. These options are passed directly to the driver and are driver specific.
+	// Required: true
 	DriverOpts map[string]string `json:"DriverOpts"`
 	DriverOpts map[string]string `json:"DriverOpts"`
 
 
-	/* A mapping of arbitrary key/value data to set on the volume.
-
-	Required: true
-	*/
+	// A mapping of arbitrary key/value data to set on the volume.
+	// Required: true
 	Labels map[string]string `json:"Labels"`
 	Labels map[string]string `json:"Labels"`
 
 
-	/* The new volume's name. If not specified, Docker generates a name.
-
-	Required: true
-	*/
+	// The new volume's name. If not specified, Docker generates a name.
+	// Required: true
 	Name string `json:"Name"`
 	Name string `json:"Name"`
 }
 }

+ 6 - 12
api/server/types/volume/volumes_list.go

@@ -9,21 +9,15 @@ package volume
 
 
 import "github.com/docker/docker/api/types"
 import "github.com/docker/docker/api/types"
 
 
-/*VolumesListOKBody volumes list o k body
-
-swagger:model VolumesListOKBody
-*/
+// VolumesListOKBody volumes list o k body
+// swagger:model VolumesListOKBody
 type VolumesListOKBody struct {
 type VolumesListOKBody struct {
 
 
-	/* List of volumes
-
-	Required: true
-	*/
+	// List of volumes
+	// Required: true
 	Volumes []*types.Volume `json:"Volumes"`
 	Volumes []*types.Volume `json:"Volumes"`
 
 
-	/* Warnings that occurred when fetching the list of volumes
-
-	Required: true
-	*/
+	// Warnings that occurred when fetching the list of volumes
+	// Required: true
 	Warnings []string `json:"Warnings"`
 	Warnings []string `json:"Warnings"`
 }
 }

+ 2 - 3
api/templates/server/operation.gotmpl

@@ -20,8 +20,7 @@ import (
 
 
 
 
 {{ range .ExtraSchemas }}
 {{ range .ExtraSchemas }}
-/*{{ .Name }} {{ template "docstring" . }}
-swagger:model {{ .Name }}
-*/
+// {{ .Name }} {{ template "docstring" . }}
+// swagger:model {{ .Name }}
 {{ template "schema" . }}
 {{ template "schema" . }}
 {{ end }}
 {{ end }}

+ 4 - 8
api/types/error_response.go

@@ -3,15 +3,11 @@ package types
 // This file was generated by the swagger tool.
 // This file was generated by the swagger tool.
 // Editing this file might prove futile when you re-run the swagger generate command
 // Editing this file might prove futile when you re-run the swagger generate command
 
 
-/*ErrorResponse Represents an error.
-
-swagger:model ErrorResponse
-*/
+// ErrorResponse Represents an error.
+// swagger:model ErrorResponse
 type ErrorResponse struct {
 type ErrorResponse struct {
 
 
-	/* The error message.
-
-	Required: true
-	*/
+	// The error message.
+	// Required: true
 	Message string `json:"message"`
 	Message string `json:"message"`
 }
 }