procfs

package
v0.0.0-...-17244d7 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvVars

type EnvVars []string

func (EnvVars) Get

func (vars EnvVars) Get(key string) string

func (EnvVars) Lookup

func (vars EnvVars) Lookup(key string) (string, bool)

type Process

type Process uint

func (Process) Cmdline

func (p Process) Cmdline() ([]string, error)

func (Process) Cwd

func (p Process) Cwd() (string, error)

func (Process) Environ

func (p Process) Environ() (EnvVars, error)

func (Process) Exe

func (p Process) Exe() (string, error)

func (Process) Exist

func (p Process) Exist() bool

func (Process) Status

func (p Process) Status() (Status, error)

type Status

type Status []*kv.Pair

func (Status) PPid

func (st Status) PPid() (uint, error)

func (Status) Uids

func (st Status) Uids() ([]uint, error)

type StatusFieldNotFoundErr

type StatusFieldNotFoundErr struct {
	Field string
}

func (StatusFieldNotFoundErr) Error

func (err StatusFieldNotFoundErr) Error() string

Jump to

Keyboard shortcuts

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