Signed-off-by: Daniel Nephin <dnephin@docker.com>
| ... | ... |
@@ -7,33 +7,23 @@ package volume |
| 7 | 7 |
// See hack/swagger-gen.sh |
| 8 | 8 |
// ---------------------------------------------------------------------------- |
| 9 | 9 |
|
| 10 |
-/*VolumesCreateBody volumes create body |
|
| 11 |
- |
|
| 12 |
-swagger:model VolumesCreateBody |
|
| 13 |
-*/ |
|
| 10 |
+// VolumesCreateBody volumes create body |
|
| 11 |
+// swagger:model VolumesCreateBody |
|
| 14 | 12 |
type VolumesCreateBody struct {
|
| 15 | 13 |
|
| 16 |
- /* Name of the volume driver to use. |
|
| 17 |
- |
|
| 18 |
- Required: true |
|
| 19 |
- */ |
|
| 14 |
+ // Name of the volume driver to use. |
|
| 15 |
+ // Required: true |
|
| 20 | 16 |
Driver string `json:"Driver"` |
| 21 | 17 |
|
| 22 |
- /* A mapping of driver options and values. These options are passed directly to the driver and are driver specific. |
|
| 23 |
- |
|
| 24 |
- Required: true |
|
| 25 |
- */ |
|
| 18 |
+ // A mapping of driver options and values. These options are passed directly to the driver and are driver specific. |
|
| 19 |
+ // Required: true |
|
| 26 | 20 |
DriverOpts map[string]string `json:"DriverOpts"` |
| 27 | 21 |
|
| 28 |
- /* A mapping of arbitrary key/value data to set on the volume. |
|
| 29 |
- |
|
| 30 |
- Required: true |
|
| 31 |
- */ |
|
| 22 |
+ // A mapping of arbitrary key/value data to set on the volume. |
|
| 23 |
+ // Required: true |
|
| 32 | 24 |
Labels map[string]string `json:"Labels"` |
| 33 | 25 |
|
| 34 |
- /* The new volume's name. If not specified, Docker generates a name. |
|
| 35 |
- |
|
| 36 |
- Required: true |
|
| 37 |
- */ |
|
| 26 |
+ // The new volume's name. If not specified, Docker generates a name. |
|
| 27 |
+ // Required: true |
|
| 38 | 28 |
Name string `json:"Name"` |
| 39 | 29 |
} |
| ... | ... |
@@ -9,21 +9,15 @@ package volume |
| 9 | 9 |
|
| 10 | 10 |
import "github.com/docker/docker/api/types" |
| 11 | 11 |
|
| 12 |
-/*VolumesListOKBody volumes list o k body |
|
| 13 |
- |
|
| 14 |
-swagger:model VolumesListOKBody |
|
| 15 |
-*/ |
|
| 12 |
+// VolumesListOKBody volumes list o k body |
|
| 13 |
+// swagger:model VolumesListOKBody |
|
| 16 | 14 |
type VolumesListOKBody struct {
|
| 17 | 15 |
|
| 18 |
- /* List of volumes |
|
| 19 |
- |
|
| 20 |
- Required: true |
|
| 21 |
- */ |
|
| 16 |
+ // List of volumes |
|
| 17 |
+ // Required: true |
|
| 22 | 18 |
Volumes []*types.Volume `json:"Volumes"` |
| 23 | 19 |
|
| 24 |
- /* Warnings that occurred when fetching the list of volumes |
|
| 25 |
- |
|
| 26 |
- Required: true |
|
| 27 |
- */ |
|
| 20 |
+ // Warnings that occurred when fetching the list of volumes |
|
| 21 |
+ // Required: true |
|
| 28 | 22 |
Warnings []string `json:"Warnings"` |
| 29 | 23 |
} |
| ... | ... |
@@ -3,15 +3,11 @@ package types |
| 3 | 3 |
// This file was generated by the swagger tool. |
| 4 | 4 |
// Editing this file might prove futile when you re-run the swagger generate command |
| 5 | 5 |
|
| 6 |
-/*ErrorResponse Represents an error. |
|
| 7 |
- |
|
| 8 |
-swagger:model ErrorResponse |
|
| 9 |
-*/ |
|
| 6 |
+// ErrorResponse Represents an error. |
|
| 7 |
+// swagger:model ErrorResponse |
|
| 10 | 8 |
type ErrorResponse struct {
|
| 11 | 9 |
|
| 12 |
- /* The error message. |
|
| 13 |
- |
|
| 14 |
- Required: true |
|
| 15 |
- */ |
|
| 10 |
+ // The error message. |
|
| 11 |
+ // Required: true |
|
| 16 | 12 |
Message string `json:"message"` |
| 17 | 13 |
} |