Documentation ¶
Overview ¶
Package diskusage is used to get platform specific file system usage information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskUsage ¶
type DiskUsage struct { // AvailableBytes is the total available bytes on file system to an unprivileged user. AvailableBytes uint64 // SizeBytes is the total size of the file system in bytes. SizeBytes uint64 }
DiskUsage contains usage data and provides user-friendly access methods.
func (DiskUsage) AvailablePercent ¶ added in v0.39.0
AvailablePercent returns the percentage (0.0-1.0) of the disk available to an unprivileged user see `man statfs` for how the underlying values are derived on your platform.
Click to show internal directories.
Click to hide internal directories.