os.base
Fields
ID | TYPE | DESCRIPTION |
---|---|---|
machine | machine | |
name | string | Pretty Hostname on macOS/Linux or device name on Windows |
env | map[string]string | ENV variable contents |
path | []string | PATH variable contents |
uptime | time | Current uptime |
updates | []os.update | List of available OS updates |
rebootpending | bool | Whether a reboot is pending |
hostname | string | Hostname for this OS |
groups | groups | User groups |
users | users | Users |