Documentation
¶
Index ¶
- Constants
- Variables
- func CreateNetworkAddress(ipAddress string, ipNetwork string, port uint32) *sensorAPI.NetworkAddress
- func EqualNetworkConnection(conn1 *sensorAPI.NetworkConnection, conn2 *sensorAPI.NetworkConnection) bool
- func EqualNetworkConnectionDontCompareCloseTimestamps(conn1 *sensorAPI.NetworkConnection, conn2 *sensorAPI.NetworkConnection) bool
- func IsActive(conn *sensorAPI.NetworkConnection) bool
- func LessNetworkAddress(addr1 *sensorAPI.NetworkAddress, addr2 *sensorAPI.NetworkAddress) bool
- func LessNetworkConnection(conn1 *sensorAPI.NetworkConnection, conn2 *sensorAPI.NetworkConnection) bool
- func SortConnections(connections []*sensorAPI.NetworkConnection)
- func SortEndpoints(endpoints []EndpointInfo)
- type EndpointInfo
- type ExternalIpsConfig
- type ListenAddress
- type NetworkConfig
- type NetworkConnectionBatch
- type ProcessInfo
- type ProcessLineage
- type ProcessOriginator
- type RuntimeConfig
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 ¶
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 ProcessLineage ¶
type ProcessOriginator ¶
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)
Click to show internal directories.
Click to hide internal directories.