types

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetColumns

func GetColumns() *columns.Columns[Event]

Types

type Event

type Event struct {
	eventtypes.Event
	eventtypes.WithMountNsID
	eventtypes.WithNetNsID

	Pid  uint32 `json:"pid,omitempty" column:"pid,template:pid"`
	Tid  uint32 `json:"tid,omitempty" column:"tid,template:pid"`
	Comm string `json:"comm,omitempty" column:"comm,template:comm"`

	Uid uint32 `json:"uid" column:"uid,template:uid,hide"`
	Gid uint32 `json:"gid" column:"gid,template:gid,hide"`

	PktType string `json:"pktType,omitempty" column:"type,maxWidth:9"`
	Proto   string `json:"proto,omitempty" column:"proto,maxWidth:5"`
	Port    uint16 `json:"port,omitempty" column:"port,template:ipport"`

	/* Further information of pod where event occurs */
	PodHostIP string            `json:"podHostIP,omitempty" column:"podhostip,template:ipaddr,hide"`
	PodIP     string            `json:"podIP,omitempty" column:"podip,template:ipaddr,hide"`
	PodOwner  string            `json:"podOwner,omitempty" column:"podowner,hide"`
	PodLabels map[string]string `json:"podLabels,omitempty" column:"podlabels,hide"`

	DstEndpoint eventtypes.L3Endpoint `json:"dst,omitempty" column:"dst"`
}

func Base added in v0.13.0

func Base(ev eventtypes.Event) *Event

func (*Event) GetEndpoints added in v0.18.0

func (e *Event) GetEndpoints() []*eventtypes.L3Endpoint

func (*Event) SetLocalPodDetails added in v0.16.0

func (e *Event) SetLocalPodDetails(owner, hostIP, podIP string, labels map[string]string)

Jump to

Keyboard shortcuts

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