watcher

package
v1.8.4-alpha Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Ready = EventType(iota)
	NewPort
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BPFWatchInfo

type BPFWatchInfo bpfWatchInfoT

type Event

type Event struct {
	Type    EventType
	Payload uint32 // this will be either port or pid
}

type EventType

type EventType int

type Watcher

type Watcher struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *beyla.Config, events chan<- Event) *Watcher

func (*Watcher) AddCloser

func (p *Watcher) AddCloser(c ...io.Closer)

func (*Watcher) BpfObjects

func (p *Watcher) BpfObjects() any

func (*Watcher) KProbes

func (p *Watcher) KProbes() map[string]ebpfcommon.FunctionPrograms

func (*Watcher) Load

func (p *Watcher) Load() (*ebpf.CollectionSpec, error)

func (*Watcher) Run

func (p *Watcher) Run(ctx context.Context)

func (*Watcher) SetupTailCalls added in v1.7.0

func (p *Watcher) SetupTailCalls()

func (*Watcher) Tracepoints added in v1.3.0

func (p *Watcher) Tracepoints() map[string]ebpfcommon.FunctionPrograms

Jump to

Keyboard shortcuts

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