Documentation
¶
Overview ¶
Package filesystem returns information about available filesystems.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTimeoutExceeded represents a timeout error ErrTimeoutExceeded = errors.New("timeout exceeded") )
Functions ¶
This section is empty.
Types ¶
type Info ¶ added in v0.49.0
type Info []MountInfo
Info represents a list of mounted filesystems.
func CollectInfo ¶ added in v0.49.0
CollectInfo returns the list of mounted filesystems
type MountInfo ¶ added in v0.48.0
type MountInfo struct {
// Name is the name of the mounted filesystem.
Name string `json:"name"`
// SizeKB is the size of the mounted filesystem in KB.
SizeKB uint64 `json:"kb_size"`
// MountedOn is the mount point path of the mounted filesystem.
MountedOn string `json:"mounted_on"`
}
MountInfo represents a mounted filesystem.
Click to show internal directories.
Click to hide internal directories.