local

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: GPL-3.0 Imports: 11 Imported by: 2

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 (
	// 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{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.

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