process

package
v1.0.107 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

View Source
const JavaVersionConst = "JAVA_VERSION"
View Source
const NodeVersionConst = "NODE_VERSION"
View Source
const PythonVersionConst = "PYTHON_VERSION"

Variables

This section is empty.

Functions

This section is empty.

Types

type Details

type Details struct {
	ProcessID    int
	ExeName      string
	CmdLine      string
	Environments ProcessEnvs
}

func FindAllProcesses

func FindAllProcesses(predicate func(string) bool) ([]Details, error)

Find all processes in the system. The function accepts a predicate function that can be used to filter the results.

func GetPidDetails

func GetPidDetails(pid int) Details

func (*Details) GetDetailedEnvsValue added in v1.0.93

func (d *Details) GetDetailedEnvsValue(key string) (string, bool)

func (*Details) GetOverwriteEnvsValue added in v1.0.93

func (d *Details) GetOverwriteEnvsValue(key string) (string, bool)

type ProcessEnvs added in v1.0.93

type ProcessEnvs struct {
	DetailedEnvs map[string]string
	// OverwriteEnvs only contains environment variables that Odigos is using for auto-instrumentation and may need to be overwritten
	OverwriteEnvs map[string]string
}

Jump to

Keyboard shortcuts

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