system

package
v0.0.0-...-ac74c47 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CPU

func CPU() string

CPU returns the number of CPUs in the system as reported by nproc.

func Hostname

func Hostname() string

Hostname returns the machine's host name.

func ID

func ID() string

ID returns the ID of the system.

func IPFromInterface

func IPFromInterface(name string) (net.IP, error)

IPFromInterface returns the first address found on the interface named name.

func IPs

func IPs() []net.IP

IPs returns the IP addresses found on the interfaces.

func Image

func Image() string

Image returns the systems image (PRETTY_NAME from /etc/os-release)

func Kernel

func Kernel() string

Kernel returns kernel version.

func Memory

func Memory() string

Memory returns the amount of memory in the system.

func Pid

func Pid() string

Pid returns the PID space / 4.

func Version

func Version() string

Version returns the version of systemd.

Types

This section is empty.

Jump to

Keyboard shortcuts

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