UserInfo struct

UserInfo represents information about a user

Fields:

  • UID (string) - json:"uid"
  • GID (string) - json:"gid"
  • Username (string) - json:"username"
  • Name (string) - json:"name"
  • HomeDir (string) - json:"home_directory"
  • Shell (string) - json:"shell"

GroupInfo struct

GroupInfo represents information about a group

Fields:

  • GID (string) - json:"gid"
  • Name (string) - json:"name"

MachineType type

MachineType is the representation of the type of machine

Type Definition:

string

OSReleaseInfo struct

OSReleaseInfo is a struct that contains information about the OS release

Fields:

  • Name (string)
  • Version (string)
  • Codename (string)

Process struct

Process represents information about a process

Fields:

  • PID (int) - json:"pid"
  • Name (string) - json:"name"
  • State (string) - json:"state"
  • PPID (int) - json:"ppid"
  • Priority (int) - json:"priority"
  • Nice (int) - json:"nice"
  • Threads (int) - json:"threads"
  • UID (int) - json:"uid"
  • GID (int) - json:"gid"

SystemInfo struct

SystemInfo is a struct that contains information about the system

Fields:

  • OS (string)
  • Version (string)
  • Codename (string)
  • Arch (string)
  • MachineType (MachineType)

Timezone struct

Timezone represents a supported timezone

Fields:

  • Name (string) - json:"name"
  • Location (string) - json:"location"