utility

package
v0.0.0-...-1ccb659 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDirSize

func GetDirSize(path string) (float64, error)

func GetVolumeSize

func GetVolumeSize(volumeName string) (float64, error)

Types

type NetworkUsage

type NetworkUsage struct {
	Recv float64
	Sent float64
}

func GetNetworkUsage

func GetNetworkUsage() (*NetworkUsage, error)

type UsageData

type UsageData struct {
	Total          int
	Free           int
	Used           int
	PercentageUsed int
}

func GetCPUUsage

func GetCPUUsage() (*UsageData, error)

func GetDiskUsage

func GetDiskUsage() (*UsageData, error)

func GetMemoryUsage

func GetMemoryUsage() (*UsageData, error)

Jump to

Keyboard shortcuts

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