events

package
v0.2.366 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnrichedEvent added in v0.2.354

type EnrichedEvent struct {
	EventType   utils.EventType
	Event       utils.K8sEvent
	Timestamp   time.Time
	ContainerID string
	ProcessTree apitypes.Process
	PID         uint32
	PPID        uint32
}

func NewEnrichedEvent added in v0.2.354

func NewEnrichedEvent(eventType utils.EventType, event utils.K8sEvent, timestamp time.Time, containerID string, processTree apitypes.Process) *EnrichedEvent

NewEnrichedEvent creates a new enriched event

type ExecEvent

type ExecEvent struct {
	tracerexectype.Event
	// contains filtered or unexported fields
}

func (*ExecEvent) GetExtra

func (event *ExecEvent) GetExtra() interface{}

func (*ExecEvent) GetPID

func (event *ExecEvent) GetPID() uint64

func (*ExecEvent) SetExtra

func (event *ExecEvent) SetExtra(extra interface{})

type OpenEvent

type OpenEvent struct {
	traceropentype.Event
	// contains filtered or unexported fields
}

func (*OpenEvent) GetExtra

func (event *OpenEvent) GetExtra() interface{}

func (*OpenEvent) GetPID

func (event *OpenEvent) GetPID() uint64

func (*OpenEvent) SetExtra

func (event *OpenEvent) SetExtra(extra interface{})

type ProcfsEvent added in v0.2.354

type ProcfsEvent struct {
	Type        types.EventType `json:"type"`
	Timestamp   time.Time       `json:"timestamp"`
	PID         uint32          `json:"pid"`
	PPID        uint32          `json:"ppid"`
	Comm        string          `json:"comm"`
	Pcomm       string          `json:"pcomm"`
	Cmdline     string          `json:"cmdline"`
	Uid         *uint32         `json:"uid"`
	Gid         *uint32         `json:"gid"`
	Cwd         string          `json:"cwd"`
	Path        string          `json:"path"`
	StartTimeNs uint64          `json:"start_time_ns"`
	ContainerID string          `json:"container_id"`
	HostPID     int             `json:"host_pid"`
	HostPPID    int             `json:"host_ppid"`
}

ProcfsEvent represents a procfs event that can be processed by the ordered event queue

func (*ProcfsEvent) GetNamespace added in v0.2.354

func (pe *ProcfsEvent) GetNamespace() string

GetNamespace returns the namespace (empty for procfs events)

func (*ProcfsEvent) GetPod added in v0.2.354

func (pe *ProcfsEvent) GetPod() string

GetPod returns the pod name (empty for procfs events)

func (*ProcfsEvent) GetTimestamp added in v0.2.354

func (pe *ProcfsEvent) GetTimestamp() time.Time

GetTimestamp returns the event timestamp

func (*ProcfsEvent) GetType added in v0.2.354

func (pe *ProcfsEvent) GetType() types.EventType

GetType returns the event type

Jump to

Keyboard shortcuts

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