local

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: GPL-3.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// UUID is the device specific and session specific identifier.
	UUID = getID()

	// Version is the local machine's Operating System version information.
	Version = version()
)
View Source
var Device = (&local{&device.Machine{
	ID:       UUID,
	OS:       device.OS,
	PID:      uint32(os.Getpid()),
	Arch:     device.Arch,
	PPID:     uint32(os.Getppid()),
	Version:  Version,
	Network:  make(device.Network, 0),
	Elevated: isElevated(),
}}).init()

Device is the pointer to the local machine instance. This instance is loaded at runtime and is used for local data gathering and identification.

Functions

func Elevated

func Elevated() bool

Elevated will return true if the current process has elevated privileges, false otherwise.

This function is evaluated at runtime.

Types

This section is empty.

Jump to

Keyboard shortcuts

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