Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProtocolUnknown = Protocol(0) ICMP = Protocol(1) TCP = Protocol(6) UDP = Protocol(17) SCTP = Protocol(132) )
View Source
const ( TypeUnknown = Type(iota) TypeStart TypeEnd TypeDrop )
View Source
const ( DirectionUnknown = Direction(iota) Ingress Egress )
View Source
const ZoneID = 0x1BD0
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnTracker ¶
type ConnTracker interface { // Start begins tracking connections by listening for conntrack events. Start(bool) error // Stop stops the connection tracking. Stop() // Close stops listening for events and cleans up resources Close() error }
ConnTracker defines the interface for connection tracking functionality
type EventFields ¶
type EventFields struct { FlowID uuid.UUID Type Type RuleID []byte Direction Direction Protocol Protocol SourceIP netip.Addr DestIP netip.Addr SourceResourceID []byte DestResourceID []byte SourcePort uint16 DestPort uint16 ICMPType uint8 ICMPCode uint8 RxPackets uint64 TxPackets uint64 RxBytes uint64 TxBytes uint64 }
type FlowConfig ¶
type FlowLogger ¶
type FlowLogger interface { // StoreEvent stores a flow event StoreEvent(flowEvent EventFields) // GetEvents returns all stored events GetEvents() []*Event // DeleteEvents deletes events from the store DeleteEvents([]uuid.UUID) // Close closes the logger Close() // Enable enables the flow logger receiver Enable() // UpdateConfig updates the flow manager configuration UpdateConfig(dnsCollection, exitNodeCollection bool) }
type FlowManager ¶
type FlowManager interface { // FlowConfig handles network map updates Update(update *FlowConfig) error // Close closes the manager Close() // GetLogger returns a flow logger GetLogger() FlowLogger }
type IFaceMapper ¶
IFaceMapper provides interface to check if we're using userspace WireGuard
Click to show internal directories.
Click to hide internal directories.