mount

package
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2022 License: MPL-2.0 Imports: 2 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mounter

type Mounter interface {
	// IsNotAMountPoint detects if a provided directory is not a mountpoint.
	IsNotAMountPoint(file string) (bool, error)

	// Mount will mount filesystem according to the specified configuration, on
	// the condition that the target path is *not* already mounted. Options must
	// be specified like the mount or fstab unix commands: "opt1=val1,opt2=val2".
	Mount(device, target, mountType, options string) error
}

Mounter defines the set of methods to allow for mount operations on a system.

func New

func New() Mounter

New returns a Mounter for the current system.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL