Update to inline comments.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-10-14 12:46:39 -04:00
parent 52a4737319
commit 8f81bb92a3
4 changed files with 22 additions and 43 deletions

View file

@ -7,33 +7,23 @@ package volume
// See hack/swagger-gen.sh
// ----------------------------------------------------------------------------
/*VolumesCreateBody volumes create body
swagger:model VolumesCreateBody
*/
// VolumesCreateBody volumes create body
// swagger:model VolumesCreateBody
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"`
/* 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"`
/* 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"`
/* 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"`
}

View file

@ -9,21 +9,15 @@ package volume
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 {
/* List of volumes
Required: true
*/
// List of volumes
// Required: true
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"`
}

View file

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

View file

@ -3,15 +3,11 @@ package types
// This file was generated by the swagger tool.
// 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 {
/* The error message.
Required: true
*/
// The error message.
// Required: true
Message string `json:"message"`
}