github.com/getong/docker@v1.13.1/api/types/volume/volumes_create.go (about) 1 package volume 2 3 // ---------------------------------------------------------------------------- 4 // DO NOT EDIT THIS FILE 5 // This file was generated by `swagger generate operation` 6 // 7 // See hack/swagger-gen.sh 8 // ---------------------------------------------------------------------------- 9 10 // VolumesCreateBody volumes create body 11 // swagger:model VolumesCreateBody 12 type VolumesCreateBody struct { 13 14 // Name of the volume driver to use. 15 // Required: true 16 Driver string `json:"Driver"` 17 18 // A mapping of driver options and values. These options are passed directly to the driver and are driver specific. 19 // Required: true 20 DriverOpts map[string]string `json:"DriverOpts"` 21 22 // User-defined key/value metadata. 23 // Required: true 24 Labels map[string]string `json:"Labels"` 25 26 // The new volume's name. If not specified, Docker generates a name. 27 // Required: true 28 Name string `json:"Name"` 29 }