Documentation
      ¶
    
    
  
    
  
    Overview ¶
package mount provides a simple abstraction around a mount point
Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var MountTimeout = time.Second * 5
    Functions ¶
func ForceUnmount ¶
ForceUnmount attempts to forcibly unmount a given mount. It does so by calling diskutil or fusermount directly.
func ForceUnmountManyTimes ¶
ForceUnmountManyTimes attempts to forcibly unmount a given mount, many times. It does so by calling diskutil or fusermount directly. Attempts a given number of times.
Types ¶
type Mount ¶
type Mount interface {
	// MountPoint is the path at which this mount is mounted
	MountPoint() string
	// Unmounts the mount
	Unmount() error
	// CtxGroup returns the mount's CtxGroup to be able to link it
	// to other processes. Unmount upon closing.
	CtxGroup() ctxgroup.ContextGroup
}
    Mount represents a filesystem mount
 Click to show internal directories. 
   Click to hide internal directories.