Documentation
      ¶
    
    
  
    
  
    Index ¶
- func ReceiveTimeout[T any](t *testing.T, ch <-chan T, timeout time.Duration) T
 - type ExporterFake
 - type SliceInformerFake
 - type TracerFake
 - func (m *TracerFake) AppendLookupResults(results map[ebpf.BpfFlowId]model.BpfFlowContent)
 - func (m *TracerFake) AppendRingBufEvent(flow model.RawRecord) error
 - func (m *TracerFake) AttachTCX(_ *ifaces.Interface) error
 - func (m *TracerFake) Close() error
 - func (m *TracerFake) DeleteMapsStaleEntries(_ time.Duration)
 - func (m *TracerFake) DetachTCX(_ *ifaces.Interface) error
 - func (m *TracerFake) LookupAndDeleteMap(_ *metrics.Metrics) map[ebpf.BpfFlowId]model.BpfFlowContent
 - func (m *TracerFake) ReadRingBuf() (ringbuf.Record, error)
 - func (m *TracerFake) Register(iface *ifaces.Interface) error
 - func (m *TracerFake) UnRegister(iface *ifaces.Interface) error
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExporterFake ¶
type ExporterFake struct {
	// contains filtered or unexported fields
}
    func NewExporterFake ¶
func NewExporterFake() *ExporterFake
func (*ExporterFake) Export ¶
func (ef *ExporterFake) Export(in <-chan []*model.Record)
type SliceInformerFake ¶
SliceInformerFake fakes the ifaces.Informer implementation by just notifying all the interfaces in the slice
type TracerFake ¶
type TracerFake struct {
	// contains filtered or unexported fields
}
    TracerFake fakes the kernel-side eBPF map structures for testing
func NewTracerFake ¶
func NewTracerFake() *TracerFake
func (*TracerFake) AppendLookupResults ¶
func (m *TracerFake) AppendLookupResults(results map[ebpf.BpfFlowId]model.BpfFlowContent)
func (*TracerFake) AppendRingBufEvent ¶
func (m *TracerFake) AppendRingBufEvent(flow model.RawRecord) error
func (*TracerFake) Close ¶
func (m *TracerFake) Close() error
func (*TracerFake) DeleteMapsStaleEntries ¶ added in v0.3.2
func (m *TracerFake) DeleteMapsStaleEntries(_ time.Duration)
func (*TracerFake) LookupAndDeleteMap ¶
func (m *TracerFake) LookupAndDeleteMap(_ *metrics.Metrics) map[ebpf.BpfFlowId]model.BpfFlowContent
func (*TracerFake) ReadRingBuf ¶
func (m *TracerFake) ReadRingBuf() (ringbuf.Record, error)
func (*TracerFake) UnRegister ¶
func (m *TracerFake) UnRegister(iface *ifaces.Interface) error
 Click to show internal directories. 
   Click to hide internal directories.