From ba1e290d126ab62efb94377bb894c77a88207cd9 Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Mon, 26 Sep 2016 18:15:19 -0700 Subject: [PATCH] containerkit: define mount type Signed-off-by: Stephen J Day --- mount.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 mount.go diff --git a/mount.go b/mount.go new file mode 100644 index 0000000..f0e8eab --- /dev/null +++ b/mount.go @@ -0,0 +1,19 @@ +package containerd + +// Mount is the lingua franca of the containerkit. A mount represents a +// serialized mount syscall. Components either emit or consume mounts. +type Mount struct { + // Type specifies the host-specific of the mount. + Type string + + // Source specifies where to mount from. Depending on the host system, this + // can be a source path or device. + Source string + + // Target is the filesystem mount location. + Target string + + // Options contains zero or more fstab-style mount options. Typically, + // these are platform specific. + Options []string +}