|
@@ -47,15 +47,23 @@ type Volume struct {
|
|
|
UsageData *VolumeUsageData `json:"UsageData,omitempty"`
|
|
|
}
|
|
|
|
|
|
-// VolumeUsageData volume usage data
|
|
|
+// VolumeUsageData Usage details about the volume. This information is used by the
|
|
|
+// `GET /system/df` endpoint, and omitted in other endpoints.
|
|
|
+//
|
|
|
// swagger:model VolumeUsageData
|
|
|
type VolumeUsageData struct {
|
|
|
|
|
|
- // The number of containers referencing this volume.
|
|
|
+ // The number of containers referencing this volume. This field
|
|
|
+ // is set to `-1` if the reference-count is not available.
|
|
|
+ //
|
|
|
// Required: true
|
|
|
RefCount int64 `json:"RefCount"`
|
|
|
|
|
|
- // The disk space used by the volume (local driver only)
|
|
|
+ // Amount of disk space used by the volume (in bytes). This information
|
|
|
+ // is only available for volumes created with the `"local"` volume
|
|
|
+ // driver. For volumes created with other volume drivers, this field
|
|
|
+ // is set to `-1` ("not available")
|
|
|
+ //
|
|
|
// Required: true
|
|
|
Size int64 `json:"Size"`
|
|
|
}
|