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 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