procscan

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowedCPUs

func AllowedCPUs(pid int) (string, error)

Types

type CPUConstraint

type CPUConstraint struct {
	PID         int
	StartTime   uint64
	Exe         string
	AllowedCPUs string
}

func ScanUserCPUConstraints

func ScanUserCPUConstraints(uid int) ([]CPUConstraint, error)

type GameProcess

type GameProcess struct {
	PID       int
	StartTime uint64
	Exe       string
	GameID    string
	IDSource  string
}

type Scanner

type Scanner struct {
	UID int
	// contains filtered or unexported fields
}

func NewScanner

func NewScanner(uid int, envKeys, exeAllowlist, ignoreExe []string) *Scanner

func (*Scanner) Scan

func (s *Scanner) Scan() (map[string][]GameProcess, error)

Jump to

Keyboard shortcuts

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