types

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PidParam    = "pid"
	FamilyParam = "family"
)

Variables

View Source
var SortByDefault = []string{"-sent", "-recv"}

Functions

func GetColumns added in v0.11.0

func GetColumns() *columns.Columns[Stats]

func ParseFilterByFamily

func ParseFilterByFamily(family string) (int32, error)

Types

type Stats

type Stats struct {
	eventtypes.CommonData
	eventtypes.WithMountNsID

	Pid       int32  `json:"pid,omitempty" column:"pid,template:pid"`
	Comm      string `json:"comm,omitempty" column:"comm,template:comm"`
	IPVersion int    `json:"ipversion,omitempty" column:"ip,template:ipversion"`

	SrcEndpoint eventtypes.L4Endpoint `json:"src,omitempty" column:"src"`
	DstEndpoint eventtypes.L4Endpoint `json:"dst,omitempty" column:"dst"`

	Sent     uint64 `json:"sent,omitempty" column:"sent,order:1002"`
	Received uint64 `json:"received,omitempty" column:"recv,order:1003"`
}

Stats represents the operations performed on a single file

func (*Stats) GetEndpoints added in v0.18.1

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

Jump to

Keyboard shortcuts

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