mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
Update to inline comments.
Signed-off-by: Daniel Nephin <dnephin@docker.com> Upstream-commit: 8f81bb92a3e528d0b5facadd55738aefc279caf8 Component: engine
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
@@ -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"`
|
||||
}
|
||||
|
||||
@@ -20,8 +20,7 @@ import (
|
||||
|
||||
|
||||
{{ range .ExtraSchemas }}
|
||||
/*{{ .Name }} {{ template "docstring" . }}
|
||||
swagger:model {{ .Name }}
|
||||
*/
|
||||
// {{ .Name }} {{ template "docstring" . }}
|
||||
// swagger:model {{ .Name }}
|
||||
{{ template "schema" . }}
|
||||
{{ end }}
|
||||
|
||||
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user