github.com/jiasir/docker@v1.3.3-0.20170609024000-252e610103e7/api/types/volume.go (about)

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