package mount
import "github.com/dotcloud/docker/mount"
Index ¶
- func Mount(device, target, mType, options string) error
- func Mounted(mountpoint string) (bool, error)
- func Unmount(target string) (err error)
- type MountInfo
Functions ¶
func Mount ¶
Mount the specified options at the target path 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 ¶
- Version
- v0.7.6
- Published
- Jan 15, 2014
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 1 minute ago –
Tools for package owners.