Documentation
¶
Index ¶
- func GetDiskUsage(ctx context.Context, timeout time.Duration, fsList []FilesystemType, ...) error
- func GetDiskUsageSingle(ctx context.Context, timeout time.Duration, fs *FilesystemType)
- func GetFilesystemsWithFixedNumberOfInodes() []string
- type CheckConfig
- type DualThresholdWrapper
- type FilesystemType
- type Filters
- type Thresholds
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDiskUsage ¶
func GetDiskUsage(ctx context.Context, timeout time.Duration, fsList []FilesystemType, _ *CheckConfig) error
func GetDiskUsageSingle ¶ added in v0.1.3
func GetDiskUsageSingle(ctx context.Context, timeout time.Duration, fs *FilesystemType)
func GetFilesystemsWithFixedNumberOfInodes ¶
func GetFilesystemsWithFixedNumberOfInodes() []string
Types ¶
type CheckConfig ¶
type CheckConfig struct {
// Thresholds
WarningAbsolutThreshold Thresholds
CriticalAbsolutThreshold Thresholds
WarningPercentThreshold Thresholds
CriticalPercentThreshold Thresholds
WarningTotalCountOfFs thresholds.ThresholdWrapper
CriticalTotalCountOfFs thresholds.ThresholdWrapper
Filters Filters
ReadonlyOption bool
ReadWriteOption bool
// Output Verbosity
Verbosity uint
}
type DualThresholdWrapper ¶
type DualThresholdWrapper struct {
Free thresholds.ThresholdWrapper
Used thresholds.ThresholdWrapper
}
type FilesystemType ¶
type FilesystemType struct {
PartStats disk.PartitionStat
UsageStats disk.UsageStat
Error error
}
nolint: revive
func FilterFileSystem ¶
func FilterFileSystem(filesystems []FilesystemType, filters *Filters) ([]FilesystemType, error)
type Filters ¶
type Filters struct {
// Selection/File options
// Paths
IncludeDevicePaths []string
ExcludeDevicePaths []string
// Filesystem Types
IncludeFsType []string
ExcludeFsType []string
// Mount Paths
IncludeMountPaths []string
ExcludeMountPaths []string
// Filesystem Options
// Read-Only? Read-Write
// pass through general mount options?
IncludeOptions []string
ExcludeOptions []string
}
type Thresholds ¶
type Thresholds struct {
Space DualThresholdWrapper
Inodes DualThresholdWrapper
}
Click to show internal directories.
Click to hide internal directories.