package
17.12.1-ce-rc2+incompatible
Repository: https://github.com/larashed/cli.git
Documentation: pkg.go.dev
# Functions
ForceMount will mount a filesystem according to the specified configuration, *regardless* if the target path is not already mounted.
GetMounts retrieves a list of mounts for the current running process.
MakePrivate ensures a mounted filesystem has the PRIVATE mount option enabled.
MakeRPrivate ensures a mounted filesystem has the RPRIVATE mount option enabled.
MakeRShared ensures a mounted filesystem has the RSHARED mount option enabled.
MakeRSlave ensures a mounted filesystem has the RSLAVE mount option enabled.
MakeRUnbindable ensures a mounted filesystem has the RUNBINDABLE mount option enabled.
MakeShared ensures a mounted filesystem has the SHARED mount option enabled.
MakeSlave ensures a mounted filesystem has the SLAVE mount option enabled.
MakeUnbindable ensures a mounted filesystem has the UNBINDABLE mount option enabled.
MergeTmpfsOptions merge mount options to make sure there is no duplicate.
Mount will mount filesystem according to the specified configuration, on the condition that the target path is *not* already mounted.
Mounted determines if a specified mountpoint has been mounted.
ParseTmpfsOptions parse fstab type mount options into flags and data.
PidMountInfo collects the mounts for a specific process ID.
RecursiveUnmount unmounts the target and all mounts underneath, starting with the deepsest mount first.
Unmount lazily unmounts a filesystem on supported platforms, otherwise does a normal unmount.
# Constants
BIND remounts a subtree somewhere else.
DIRSYNC will force all directory updates within the file system to be done synchronously.
MANDLOCK will force mandatory locks on a filesystem.
NOATIME will not update the file access time when reading from a file.
NODEV will not interpret character or block special devices on the file system.
NODIRATIME will not update the directory access time.
NOEXEC will not allow execution of any binaries on the mounted file system.
NOSUID will not allow set-user-identifier or set-group-identifier bits to take effect.
PRIVATE creates a mount which carries no propagation abilities.
RBIND remounts a subtree and all possible submounts somewhere else.
RDONLY will mount the file system read-only.
RELATIME updates inode access times relative to modify or change time.
REMOUNT will attempt to remount an already-mounted file system.
RPRIVATE marks the entire mount tree as PRIVATE.
RSHARED marks the entire mount tree as SHARED.
RSLAVE marks the entire mount tree as SLAVE.
RUNBINDABLE marks the entire mount tree as UNBINDABLE.
SHARED creates a mount which provides the ability to create mirrors of that mount such that mounts and unmounts within any of the mirrors propagate to the other mirrors.
SLAVE creates a mount which receives propagation from its master, but not vice versa.
STRICTATIME allows to explicitly request full atime updates.
SYNCHRONOUS will allow I/O to the file system to be done synchronously.
UNBINDABLE creates a mount which cannot be cloned through a bind operation.