Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasTypeMount ¶
HasTypeMount return true if df has 'mnt' mount point with type 'fstype' else return false
Types ¶
type Entry ¶
type Entry struct {
Device string
MountPoint string
UsedPercent int64
// In bytes
Total int64
Used int64
Free int64
}
Entry represents a parsed line of the df unix command
func ContainingMountUsage ¶
ContainingMountUsage executes and parses a df command for the mount point containing the path
func MountUsage ¶
MountUsage executes and parses a df command for a mount point
func TypeMountUsage ¶
TypeMountUsage executes and parses a df command for a mount point and a fstype
Click to show internal directories.
Click to hide internal directories.