Add Size and RefCount fields to types.Volume

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
Upstream-commit: c6db1e9c1b1c015a69a37e4efc570cb44d801168
Component: engine
This commit is contained in:
Kenfe-Mickael Laventure
2016-09-29 07:42:53 -07:00
parent c643e4b3fd
commit f0f455579a
2 changed files with 6 additions and 2 deletions
+4 -2
View File
@@ -27,8 +27,10 @@ type mounts []container.Mount
// volumeToAPIType converts a volume.Volume to the type used by the remote API
func volumeToAPIType(v volume.Volume) *types.Volume {
tv := &types.Volume{
Name: v.Name(),
Driver: v.DriverName(),
Name: v.Name(),
Driver: v.DriverName(),
Size: -1,
RefCount: -1,
}
if v, ok := v.(volume.LabeledVolume); ok {
tv.Labels = v.Labels()