drivertype

package
v0.7.0-beta4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package drivertype implements all the driver type specific logic.

Index

Constants

View Source
const TypeAuto = "auto"

TypeAuto enables a smart automatic driver selection logic instead of using a fixed driver type.

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
	Build(ctx context.Context, printer *output.Printer, kr kernelrelease.KernelRelease,
		driverName, driverVersion string, env map[string]string) (string, error)
}

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