controlplane

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(
	bpfModule *libbpfgo.Module,
	cgroupManager *container.Manager,
	enrichDisabled bool,
	procTree *process.ProcessTree,
	dataPresentor bufferdecoder.TypeDecoder,
) *Controller

NewController creates a new controller.

func (*Controller) Close added in v0.24.0

func (ctrl *Controller) Close() error

Close closes the controller.

func (*Controller) HasSignalHandler added in v0.24.0

func (ctrl *Controller) HasSignalHandler(signalID events.ID) bool

func (*Controller) Init added in v0.24.0

func (ctrl *Controller) Init() error

func (*Controller) ProcessSignal added in v0.24.0

func (ctrl *Controller) ProcessSignal(signal *Signal) error

ProcessSignal processes a signal from the control plane.

func (*Controller) RegisterSignal added in v0.24.0

func (ctrl *Controller) RegisterSignal(handlers map[events.ID]SignalHandler) error

RegisterSignal registers multiple signal handlers at once

func (*Controller) Run

func (ctrl *Controller) Run(ctx context.Context)

Run runs the controller.

func (*Controller) Start

func (ctrl *Controller) Start()

Start starts the controller.

func (*Controller) Stop

func (ctrl *Controller) Stop() error

Stop stops the controller.

type Signal added in v0.24.0

type Signal struct {
	ID   events.ID
	Data []trace.Argument
}

func (*Signal) Unmarshal added in v0.24.0

func (sig *Signal) Unmarshal(buffer []byte, dataPresentor bufferdecoder.TypeDecoder) error

type SignalHandler added in v0.24.0

type SignalHandler func(signalID events.ID, args []trace.Argument) error

SignalHandler defines a function that can process control plane signals

Jump to

Keyboard shortcuts

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