configMgmt

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SrcNone = iota
	SrcProgId
	SrcImage
	SrcFile
)
View Source
const (
	TcDirectionIngress = iota
	TcDirectionEgress
)
View Source
const (
	DefaultPath = "/run/bpfman-sock/bpfman.sock"
)
View Source
const (
	UnusedProgramId = 0
)

Variables

This section is empty.

Functions

func CalcMapPinPath

func CalcMapPinPath(programInfo *gobpfman.ProgramInfo, map_name string) (string, error)

func CreateConnection

func CreateConnection(ctx context.Context) (*grpc.ClientConn, error)

func RetrieveMapPinPath

func RetrieveMapPinPath(ctx context.Context, c gobpfman.BpfmanClient, progId uint, map_name string) (string, error)

Types

type ParameterData

type ParameterData struct {
	Iface      string
	Priority   int
	Direction  int
	CrdFlag    bool
	ProgId     uint
	MapOwnerId int
	// The bytecodesource type has to be encapsulated in a complete BytecodeLocation
	// because isBytecodeLocation_Location is not Public
	BytecodeSource *gobpfman.BytecodeLocation
	BytecodeSrc    int
}

func ParseParamData

func ParseParamData(progType ProgType, bytecodeFile string) (ParameterData, error)

type ProgType

type ProgType int
const (
	ProgTypeXdp ProgType = iota
	ProgTypeTc
	ProgTypeTracepoint
	ProgTypeKprobe
	ProgTypeUprobe
)

func (ProgType) String

func (s ProgType) String() string

Jump to

Keyboard shortcuts

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