types

package
v0.0.0-...-ffbd100 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NilTimestamp = "<nil>"
)

Variables

View Source
var (
	NotNilTimestamp = timestamppb.New(time.Date(2025, 1, 1, 0, 0, 0, 0, time.UTC))
)

Functions

func CreateNetworkAddress

func CreateNetworkAddress(ipAddress string, ipNetwork string, port uint32) *sensorAPI.NetworkAddress

func EqualNetworkConnection

func EqualNetworkConnection(conn1 *sensorAPI.NetworkConnection, conn2 *sensorAPI.NetworkConnection) bool

Equal is not called directly because it returns false when close timestamps have different non-nil values.

func EqualNetworkConnectionDontCompareCloseTimestamps

func EqualNetworkConnectionDontCompareCloseTimestamps(conn1 *sensorAPI.NetworkConnection, conn2 *sensorAPI.NetworkConnection) bool

func IsActive

func IsActive(conn *sensorAPI.NetworkConnection) bool

func LessNetworkAddress

func LessNetworkAddress(addr1 *sensorAPI.NetworkAddress, addr2 *sensorAPI.NetworkAddress) bool

func LessNetworkConnection

func LessNetworkConnection(conn1 *sensorAPI.NetworkConnection, conn2 *sensorAPI.NetworkConnection) bool

func SortConnections

func SortConnections(connections []*sensorAPI.NetworkConnection)

func SortEndpoints

func SortEndpoints(endpoints []EndpointInfo)

Types

type EndpointInfo

type EndpointInfo struct {
	Protocol       string
	Address        ListenAddress
	CloseTimestamp string
	Originator     ProcessOriginator
}

func (*EndpointInfo) Equal

func (n *EndpointInfo) Equal(other EndpointInfo) bool

func (*EndpointInfo) IsActive

func (n *EndpointInfo) IsActive() bool

func (*EndpointInfo) Less

func (n *EndpointInfo) Less(other EndpointInfo) bool

type ExternalIpsConfig

type ExternalIpsConfig struct {
	Enabled string `yaml:"enabled"`
}

type ListenAddress

type ListenAddress struct {
	AddressData string
	Port        int
	IpNetwork   string
}

func (*ListenAddress) Equal

func (l *ListenAddress) Equal(other ListenAddress) bool

func (*ListenAddress) Less

func (l *ListenAddress) Less(other ListenAddress) bool

type NetworkConfig

type NetworkConfig struct {
	ExternalIps ExternalIpsConfig `yaml:"externalIps"`
}

type NetworkConnectionBatch

type NetworkConnectionBatch []*sensorAPI.NetworkConnection

type ProcessInfo

type ProcessInfo struct {
	Name    string
	ExePath string
	Uid     int
	Gid     int
	Pid     int
	Args    string
}

type ProcessLineage

type ProcessLineage struct {
	Name          string
	ExePath       string
	ParentUid     int
	ParentExePath string
}

type ProcessOriginator

type ProcessOriginator struct {
	ProcessName         string
	ProcessExecFilePath string
	ProcessArgs         string
}

func (*ProcessOriginator) Equal

func (p *ProcessOriginator) Equal(other ProcessOriginator) bool

func (*ProcessOriginator) Less

func (p *ProcessOriginator) Less(other ProcessOriginator) bool

type RuntimeConfig

type RuntimeConfig struct {
	Networking NetworkConfig `yaml:"networking"`
}

func (*RuntimeConfig) Equal

func (n *RuntimeConfig) Equal(other RuntimeConfig) bool

func (*RuntimeConfig) GetRuntimeConfigStr

func (n *RuntimeConfig) GetRuntimeConfigStr() (string, error)

Jump to

Keyboard shortcuts

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