utils

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const EnvIsSubProgramLoader = "PTCPDUMP-IS-SUB-PROGRAM-LOADER"

Variables

View Source
var PathProcMounts = "/proc/mounts"

Functions

func GetCgroupV2RootDir

func GetCgroupV2RootDir() (string, error)

func GetMountNamespaceFromPid added in v0.10.0

func GetMountNamespaceFromPid(pid int) int64

func GetNetworkNamespaceFromPid added in v0.10.0

func GetNetworkNamespaceFromPid(pid int) int64

func GetPidNamespaceFromPid added in v0.13.0

func GetPidNamespaceFromPid(pid int) int64

func GetUniqInts added in v0.18.0

func GetUniqInts(items []int) []int

func GoString added in v0.10.0

func GoString(cstring []int8) string

func StartSubProcess

func StartSubProcess(ctx context.Context, Args []string) error

func StartSubProcessLoader

func StartSubProcessLoader(ctx context.Context, program string, subProgramArgs []string) (int, <-chan struct{}, error)

func UnwrapErr added in v0.18.0

func UnwrapErr(err error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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