Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilesystemStat ¶
func GetFilesystemStat ¶
func GetFilesystemStat(path string) (FilesystemStat, error)
func (FilesystemStat) Available ¶ added in v0.0.7
func (fs FilesystemStat) Available() uint64
Available returns the number of bytes available to a non-privileged user.
func (FilesystemStat) HasReachedLimit ¶ added in v0.0.6
func (fs FilesystemStat) HasReachedLimit(limit uint64) bool
HasReachedLimit returns true if the used disk space is greater than or equal to the given limit in percent.
func (FilesystemStat) Total ¶
func (fs FilesystemStat) Total() uint64
Total returns the total number of bytes.
func (FilesystemStat) Used ¶
func (fs FilesystemStat) Used() uint64
Used returns the number of used bytes as observed by an non-privileged user.
Click to show internal directories.
Click to hide internal directories.