2018-03-06 10:41:43 -05:00
|
|
|
package volume // import "github.com/docker/docker/api/types/volume"
|
2018-03-06 10:32:47 -05:00
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// DO NOT EDIT THIS FILE
|
|
|
|
// This file was generated by `swagger generate operation`
|
|
|
|
//
|
|
|
|
// See hack/generate-swagger-api.sh
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// VolumesCreateBody volumes create body
|
|
|
|
// swagger:model VolumesCreateBody
|
|
|
|
type VolumesCreateBody struct {
|
|
|
|
|
|
|
|
// 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
|
|
|
|
DriverOpts map[string]string `json:"DriverOpts"`
|
|
|
|
|
|
|
|
// User-defined key/value metadata.
|
|
|
|
// Required: true
|
|
|
|
Labels map[string]string `json:"Labels"`
|
|
|
|
|
|
|
|
// The new volume's name. If not specified, Docker generates a name.
|
|
|
|
// Required: true
|
|
|
|
Name string `json:"Name"`
|
|
|
|
}
|