|
@@ -14,7 +14,9 @@ type VolumeCreateBody struct {
|
|
// 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"`
|
|
|
|
|
|
@@ -23,6 +25,7 @@ type VolumeCreateBody struct {
|
|
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"`
|
|
}
|
|
}
|