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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user