fstat

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilesystemStat

type FilesystemStat unix.Statfs_t

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL