Merge pull request #33257 from mtesselH/master

Add CreatedAt filed to volume. Display when volume is inspected.
Upstream-commit: 79b19c2e16c43f22187538953f49b2c048b063f8
Component: engine
This commit is contained in:
Sebastiaan van Stijn
2017-05-29 10:48:07 +01:00
committed by GitHub
9 changed files with 68 additions and 3 deletions
+5
View File
@@ -1048,6 +1048,10 @@ definitions:
type: "string"
description: "Mount path of the volume on the host."
x-nullable: false
CreatedAt:
type: "string"
format: "dateTime"
description: "Time volume was created."
Status:
type: "object"
description: |
@@ -1101,6 +1105,7 @@ definitions:
com.example.some-label: "some-value"
com.example.some-other-label: "some-other-value"
Scope: "local"
CreatedAt: "2016-06-07T20:31:11.853781916Z"
Network:
type: "object"
+3
View File
@@ -7,6 +7,9 @@ package types
// swagger:model Volume
type Volume struct {
// Time volume was created.
CreatedAt string `json:"CreatedAt,omitempty"`
// Name of the volume driver used by the volume.
// Required: true
Driver string `json:"Driver"`