system

package
v0.1.16-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CPU

func CPU() ([]cpu.InfoStat, error)

func DiskIOCounters

func DiskIOCounters() (map[string]disk.IOCountersStat, error)

func DiskPartitions

func DiskPartitions() ([]disk.PartitionStat, error)

func DiskUsage

func DiskUsage() (disk.UsageStat, error)

func Docker

func Docker() ([]docker.CgroupDockerStat, error)

func Host

func Host() (host.InfoStat, error)

func HostTemperature

func HostTemperature() ([]host.TemperatureStat, error)

func HostUsers

func HostUsers() ([]host.UserStat, error)

func LoadAvg

func LoadAvg() load.AvgStat

func LoadMisc

func LoadMisc() load.MiscStat

func NetConnections

func NetConnections() ([]net.ConnectionStat, error)

func NetIOCounters

func NetIOCounters() ([]net.IOCountersStat, error)

func NetInterfaces

func NetInterfaces() ([]net.InterfaceStat, error)

func NetProtoCounters

func NetProtoCounters() ([]net.ProtoCountersStat, error)

func SMemory

func SMemory() (mem.SwapMemoryStat, error)

func VMemory

func VMemory() (mem.VirtualMemoryStat, error)

Types

type Info

type Info struct {
	CPU              []cpu.InfoStat
	DiskUsage        disk.UsageStat
	DiskPartitions   []disk.PartitionStat
	DiskIOCounters   map[string]disk.IOCountersStat
	Docker           []docker.CgroupDockerStat
	Host             host.InfoStat
	HostUsers        []host.UserStat
	HostTemperature  []host.TemperatureStat
	LoadAvg          load.AvgStat
	LoadMisc         load.MiscStat
	VMemory          mem.VirtualMemoryStat
	SMemory          mem.SwapMemoryStat
	NetIOCounters    []net.IOCountersStat
	NetConnections   []net.ConnectionStat
	NetInterfaces    []net.InterfaceStat
	NetProtoCounters []net.ProtoCountersStat
}

func AllInfo

func AllInfo() Info

Jump to

Keyboard shortcuts

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