Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PacketSourceManager ¶
type PacketSourceManager struct {
// contains filtered or unexported fields
}
func NewPacketSourceManager ¶
func NewPacketSourceManager(procfs string, interfaceName string, mtls bool, pods []v1.Pod, packetCapture string, packets chan<- TcpPacketInfo) (*PacketSourceManager, error)
func (*PacketSourceManager) Close ¶
func (m *PacketSourceManager) Close()
func (*PacketSourceManager) Stats ¶
func (m *PacketSourceManager) Stats() string
func (*PacketSourceManager) UpdatePods ¶
func (m *PacketSourceManager) UpdatePods(pods []v1.Pod, packets chan<- TcpPacketInfo)
type PacketSourceManagerConfig ¶
type PacketSourceManagerConfig struct {
// contains filtered or unexported fields
}
type TcpPacketInfo ¶
type TcpPacketInfo struct { Packet gopacket.Packet Source *TcpPacketSource }
type TcpPacketSource ¶ added in v0.2.0
type TcpPacketSource struct { Handle Handle Origin api.Capture // contains filtered or unexported fields }
func NewTcpPacketSource ¶ added in v0.2.0
func (*TcpPacketSource) ReadPackets ¶ added in v0.2.0
func (source *TcpPacketSource) ReadPackets(packets chan<- TcpPacketInfo)
func (*TcpPacketSource) Stats ¶ added in v0.2.0
func (source *TcpPacketSource) Stats() (packetsReceived uint, packetsDropped uint, err error)
func (*TcpPacketSource) String ¶ added in v0.2.0
func (source *TcpPacketSource) String() string
Click to show internal directories.
Click to hide internal directories.