ensure pkg/util/mount compiles & crosses

- move compile time check from linux code to generic code
This commit is contained in:
Morgan Bauer
2016-08-17 12:31:42 -07:00
parent 0039d75dd0
commit 92a043e833
2 changed files with 4 additions and 2 deletions

View File

@@ -51,6 +51,10 @@ type Interface interface {
GetDeviceNameFromMount(mountPath, pluginDir string) (string, error)
}
// Compile-time check to ensure all Mounter implementations satisfy
// the mount interface
var _ Interface = &Mounter{}
// This represents a single line in /proc/mounts or /etc/fstab.
type MountPoint struct {
Device string