sitrep

package
v0.0.0-...-2e7ada4 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Environ

func Environ() string

func Processes

func Processes() string

func SysInfo

func SysInfo() string

Types

type Host

type Host struct {
	Hostname string
	Procs    uint64
	OS       string
	Platform string
	Family   string
	Version  string
	Kernel   string
}

func HostInfo

func HostInfo() (Host, error)

func (*Host) String

func (h *Host) String() string

type Interface

type Interface struct {
	Name      string
	Addresses []string
}

func NetworkInfo

func NetworkInfo() ([]Interface, error)

NetworkInfo returns the list of interface for the current host

func (*Interface) String

func (i *Interface) String() string

type Process

type Process struct {
	PID     int32
	PPID    int32
	Name    string
	Owner   string
	Exe     string
	Cmdline string
}

func ProcessInfo

func ProcessInfo() ([]Process, error)

ProcessInfo returns the list of interface for the current host

func (*Process) String

func (p *Process) String() string

type User

type User struct {
	Username string
	Uid      string
	Gid      string
	Homedir  string
}

func UserInfo

func UserInfo() (User, error)

UserInfo returns data about the current user like their UID/GID and home directory

func (*User) String

func (u *User) String() string

Jump to

Keyboard shortcuts

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