sysinfo

package
v3.1.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetID

func GetID() string

func GetID2

func GetID2() (string, error)

Types

type SystemInfo

type SystemInfo struct {
	ID           string
	Name         string `json:"name"`
	Version      string `json:"version"`
	Hostname     string `json:"hostname"`
	Memory       uint64 `json:"memory"`
	TotalMemory  uint64 `json:"total_memory"`
	NumCPU       int    `json:"num_cpu"`
	OS           string `json:"os"`
	Architecture string `json:"architecture"`
	GoVersion    string `json:"go_version"`
	AgentVersion string `json:"agent_version"`
	FreeSpace    uint64 `json:"free_space"`
}

SystemInfo returns the operating system details

func GetSystemInfo

func GetSystemInfo(root string) SystemInfo

GetSystemInfo returns the SystemInfo details

Jump to

Keyboard shortcuts

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