Documentation ¶
Overview ¶
Package drivertype implements all the driver type specific logic.
Index ¶
Constants ¶
View Source
const KernelDirEnv = "KERNELDIR"
KernelDirEnv is the env variable set to kernel headers extraction paths.
View Source
const TypeBpf = "ebpf"
TypeBpf is the string for the bpf driver type.
View Source
const (
// TypeKmod is the string for the bpf driver type.
TypeKmod = "kmod"
)
View Source
const TypeModernBpf = "modern_ebpf"
TypeModernBpf is the string for the bpf driver type.
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.