Documentation ¶
Index ¶
- func CollectNetworkConfig() (map[string][]net.IP, error)
- func GetFileSystemInfo(path string) (total uint64, free uint64, err error)
- func GetMemoryChipInfo() (string, error)
- func GetOSInfo() (map[string]string, error)
- func GetRunningProcesses() ([]string, error)
- func HomeDir() string
- func Uname() (string, string)
- type CpuInfo
- type DiskInfo
- type MemoryStats
- type ShellInfo
- type SystemInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileSystemInfo ¶
GetFileSystemInfo retrieves information about the file system.
func GetMemoryChipInfo ¶
func GetRunningProcesses ¶
Types ¶
type CpuInfo ¶
type CpuInfo struct { CPU int32 VendorID string ModelName string Cores int32 Mhz float64 Usage []float64 }
CpuInfo holds information about a CPU.
func GetCpuInfo ¶
GetCpuInfo retrieves and returns information about the CPUs.
type DiskInfo ¶
type DiskInfo struct { Device string MountPoint string Filesystem string Total uint64 Used uint64 Free uint64 UsedPercent float64 }
func GetDiskInfo ¶
GetDiskInfo retrieves info about the disk usage.
type MemoryStats ¶
func GetMemoryStats ¶
func GetMemoryStats() (*MemoryStats, error)
GetMemoryStats retrieves info about the memory usage.
type ShellInfo ¶
func GetShellVersion ¶
GetShellVersion determines the current shell and retrieves its version.
type SystemInfo ¶
type SystemInfo struct { OS string Arch string OSInfo map[string]string ShellInfo *ShellInfo EnvVarNames string WorkDir string }
func CollectSystemInfo ¶
func CollectSystemInfo() (*SystemInfo, error)
Click to show internal directories.
Click to hide internal directories.