Documentation ¶
Overview ¶
Package host provides ways to access the host filesystem.
Inspektor Gadget can run either in the host or in a container. When running in a container, the host filesystem must be available in a specific directory.
Package host provides ways to access the host filesystem.
Inspektor Gadget can run either in the host or in a container. When running in a container, the host filesystem must be available in a specific directory.
Package host provides ways to access the host filesystem.
Inspektor Gadget can run either in the host or in a container. When running in a container, the host filesystem must be available in a specific directory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( HostRoot string HostProcFs string )
Functions ¶
func GetProcCmdline ¶
func GetProcComm ¶
func IsHostNetNs ¶ added in v0.18.0
IsHostNetNs returns true if the current process is running in the host network namespace
func IsHostPidNs ¶ added in v0.18.0
IsHostPidNs returns true if the current process is running in the host PID namespace
Types ¶
type Config ¶ added in v0.19.0
type Config struct { // AutoMountFilesystems will automatically mount bpffs, debugfs and // tracefs if they are not already mounted. // // This is useful for some environments where those filesystems are not // mounted by default on the host, such as: // - minikube with the Docker driver // - Docker Desktop with WSL2 // - Talos Linux AutoMountFilesystems bool }