volume.go 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package volume
  2. // This file was generated by the swagger tool.
  3. // Editing this file might prove futile when you re-run the swagger generate command
  4. // Volume volume
  5. // swagger:model Volume
  6. type Volume struct {
  7. // cluster volume
  8. ClusterVolume *ClusterVolume `json:"ClusterVolume,omitempty"`
  9. // Date/Time the volume was created.
  10. CreatedAt string `json:"CreatedAt,omitempty"`
  11. // Name of the volume driver used by the volume.
  12. // Required: true
  13. Driver string `json:"Driver"`
  14. // User-defined key/value metadata.
  15. // Required: true
  16. Labels map[string]string `json:"Labels"`
  17. // Mount path of the volume on the host.
  18. // Required: true
  19. Mountpoint string `json:"Mountpoint"`
  20. // Name of the volume.
  21. // Required: true
  22. Name string `json:"Name"`
  23. // The driver specific options used when creating the volume.
  24. //
  25. // Required: true
  26. Options map[string]string `json:"Options"`
  27. // The level at which the volume exists. Either `global` for cluster-wide,
  28. // or `local` for machine level.
  29. //
  30. // Required: true
  31. Scope string `json:"Scope"`
  32. // Low-level details about the volume, provided by the volume driver.
  33. // Details are returned as a map with key/value pairs:
  34. // `{"key":"value","key2":"value2"}`.
  35. //
  36. // The `Status` field is optional, and is omitted if the volume driver
  37. // does not support this feature.
  38. //
  39. Status map[string]interface{} `json:"Status,omitempty"`
  40. // usage data
  41. UsageData *UsageData `json:"UsageData,omitempty"`
  42. }
  43. // UsageData Usage details about the volume. This information is used by the
  44. // `GET /system/df` endpoint, and omitted in other endpoints.
  45. //
  46. // swagger:model UsageData
  47. type UsageData struct {
  48. // The number of containers referencing this volume. This field
  49. // is set to `-1` if the reference-count is not available.
  50. //
  51. // Required: true
  52. RefCount int64 `json:"RefCount"`
  53. // Amount of disk space used by the volume (in bytes). This information
  54. // is only available for volumes created with the `"local"` volume
  55. // driver. For volumes created with other volume drivers, this field
  56. // is set to `-1` ("not available")
  57. //
  58. // Required: true
  59. Size int64 `json:"Size"`
  60. }