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
- type SocketEnricher
- func (s *SocketEnricher) CanOperateOn(gadget gadgets.GadgetDesc) bool
- func (s *SocketEnricher) Close() error
- func (s *SocketEnricher) Dependencies() []string
- func (s *SocketEnricher) Description() string
- func (s *SocketEnricher) GlobalParamDescs() params.ParamDescs
- func (s *SocketEnricher) GlobalParams() api.Params
- func (s *SocketEnricher) Init(params *params.Params) error
- func (s *SocketEnricher) InstanceParams() api.Params
- func (s *SocketEnricher) Instantiate(gadgetCtx operators.GadgetContext, gadgetInstance any, params *params.Params) (operators.OperatorInstance, error)
- func (s *SocketEnricher) InstantiateDataOperator(gadgetCtx operators.GadgetContext, instanceParamValues api.ParamValues) (operators.DataOperatorInstance, error)
- func (s *SocketEnricher) Name() string
- func (s *SocketEnricher) ParamDescs() params.ParamDescs
- func (s *SocketEnricher) Priority() int
- type SocketEnricherInstance
- func (i *SocketEnricherInstance) EnrichEvent(ev any) error
- func (i *SocketEnricherInstance) Name() string
- func (i *SocketEnricherInstance) PostGadgetRun() error
- func (i *SocketEnricherInstance) PreGadgetRun() error
- func (i *SocketEnricherInstance) PreStart(gadgetCtx operators.GadgetContext) error
- func (i *SocketEnricherInstance) SetSocketEnricherMap(m *ebpf.Map)
- func (i *SocketEnricherInstance) Start(gadgetCtx operators.GadgetContext) error
- func (i *SocketEnricherInstance) Stop(gadgetCtx operators.GadgetContext) error
- type SocketEnricherInterface
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) 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 (i *SocketEnricherInstance) Start(gadgetCtx operators.GadgetContext) error
func (*SocketEnricherInstance) Stop ¶ added in v0.27.0
func (i *SocketEnricherInstance) Stop(gadgetCtx operators.GadgetContext) error
type SocketEnricherInterface ¶
Click to show internal directories.
Click to hide internal directories.