Documentation
¶
Overview ¶
Package drivertype implements all the driver type specific logic.
Index ¶
Constants ¶
View Source
const ( // TypeKmod is the string for the kernel module driver type. TypeKmod = "kmod" // TypeModernBpf is the string for the modern bpf driver type. TypeModernBpf = "modern_ebpf" // TypeBpf is the string for the bpf driver type. TypeBpf = "ebpf" )
View Source
const KernelDirEnv = "KERNELDIR"
KernelDirEnv is the env variable set to kernel headers extraction paths.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DriverType ¶
type DriverType interface {
fmt.Stringer
Cleanup(printer *output.Printer, driverName string) error
Load(printer *output.Printer, src, driverName string, fallback bool) error
Extension() string
HasArtifacts() bool
ToOutput(destPath string) cmd.OutputOptions
Supported(kr kernelrelease.KernelRelease) bool
}
DriverType is the interface that wraps driver types.
func Parse ¶
func Parse(driverType string) (DriverType, error)
Parse parses a driver type string and returns the corresponding DriverType object or an error.
Click to show internal directories.
Click to hide internal directories.