github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/api/types/volume/volume_create.go (about) 1 package volume // import "github.com/demonoid81/moby/api/types/volume" 2 3 // ---------------------------------------------------------------------------- 4 // Code generated by `swagger generate operation`. DO NOT EDIT. 5 // 6 // See hack/generate-swagger-api.sh 7 // ---------------------------------------------------------------------------- 8 9 // VolumeCreateBody Volume configuration 10 // swagger:model VolumeCreateBody 11 type VolumeCreateBody struct { 12 13 // Name of the volume driver to use. 14 // Required: true 15 Driver string `json:"Driver"` 16 17 // A mapping of driver options and values. These options are 18 // passed directly to the driver and are driver specific. 19 // 20 // Required: true 21 DriverOpts map[string]string `json:"DriverOpts"` 22 23 // User-defined key/value metadata. 24 // Required: true 25 Labels map[string]string `json:"Labels"` 26 27 // The new volume's name. If not specified, Docker generates a name. 28 // 29 // Required: true 30 Name string `json:"Name"` 31 }