volume.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package types
  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. // Name of the volume driver used by the volume.
  8. // Required: true
  9. Driver string `json:"Driver"`
  10. // User-defined key/value metadata.
  11. // Required: true
  12. Labels map[string]string `json:"Labels"`
  13. // Mount path of the volume on the host.
  14. // Required: true
  15. Mountpoint string `json:"Mountpoint"`
  16. // Name of the volume.
  17. // Required: true
  18. Name string `json:"Name"`
  19. // The driver specific options used when creating the volume.
  20. // Required: true
  21. Options map[string]string `json:"Options"`
  22. // The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level.
  23. // Required: true
  24. Scope string `json:"Scope"`
  25. // Low-level details about the volume, provided by the volume driver.
  26. // Details are returned as a map with key/value pairs:
  27. // `{"key":"value","key2":"value2"}`.
  28. //
  29. // The `Status` field is optional, and is omitted if the volume driver
  30. // does not support this feature.
  31. //
  32. Status map[string]interface{} `json:"Status,omitempty"`
  33. // usage data
  34. UsageData *VolumeUsageData `json:"UsageData,omitempty"`
  35. }
  36. // VolumeUsageData volume usage data
  37. // swagger:model VolumeUsageData
  38. type VolumeUsageData struct {
  39. // The number of containers referencing this volume.
  40. // Required: true
  41. RefCount int64 `json:"RefCount"`
  42. // The disk space used by the volume (local driver only)
  43. // Required: true
  44. Size int64 `json:"Size"`
  45. }