github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/api/types/volume/create_options.go (about) 1 package volume 2 3 // This file was generated by the swagger tool. 4 // Editing this file might prove futile when you re-run the swagger generate command 5 6 // CreateOptions VolumeConfig 7 // 8 // Volume configuration 9 // swagger:model CreateOptions 10 type CreateOptions struct { 11 12 // cluster volume spec 13 ClusterVolumeSpec *ClusterVolumeSpec `json:"ClusterVolumeSpec,omitempty"` 14 15 // Name of the volume driver to use. 16 Driver string `json:"Driver,omitempty"` 17 18 // A mapping of driver options and values. These options are 19 // passed directly to the driver and are driver specific. 20 // 21 DriverOpts map[string]string `json:"DriverOpts,omitempty"` 22 23 // User-defined key/value metadata. 24 Labels map[string]string `json:"Labels,omitempty"` 25 26 // The new volume's name. If not specified, Docker generates a name. 27 // 28 Name string `json:"Name,omitempty"` 29 }