Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MountUnmounter ¶
A MountUnmounter is the interface that mounts, and unmounts filesystems.
func NewLoggingMounter ¶
func NewLoggingMounter(m Mounter, um Unmounter, logf func(string, ...interface{})) MountUnmounter
NewLoggingMounter returns a MountUnmounter that logs mount events using the given logger func.
type Mounter ¶
type Mounter interface {
Mount(source string, target string, fstype string, flags uintptr, data string) error
}
Mounter is the interface that mounts a filesystem. It's signature is the same as syscall.Mount.
type MounterFunc ¶
MounterFunc is a functional type that implements Mounter. The mount syscall can be wrapped using MounterFunc(syscall.Mount) to be used as a Mounter.
type Unmounter ¶
Unmounter is the interface that unmounts a filesystem. It's signature is the same as syscall.Unmount.
type UnmounterFunc ¶
UnmounterFunc is a functional type that implements Unmounter. The unmount syscall can be wrapped using UnmounterFunc(syscall.Unmount) to be used as an Unmounter.