github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/helper/mount/mount.go (about) 1 package mount 2 3 // Mounter defines the set of methods to allow for mount operations on a system. 4 type Mounter interface { 5 // IsNotAMountPoint detects if a provided directory is not a mountpoint. 6 IsNotAMountPoint(file string) (bool, error) 7 8 // Mount will mount filesystem according to the specified configuration, on 9 // the condition that the target path is *not* already mounted. Options must 10 // be specified like the mount or fstab unix commands: "opt1=val1,opt2=val2". 11 Mount(device, target, mountType, options string) error 12 } 13 14 // Compile-time check to ensure all Mounter implementations satisfy 15 // the mount interface. 16 var _ Mounter = &mounter{}