receiver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReceiverCiliumType = "receiver_cilium"
)

Variables

This section is empty.

Functions

func EbpfRecevierHandler

func EbpfRecevierHandler() *model.SpyEvent

Types

type CiliumReceiver

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

func (*CiliumReceiver) RcvChan

func (c *CiliumReceiver) RcvChan() chan *model.SpyEvent

func (*CiliumReceiver) Start

func (c *CiliumReceiver) Start() error

func (*CiliumReceiver) Stop

func (c *CiliumReceiver) Stop() error

type Config

type Config struct {
	SessionInfos []Session `mapstructure:"sessioninfo"`
}

func NewConfig

func NewConfig() *Config

type EventStats

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

func NewEventStats

func NewEventStats(sessions []Session) *EventStats

func (*EventStats) Add

func (e *EventStats) Add(name string, value int64)

func (*EventStats) GetStats

func (e *EventStats) GetStats() map[string]int64

type Receiver

type Receiver interface {
	Start() error
	Stop() error
	RcvChan() chan *model.SpyEvent
}

func NewCiliumReceiver

func NewCiliumReceiver(config any, detectorManager *detector.DetectorManager) Receiver

type Session

type Session struct {
	Class  string            `mapstructure:"class"`
	Name   string            `mapstructure:"name"`
	Params map[string]string `mapstructure:"params"`
}

Jump to

Keyboard shortcuts

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