gadgets

package
v0.11.0-rc Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 5 Imported by: 8

Documentation

Index

Constants

View Source
const (
	PinPath = "/sys/fs/bpf/gadget"

	// The Trace custom resource is preferably in the "gadget" namespace
	TraceDefaultNamespace = "gadget"

	PerfBufferPages = 64
)

Variables

This section is empty.

Functions

func CloseLink(l link.Link) link.Link

CloseLink closes l if it's not nil and returns nil

func FromCString added in v0.11.0

func FromCString(in []byte) string

func FromCStringN added in v0.11.0

func FromCStringN(in []byte, length int) string

func Htonl added in v0.11.0

func Htonl(hl uint32) uint32

func Htons added in v0.11.0

func Htons(hs uint16) uint16

func IPStringFromBytes added in v0.11.0

func IPStringFromBytes(ipBytes [16]byte, ipType int) string

Types

type DataEnricher

type DataEnricher interface {
	Enrich(event *types.CommonData, mountnsid uint64)
}

DataEnricher is used to enrich events with Kubernetes information, like node, namespace, pod name and container name.

Jump to

Keyboard shortcuts

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