socketenricher

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package socketenricher creates an eBPF map exposing processes owning each socket.

This makes it possible for network gadgets to access that information and display it directly from the BPF code. Example of such code in the dns and sni gadgets.

Index

Constants

View Source
const (
	OperatorName = "SocketEnricher"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SocketEnricher

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

func (*SocketEnricher) CanOperateOn

func (s *SocketEnricher) CanOperateOn(gadget gadgets.GadgetDesc) bool

func (*SocketEnricher) Close

func (s *SocketEnricher) Close() error

func (*SocketEnricher) Dependencies

func (s *SocketEnricher) Dependencies() []string

func (*SocketEnricher) Description

func (s *SocketEnricher) Description() string

func (*SocketEnricher) GlobalParamDescs

func (s *SocketEnricher) GlobalParamDescs() params.ParamDescs

func (*SocketEnricher) GlobalParams added in v0.27.0

func (s *SocketEnricher) GlobalParams() api.Params

func (*SocketEnricher) Init

func (s *SocketEnricher) Init(params *params.Params) error

func (*SocketEnricher) InstanceParams added in v0.27.0

func (s *SocketEnricher) InstanceParams() api.Params

func (*SocketEnricher) Instantiate

func (s *SocketEnricher) Instantiate(gadgetCtx operators.GadgetContext, gadgetInstance any, params *params.Params) (operators.OperatorInstance, error)

func (*SocketEnricher) InstantiateDataOperator added in v0.27.0

func (s *SocketEnricher) InstantiateDataOperator(gadgetCtx operators.GadgetContext, instanceParamValues api.ParamValues) (operators.DataOperatorInstance, error)

func (*SocketEnricher) Name

func (s *SocketEnricher) Name() string

func (*SocketEnricher) ParamDescs

func (s *SocketEnricher) ParamDescs() params.ParamDescs

func (*SocketEnricher) Priority added in v0.27.0

func (s *SocketEnricher) Priority() int

type SocketEnricherInstance

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

func (*SocketEnricherInstance) EnrichEvent

func (i *SocketEnricherInstance) EnrichEvent(ev any) error

func (*SocketEnricherInstance) Name

func (i *SocketEnricherInstance) Name() string

func (*SocketEnricherInstance) PostGadgetRun

func (i *SocketEnricherInstance) PostGadgetRun() error

func (*SocketEnricherInstance) PreGadgetRun

func (i *SocketEnricherInstance) PreGadgetRun() error

func (*SocketEnricherInstance) PreStart added in v0.27.0

func (i *SocketEnricherInstance) PreStart(gadgetCtx operators.GadgetContext) error

func (*SocketEnricherInstance) SetSocketEnricherMap added in v0.27.0

func (i *SocketEnricherInstance) SetSocketEnricherMap(m *ebpf.Map)

func (*SocketEnricherInstance) Start added in v0.27.0

func (*SocketEnricherInstance) Stop added in v0.27.0

type SocketEnricherInterface

type SocketEnricherInterface interface {
	SetSocketEnricherMap(*ebpf.Map)
}

Jump to

Keyboard shortcuts

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