Documentation ¶
Index ¶
Constants ¶
View Source
const ( POD = "pod" SVC = "service" OUTBOUND = "outbound" )
View Source
const ( KAFKA = "kafka" // LOG_CONTEXT_KEY should match REDIS = "redis" )
View Source
const ( ADD = "ADD" UPDATE = "UPDATE" DELETE = "DELETE" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddressPair ¶ added in v0.10.0
type Aggregator ¶
type Aggregator struct {
// contains filtered or unexported fields
}
func NewAggregator ¶
func (*Aggregator) AdvertiseDebugData ¶ added in v0.10.0
func (a *Aggregator) AdvertiseDebugData()
func (*Aggregator) Run ¶
func (a *Aggregator) Run()
type ClusterInfo ¶
type ClusterInfo struct { PodIPToPodUid map[string]types.UID `json:"podIPToPodUid"` ServiceIPToServiceUid map[string]types.UID `json:"serviceIPToServiceUid"` // Pid -> SocketMap // pid -> fd -> {saddr, sport, daddr, dport} SocketMaps []*SocketMap // index symbolizes pid // contains filtered or unexported fields }
func (*ClusterInfo) SignalSocketMapCreation ¶ added in v0.10.0
func (ci *ClusterInfo) SignalSocketMapCreation(pid uint32)
type FrameArrival ¶ added in v0.3.0
type KafkaMessage ¶ added in v0.10.0
type SockInfo ¶
type SockInfo struct { Pid uint32 `json:"pid"` Fd uint64 `json:"fd"` Saddr string `json:"saddr"` Sport uint16 `json:"sport"` Daddr string `json:"daddr"` Dport uint16 `json:"dport"` }
We need to keep track of the following in order to build find relationships between connections and pods/services
type SocketLine ¶
type SocketLine struct { Values []*TimestampedSocket // contains filtered or unexported fields }
func NewSocketLine ¶
func (*SocketLine) AddValue ¶
func (nl *SocketLine) AddValue(timestamp uint64, sockInfo *SockInfo)
func (*SocketLine) ClearAll ¶ added in v0.10.0
func (nl *SocketLine) ClearAll()
clears all socket history
func (*SocketLine) DeleteUnused ¶
func (nl *SocketLine) DeleteUnused()
type SocketMap ¶
type SocketMap struct { M map[uint64]*SocketLine `json:"fdToSockLine"` // fd -> SockLine // contains filtered or unexported fields }
type SocketMap
func (*SocketMap) ProcessSocketLineCreationRequests ¶ added in v0.10.0
func (sm *SocketMap) ProcessSocketLineCreationRequests()
only one worker can create socket lines for a particular process(socketmap)
type TimestampedSocket ¶
Click to show internal directories.
Click to hide internal directories.