volume.go 1.6 KB

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