2016-10-03 14:14:53 -04:00
|
|
|
package types
|
|
|
|
|
|
|
|
// This file was generated by the swagger tool.
|
|
|
|
// Editing this file might prove futile when you re-run the swagger generate command
|
|
|
|
|
|
|
|
// Volume volume
|
|
|
|
// swagger:model Volume
|
|
|
|
type Volume struct {
|
|
|
|
|
2017-07-19 09:30:18 -04:00
|
|
|
// Date/Time the volume was created.
|
2017-05-17 17:19:13 -04:00
|
|
|
CreatedAt string `json:"CreatedAt,omitempty"`
|
|
|
|
|
2016-10-03 14:14:53 -04:00
|
|
|
// Name of the volume driver used by the volume.
|
|
|
|
// Required: true
|
|
|
|
Driver string `json:"Driver"`
|
|
|
|
|
2016-11-14 21:08:24 -05:00
|
|
|
// User-defined key/value metadata.
|
2016-10-03 14:14:53 -04:00
|
|
|
// Required: true
|
|
|
|
Labels map[string]string `json:"Labels"`
|
|
|
|
|
|
|
|
// Mount path of the volume on the host.
|
|
|
|
// Required: true
|
|
|
|
Mountpoint string `json:"Mountpoint"`
|
|
|
|
|
|
|
|
// Name of the volume.
|
|
|
|
// Required: true
|
|
|
|
Name string `json:"Name"`
|
|
|
|
|
2016-10-20 16:31:32 -04:00
|
|
|
// The driver specific options used when creating the volume.
|
|
|
|
// Required: true
|
|
|
|
Options map[string]string `json:"Options"`
|
2016-10-03 14:14:53 -04:00
|
|
|
|
|
|
|
// The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level.
|
|
|
|
// Required: true
|
|
|
|
Scope string `json:"Scope"`
|
|
|
|
|
|
|
|
// Low-level details about the volume, provided by the volume driver.
|
|
|
|
// Details are returned as a map with key/value pairs:
|
|
|
|
// `{"key":"value","key2":"value2"}`.
|
|
|
|
//
|
|
|
|
// The `Status` field is optional, and is omitted if the volume driver
|
|
|
|
// does not support this feature.
|
|
|
|
//
|
|
|
|
Status map[string]interface{} `json:"Status,omitempty"`
|
|
|
|
|
|
|
|
// usage data
|
|
|
|
UsageData *VolumeUsageData `json:"UsageData,omitempty"`
|
|
|
|
}
|
|
|
|
|
2017-07-19 10:08:38 -04:00
|
|
|
// VolumeUsageData Usage details about the volume. This information is used by the
|
|
|
|
// `GET /system/df` endpoint, and omitted in other endpoints.
|
|
|
|
//
|
2016-10-03 14:14:53 -04:00
|
|
|
// swagger:model VolumeUsageData
|
|
|
|
type VolumeUsageData struct {
|
|
|
|
|
2017-07-19 10:08:38 -04:00
|
|
|
// The number of containers referencing this volume. This field
|
|
|
|
// is set to `-1` if the reference-count is not available.
|
|
|
|
//
|
2016-10-03 14:14:53 -04:00
|
|
|
// Required: true
|
|
|
|
RefCount int64 `json:"RefCount"`
|
|
|
|
|
2017-07-19 10:08:38 -04:00
|
|
|
// 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")
|
|
|
|
//
|
2016-10-03 14:14:53 -04:00
|
|
|
// Required: true
|
|
|
|
Size int64 `json:"Size"`
|
|
|
|
}
|