MCPcopy
hub / github.com/cilium/cilium / Decode

Method Decode

pkg/hubble/parser/parser.go:33–33  ·  view source on GitHub ↗

Decode transforms a monitor event into a hubble event.

(monitorEvent *observerTypes.MonitorEvent)

Source from the content-addressed store, hash-verified

31type Decoder interface {
32 // Decode transforms a monitor event into a hubble event.
33 Decode(monitorEvent *observerTypes.MonitorEvent) (*v1.Event, error)
34}
35
36// Parser for all flows

Callers 15

loadRecordsFunction · 0.95
parseRawFiltersFunction · 0.95
ParseFlowFiltersFunction · 0.95
DecodeMethod · 0.95
DecodeMethod · 0.95
restoreNodeCheckpointMethod · 0.95
parseDynamicRateLimitFunction · 0.95
mainFunction · 0.65
restoreFromDiskMethod · 0.65
DecodeObjectFunction · 0.65

Implementers 15

Parserpkg/hubble/parser/parser.go
Parserpkg/hubble/parser/seven/parser.go
Parserpkg/hubble/parser/sock/parser.go
Parserpkg/hubble/parser/debug/parser.go
Parserpkg/hubble/parser/threefour/parser.go
DebugMsgpkg/monitor/datapath_debug.go
DebugCapturepkg/monitor/datapath_debug.go
TraceNotifypkg/monitor/datapath_trace.go
DropNotifypkg/monitor/datapath_drop.go
LogRecordNotifypkg/monitor/logrecord.go
PolicyVerdictNotifypkg/monitor/datapath_policy.go
TraceSockNotifypkg/monitor/datapath_sock_trace.go

Calls

no outgoing calls

Tested by 15

Test_InvalidPayloadsFunction · 0.52
Test_ParserDispatchFunction · 0.52
FuzzParserDecodeFunction · 0.52
BenchmarkL7DecodeFunction · 0.52
TestDecodeL7HTTPRequestFunction · 0.52