events

package
v0.0.0-...-d2c4983 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package events handles process events

Package events handles process events

Package events handles process events

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Consumer

func Consumer() sprobe.EventConsumerHandler

Consumer returns an event consumer to handle events from the runtime security module

func Init

func Init() error

Init initializes the events package

func Initialized

func Initialized() bool

Initialized returns true if Init() has been called successfully

func RegisterHandler

func RegisterHandler(handler ProcessEventHandler)

RegisterHandler registers a handler function for getting process events

func UnregisterHandler

func UnregisterHandler(handler ProcessEventHandler)

UnregisterHandler unregisters a handler function for getting process events

Types

type NetworkConsumer

type NetworkConsumer struct{}

NetworkConsumer describes a process monitoring object

func NewNetworkConsumer

func NewNetworkConsumer(evm *eventmonitor.EventMonitor) (*NetworkConsumer, error)

NewNetworkConsumer returns a new NetworkConsumer instance

func (*NetworkConsumer) ID

func (n *NetworkConsumer) ID() string

ID returns id for process monitor

func (*NetworkConsumer) Start

func (n *NetworkConsumer) Start() error

Start starts the event consumer (noop)

func (*NetworkConsumer) Stop

func (n *NetworkConsumer) Stop()

Stop stops the event consumer (noop)

type Process

type Process struct {
	Pid         uint32
	Tags        []*intern.Value
	ContainerID *intern.Value
	StartTime   int64
	Expiry      int64
}

Process is a process

type ProcessEventHandler

type ProcessEventHandler interface {
	HandleProcessEvent(*Process)
}

ProcessEventHandler represents a handler function triggered for process events

Jump to

Keyboard shortcuts

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