watcher

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 13 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 *pipe.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)

Jump to

Keyboard shortcuts

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