hostinfo

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RootFsStat

func RootFsStat() (*disk.UsageStat, error)

RootFsStat return rootfs info of host

Types

type CpuInfo

type CpuInfo struct {
	Count int
	cpu.InfoStat
}

func CpuStat

func CpuStat() (CpuInfo, error)

CpuStat returns host cpu information

type MemInfo

type MemInfo struct {
	Total   int64
	Used    int64
	Free    int64
	Percent float64
}

func MemStat

func MemStat() (MemInfo, error)

MemStat returns host mem information

Jump to

Keyboard shortcuts

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