local

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package local contains many functions and variables that contain information about the local device.

Index

Constants

This section is empty.

Variables

View Source
var Device = (&local{Machine: device.Machine{
	ID:           UUID,
	PID:          uint32(os.Getpid()),
	PPID:         getPPID(),
	User:         getUsername(),
	System:       systemType(),
	Version:      Version,
	Network:      make(device.Network, 0),
	Elevated:     isElevated(),
	Capabilities: tags.Enabled,
}}).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.

View Source
var UUID = getID()

UUID is the device specific and session specific identifier.

View Source
var Version = version()

Version is the local machine's Operating System version information.

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.

Directories

Path Synopsis
Package tags enables identification of the build tags and capabilities that are compiled into the current program.
Package tags enables identification of the build tags and capabilities that are compiled into the current program.

Jump to

Keyboard shortcuts

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