package mount
import "github.com/docker/docker/pkg/mount"
Index ¶
- func ForceMount(device, target, mType, options string) error
- func ForceUnmount(target string) (err error)
- func Mount(device, target, mType, options string) error
- func Mounted(mountpoint string) (bool, error)
- func Unmount(target string) error
- type MountInfo
Functions ¶
func ForceMount ¶
Mount the specified options at the target path reguardless if the target is mounted or not Options must be specified as fstab style
func ForceUnmount ¶
Unmount the target reguardless if it is mounted or not
func Mount ¶
Mount the specified options at the target path only if the target is not mounted Options must be specified as fstab style
func Mounted ¶
Looks at /proc/self/mountinfo to determine of the specified mountpoint has been mounted
func Unmount ¶
Unmount the target only if it is mounted
Types ¶
type MountInfo ¶
type MountInfo struct { Id, Parent, Major, Minor int Root, Mountpoint, Opts string Fstype, Source, VfsOpts string }
func GetMounts ¶
Source Files ¶
flags_unsupported.go mount.go mounter_unsupported.go mountinfo.go
- Version
- v0.8.1
- Published
- Feb 18, 2014
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 1 minute ago –
Tools for package owners.