Documentation
¶
Index ¶
- type ContainerReceiver
- type ContainerWatcher
- type ContainerWatcherMock
- func (c ContainerWatcherMock) GetContainerCollection() *containercollection.ContainerCollection
- func (c ContainerWatcherMock) GetContainerSelector() *containercollection.ContainerSelector
- func (c ContainerWatcherMock) GetSocketEnricher() *socketenricher.SocketEnricher
- func (c ContainerWatcherMock) GetTracerCollection() *tracercollection.TracerCollection
- func (c ContainerWatcherMock) Ready() bool
- func (c ContainerWatcherMock) RegisterContainerReceiver(_ ContainerReceiver)
- func (c ContainerWatcherMock) RegisterCustomTracer(_ CustomTracer) error
- func (c ContainerWatcherMock) Start(_ context.Context) error
- func (c ContainerWatcherMock) Stop()
- func (c ContainerWatcherMock) UnregisterContainerReceiver(_ ContainerReceiver)
- func (c ContainerWatcherMock) UnregisterCustomTracer(_ CustomTracer) error
- type CustomTracer
- type CustomTracerMock
- type EnrichedEventReceiver
- type EventReceiver
- type ResultCallback
- type TaskBasedEnricher
- type TracerFactoryInterface
- type TracerInterface
- type TracerRegistrer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerReceiver ¶ added in v0.2.145
type ContainerReceiver interface {
ContainerCallback(notif containercollection.PubSubEvent)
}
type ContainerWatcher ¶
type ContainerWatcher interface {
Ready() bool
Start(ctx context.Context) error
Stop()
GetTracerCollection() *tracercollection.TracerCollection
GetContainerCollection() *containercollection.ContainerCollection
GetSocketEnricher() *socketenricher.SocketEnricher
GetContainerSelector() *containercollection.ContainerSelector
RegisterCustomTracer(tracer CustomTracer) error
UnregisterCustomTracer(tracer CustomTracer) error
RegisterContainerReceiver(receiver ContainerReceiver)
UnregisterContainerReceiver(receiver ContainerReceiver)
}
type ContainerWatcherMock ¶
type ContainerWatcherMock struct{}
func (ContainerWatcherMock) GetContainerCollection ¶ added in v0.2.145
func (c ContainerWatcherMock) GetContainerCollection() *containercollection.ContainerCollection
func (ContainerWatcherMock) GetContainerSelector ¶ added in v0.2.145
func (c ContainerWatcherMock) GetContainerSelector() *containercollection.ContainerSelector
func (ContainerWatcherMock) GetSocketEnricher ¶ added in v0.2.145
func (c ContainerWatcherMock) GetSocketEnricher() *socketenricher.SocketEnricher
func (ContainerWatcherMock) GetTracerCollection ¶ added in v0.2.145
func (c ContainerWatcherMock) GetTracerCollection() *tracercollection.TracerCollection
func (ContainerWatcherMock) Ready ¶
func (c ContainerWatcherMock) Ready() bool
func (ContainerWatcherMock) RegisterContainerReceiver ¶ added in v0.2.145
func (c ContainerWatcherMock) RegisterContainerReceiver(_ ContainerReceiver)
func (ContainerWatcherMock) RegisterCustomTracer ¶ added in v0.2.145
func (c ContainerWatcherMock) RegisterCustomTracer(_ CustomTracer) error
func (ContainerWatcherMock) Stop ¶
func (c ContainerWatcherMock) Stop()
func (ContainerWatcherMock) UnregisterContainerReceiver ¶ added in v0.2.145
func (c ContainerWatcherMock) UnregisterContainerReceiver(_ ContainerReceiver)
func (ContainerWatcherMock) UnregisterCustomTracer ¶ added in v0.2.145
func (c ContainerWatcherMock) UnregisterCustomTracer(_ CustomTracer) error
type CustomTracer ¶ added in v0.2.145
type CustomTracerMock ¶ added in v0.2.145
type CustomTracerMock struct{}
func (CustomTracerMock) Name ¶ added in v0.2.145
func (c CustomTracerMock) Name() string
func (CustomTracerMock) Start ¶ added in v0.2.145
func (c CustomTracerMock) Start() error
func (CustomTracerMock) Stop ¶ added in v0.2.145
func (c CustomTracerMock) Stop() error
type EnrichedEventReceiver ¶ added in v0.2.354
type EnrichedEventReceiver interface {
ReportEnrichedEvent(enrichedEvent *events.EnrichedEvent)
}
type EventReceiver ¶ added in v0.2.145
type TaskBasedEnricher ¶ added in v0.2.278
type TaskBasedEnricher interface {
SubmitEnrichmentTask(event utils.EnrichEvent, syscalls []uint64, callback ResultCallback, containerID string, processID uint32)
}
type TracerFactoryInterface ¶ added in v0.2.354
type TracerFactoryInterface interface {
CreateAllTracers(manager TracerRegistrer)
GetThirdPartyTracers() []CustomTracer
}
TracerFactoryInterface defines the interface for creating tracers
type TracerInterface ¶ added in v0.2.354
type TracerInterface interface {
// Start initializes and starts the tracer
Start(ctx context.Context) error
// Stop gracefully stops the tracer
Stop() error
// GetName returns the unique name of the tracer
GetName() string
// GetEventType returns the event type this tracer produces
GetEventType() utils.EventType
// IsEnabled checks if this tracer should be enabled based on configuration
IsEnabled(cfg interface{}) bool
}
TracerInterface defines the common interface for all eBPF tracers
type TracerRegistrer ¶ added in v0.2.354
type TracerRegistrer interface {
RegisterTracer(tracer TracerInterface)
}
TracerRegistrer defines the interface for registering tracers
Source Files
¶
Click to show internal directories.
Click to hide internal directories.