process

package
v0.0.94 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 6 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseProcesses

func CloseProcesses(predicate func(process *ps.Process) bool, skipPids map[int32]struct{})

CloseProcesses part

func FindProcesses

func FindProcesses(predicate func(process *ps.Process) bool) map[int32]struct{}

FindProcesses finds chrome process running on host

func IsChromeProcess

func IsChromeProcess(process *ps.Process) bool

IsChromeProcess checks if a process is chrome/chromium

func RunningInContainer added in v0.0.81

func RunningInContainer() (bool, string)

RunningInContainer checks if the process is running in a docker container and returns true if it is. reference: https://www.baeldung.com/linux/is-process-running-inside-container

Types

This section is empty.

Jump to

Keyboard shortcuts

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