utils

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SystemProcessName      string = "system_processes"
	SystemProcessNamespace string = "system"
)

Variables

This section is empty.

Functions

func CreateTempDir

func CreateTempDir() (dir string, err error)

func CreateTempFile

func CreateTempFile(contents string) (filename string, reterr error)

func DetermineHostByteOrder

func DetermineHostByteOrder() binary.ByteOrder

func GetCgroupIDFromPath

func GetCgroupIDFromPath(byteOrder binary.ByteOrder, path string) (uint64, error)

func GetPathFromPID

func GetPathFromPID(searchPath string, pid uint64) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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