Documentation
¶
Index ¶
- func DetectLibBPF()
- func ExecBpftool(bpftoolPath string, args []string)
- func FindBpftool() (string, error)
- func IsVerbose(cmd *cobra.Command) bool
- func ParseMapType(typeStr string) ebpf.MapType
- func ResolveCwdPath(path string) (string, error)
- func ResolveProjectPath(relativePath string) (string, error)
- func WithProjectRoot(fn func() error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectLibBPF ¶
func DetectLibBPF()
DetectLibBPF checks if libbpf-dev is installed on the system Exits with fatal error if not found Can be skipped with --ignore-libbpf-detection flag
func ExecBpftool ¶
ExecBpftool executes bpftool with the given arguments Pipes stdout, stderr, and stdin through to the current process Exits with the same exit code as bpftool
func FindBpftool ¶
FindBpftool locates the bpftool binary on the system Returns the path to bpftool or an error if not found
func ParseMapType ¶
ParseMapType converts a string map type name to ebpf.MapType
func ResolveCwdPath ¶
ResolveCwdPath converts a path to absolute path relative to current working directory If path is already absolute, returns it as-is
func ResolveProjectPath ¶
ResolveProjectPath converts a path to absolute path relative to project root Returns absolute path from project root
func WithProjectRoot ¶
WithProjectRoot executes a function with the working directory changed to project root Automatically restores the original working directory after execution
Types ¶
This section is empty.