Documentation
¶
Index ¶
- func HasTypeMount(ctx context.Context, fstype string, mnt string) bool
- type Entry
- func ContainingMountUsage(ctx context.Context, p string) ([]Entry, error)
- func Inode(ctx context.Context) ([]Entry, error)
- func MountUsage(ctx context.Context, mnt string) ([]Entry, error)
- func TypeMountUsage(ctx context.Context, fstype string, mnt string) ([]Entry, error)
- func Usage(ctx context.Context) ([]Entry, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.