|
@@ -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"`
|
|
}
|
|
}
|