Documentation ¶
Index ¶
Constants ¶
View Source
const (
Loopback = "lo"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPU ¶
type Disk ¶
type Disk struct { DiskDevices []DiskDevice Total uint64 `json:"total"` Free uint64 `json:"free"` Used uint64 `json:"used"` UsedPercent float64 `json:"usedPercent"` }
type DiskDevice ¶
type Host ¶
type Host struct { Hostname string `json:"hostname"` OS string `json:"os"` // ex: freebsd, linux Platform string `json:"platform"` // ex: ubuntu, linuxmint PlatformFamily string `json:"platformFamily"` // ex: debian, rhel PlatformVersion string `json:"platformVersion"` // version of the complete OS KernelVersion string `json:"kernelVersion"` // version of the OS kernel (if available) KernelArch string `json:"kernelArch"` // native cpu architecture queried at runtime, as returned by `uname -m` or empty string in case of error HostID string `json:"hostId"` // ex: uuid }
type InterfaceAddr ¶
type InterfaceAddr struct { Family string `json:"family"` //ex: ipv4/ipv6 Addr string `json:"addr"` }
NetInterfaceAddr is designed for represent interface addresses
type Memory ¶
type Memory struct { Total uint64 `json:"total"` Available uint64 `json:"available"` Used uint64 `json:"used"` UsedPercent float64 `json:"usedPercent"` Free uint64 `json:"free"` }
func MemoryInfo ¶
type Net ¶
type Net struct { Index int `json:"index"` Name string `json:"name"` // e.g., "en0", "lo0", "eth0.100" MTU int `json:"mtu"` // maximum transmission unit HardwareAddr string `json:"hardwareAddr"` // IEEE MAC-48, EUI-48 and EUI-64 form Flags string `json:"flags"` // e.g., FlagUp, FlagLoopback, FlagMulticast Addrs []InterfaceAddr `json:"addrs"` }
Click to show internal directories.
Click to hide internal directories.