package
0.0.0-20241102040927-43901cc2fa33
Repository: https://github.com/longhorn/go-common-libs.git
Documentation: pkg.go.dev
# Functions
FindProcessByCmdline finds the processes with matching cmdline.
FindProcessByName finds a process by name and returns the process.
GetHostNamespaceDirectory returns the namespace directory for the host namespace.
GetHostNamespacePID returns the PID of the host namespace.
GetNamespaceDirectory returns the namespace directory for the given PID.
GetProcessAncestorNamespaceDirectory returns the namespace directory for the ancestor of the given process.
GetProcessNamespaceDirectory returns the namespace directory for the given process.
GetProcessPIDs returns the PIDs for the given process name.
No description provided by the author
# Structs
ProcessFinder is a struct to find process information.