drivertype

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

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

func GetTypes

func GetTypes() []string

GetTypes return the list of supported driver types.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL