Documentation
¶
Overview ¶
Package sysinfo is the RemoHop sysinfo service: host handler, client API and CLI.
It answers "what is this machine?" in one request, so an agent or a person can orient themselves on a remote host before running anything else.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶
type Info struct {
Hostname string `json:"hostname"`
OS string `json:"os"`
Arch string `json:"arch"`
DistroName string `json:"distro_name"`
DistroVersion string `json:"distro_version"`
Kernel string `json:"kernel"`
CPUModel string `json:"cpu_model"`
CPUCores int `json:"cpu_cores"`
MemTotalBytes uint64 `json:"mem_total_bytes"`
MemAvailBytes uint64 `json:"mem_available_bytes"`
UptimeSeconds int64 `json:"uptime_seconds"`
LoadAverage [3]float64 `json:"load_average"`
User string `json:"user"`
UID string `json:"uid"`
Home string `json:"home"`
Shell string `json:"shell"`
Cwd string `json:"cwd"`
LocalTime string `json:"local_time"`
Timezone string `json:"timezone"`
RootTotalBytes uint64 `json:"root_total_bytes"`
RootFreeBytes uint64 `json:"root_free_bytes"`
Display bool `json:"display"`
RemoHopVersion string `json:"remohop_version"`
}
Info describes the machine a host runs on. Fields the platform cannot supply are left zero rather than guessed: the document has the same shape everywhere so agents can parse it without per-OS special cases.