github.com/cookieai-jar/moby@v17.12.1-ce-rc2+incompatible/api/types/volume.go (about) 1 package types 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 // Volume volume 7 // swagger:model Volume 8 type Volume struct { 9 10 // Date/Time the volume was created. 11 CreatedAt string `json:"CreatedAt,omitempty"` 12 13 // Name of the volume driver used by the volume. 14 // Required: true 15 Driver string `json:"Driver"` 16 17 // User-defined key/value metadata. 18 // Required: true 19 Labels map[string]string `json:"Labels"` 20 21 // Mount path of the volume on the host. 22 // Required: true 23 Mountpoint string `json:"Mountpoint"` 24 25 // Name of the volume. 26 // Required: true 27 Name string `json:"Name"` 28 29 // The driver specific options used when creating the volume. 30 // Required: true 31 Options map[string]string `json:"Options"` 32 33 // The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level. 34 // Required: true 35 Scope string `json:"Scope"` 36 37 // Low-level details about the volume, provided by the volume driver. 38 // Details are returned as a map with key/value pairs: 39 // `{"key":"value","key2":"value2"}`. 40 // 41 // The `Status` field is optional, and is omitted if the volume driver 42 // does not support this feature. 43 // 44 Status map[string]interface{} `json:"Status,omitempty"` 45 46 // usage data 47 UsageData *VolumeUsageData `json:"UsageData,omitempty"` 48 } 49 50 // VolumeUsageData Usage details about the volume. This information is used by the 51 // `GET /system/df` endpoint, and omitted in other endpoints. 52 // 53 // swagger:model VolumeUsageData 54 type VolumeUsageData struct { 55 56 // The number of containers referencing this volume. This field 57 // is set to `-1` if the reference-count is not available. 58 // 59 // Required: true 60 RefCount int64 `json:"RefCount"` 61 62 // Amount of disk space used by the volume (in bytes). This information 63 // is only available for volumes created with the `"local"` volume 64 // driver. For volumes created with other volume drivers, this field 65 // is set to `-1` ("not available") 66 // 67 // Required: true 68 Size int64 `json:"Size"` 69 }