mount

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: MPL-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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