Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-10-14 12:46:39 -04:00
Родитель 52a4737319
Коммит 8f81bb92a3
4 изменённых файлов: 22 добавлений и 43 удалений

Просмотреть файл

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

Просмотреть файл

@ -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 // VolumesListOKBody volumes list o k body
// swagger:model VolumesListOKBody
swagger:model VolumesListOKBody
*/
type VolumesListOKBody struct { type VolumesListOKBody struct {
/* List of volumes // List of volumes
// Required: true
Required: true
*/
Volumes []*types.Volume `json:"Volumes"` Volumes []*types.Volume `json:"Volumes"`
/* Warnings that occurred when fetching the list of volumes // Warnings that occurred when fetching the list of volumes
// Required: true
Required: true
*/
Warnings []string `json:"Warnings"` Warnings []string `json:"Warnings"`
} }

Просмотреть файл

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

Просмотреть файл

@ -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. // ErrorResponse Represents an error.
// swagger:model ErrorResponse
swagger:model ErrorResponse
*/
type ErrorResponse struct { type ErrorResponse struct {
/* The error message. // The error message.
// Required: true
Required: true
*/
Message string `json:"message"` Message string `json:"message"`
} }