Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IsMountedProvider ¶
IsMountedProvider is the interface that wraps the IsMounted method, which can be provided by a system-specific implementation or a mock.
type LinuxProvider ¶
type LinuxProvider struct{}
LinuxProvider encapsulates Linux-specific implementations of system interfaces.
func DefaultProvider ¶
func DefaultProvider() *LinuxProvider
DefaultProvider returns the package-default provider implementation.
func (LinuxProvider) IsMounted ¶
func (s LinuxProvider) IsMounted(target string) (bool, error)
IsMounted checks the target device or directory for mountedness.
type MountProvider ¶
type MountProvider interface {
Mount(source, target, fstype string, flags uintptr, data string) error
}
MountProvider is the interface that wraps the Mount method, which can be provided by a system-specific implementation or a mock.
type UnmountProvider ¶
UnmountProvider is the interface that wraps the Unmount method, which can be provided by a system-specific implementation or a mock.
Click to show internal directories.
Click to hide internal directories.