From c5f93a9a480b262c60bca434b0941aeb7e5ba9ac Mon Sep 17 00:00:00 2001 From: Vishnu Kannan Date: Mon, 23 Jun 2014 18:41:39 +0000 Subject: [PATCH] Reuse internal mount.Mount in the API. Docker-DCO-1.1-Signed-off-by: Vishnu Kannan (github: vishh) --- container.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/container.go b/container.go index feaa7661f..1efb0db41 100644 --- a/container.go +++ b/container.go @@ -3,18 +3,14 @@ package libcontainer import ( "github.com/docker/libcontainer/cgroups" "github.com/docker/libcontainer/devices" + "github.com/docker/libcontainer/mount" ) // Context is a generic key value pair that allows arbatrary data to be sent type Context map[string]string -type Mount struct { - Type string `json:"type,omitempty"` - Source string `json:"source,omitempty"` // Source path, in the host namespace - Destination string `json:"destination,omitempty"` // Destination path, in the container - Writable bool `json:"writable,omitempty"` - Private bool `json:"private,omitempty"` -} +// Reusing internal Mount struct since we don't expect the API and the internal representation to differ much in the future. +type Mount mount.Mount type Mounts []Mount