@@ -10,7 +10,6 @@ import (
1010
1111 "github.com/google/uuid"
1212 capture "github.com/kubeshark/api2/pkg/proto/capture/v1"
13- common "github.com/kubeshark/api2/pkg/proto/common/v1"
1413 protoCommon "github.com/kubeshark/api2/pkg/proto/common/v1"
1514 "github.com/kubeshark/gopacket"
1615 corev1 "k8s.io/api/core/v1"
@@ -364,9 +363,10 @@ type ResolutionSummary struct {
364363}
365364
366365type Extension struct {
367- Protocol * Protocol
368- Path string
369- Dissector Dissector
366+ Protocol * Protocol
367+ SubProtocol * protoCommon.DissectedSubProtocol
368+ Path string
369+ Dissector Dissector
370370}
371371
372372type VLAN struct {
@@ -714,7 +714,7 @@ type OutputChannelItem struct {
714714 Protocol Protocol
715715 Timestamp int64
716716 ConnectionInfo * ConnectionInfo
717- NetworkProps * common .NetworkProperties
717+ NetworkProps * protoCommon .NetworkProperties
718718 CaptureSource protoCommon.CaptureSource
719719 Pair * RequestResponsePair
720720 Data * GenericMessage
@@ -858,41 +858,42 @@ type Event struct {
858858
859859// {Worker}/{Stream}-{Index} uniquely identifies an item
860860type Entry struct {
861- Id string `json:"id"`
862- Index int64 `json:"index"`
863- Stream string `json:"stream"`
864- Worker string `json:"worker"`
865- Node * Node `json:"node"`
866- Protocol Protocol `json:"protocol"`
867- Tls bool `json:"tls"`
868- Source * Resolution `json:"src"`
869- Destination * Resolution `json:"dst"`
870- Timestamp int64 `json:"timestamp"`
871- StartTime time.Time `json:"startTime"`
872- Request interface {} `json:"request"`
873- Response interface {} `json:"response"`
874- RequestRef string `json:"requestRef"`
875- ResponseRef string `json:"responseRef"`
876- RequestSize int `json:"requestSize"`
877- ResponseSize int `json:"responseSize"`
878- ElapsedTime int64 `json:"elapsedTime"`
879- Passed bool `json:"passed"`
880- Failed bool `json:"failed"`
881- Error * Error `json:"error"`
882- EntryFile string `json:"entryFile"`
883- Record string `json:"record"`
884- Event * Event `json:"event"`
885- EventRef string `json:"eventRef"`
886- Base * BaseEntry `json:"base"`
887- Capture * Capture `json:"capture"`
888- Checksums []string `json:"checksums"`
889- Duplicate string `json:"duplicate"`
890- Data interface {} `json:"data"`
891- DataRef string `json:"dataRef"`
892- Size int `json:"size"`
893- MatcherKey string `json:"matcherKey"`
894- NetworkProps * common.NetworkProperties
895- CaptureSource protoCommon.CaptureSource
861+ Id string `json:"id"`
862+ Index int64 `json:"index"`
863+ Stream string `json:"stream"`
864+ Worker string `json:"worker"`
865+ Node * Node `json:"node"`
866+ Protocol Protocol `json:"protocol"`
867+ Tls bool `json:"tls"`
868+ Source * Resolution `json:"src"`
869+ Destination * Resolution `json:"dst"`
870+ Timestamp int64 `json:"timestamp"`
871+ StartTime time.Time `json:"startTime"`
872+ Request interface {} `json:"request"`
873+ Response interface {} `json:"response"`
874+ RequestRef string `json:"requestRef"`
875+ ResponseRef string `json:"responseRef"`
876+ RequestSize int `json:"requestSize"`
877+ ResponseSize int `json:"responseSize"`
878+ ElapsedTime int64 `json:"elapsedTime"`
879+ Passed bool `json:"passed"`
880+ Failed bool `json:"failed"`
881+ Error * Error `json:"error"`
882+ EntryFile string `json:"entryFile"`
883+ Record string `json:"record"`
884+ Event * Event `json:"event"`
885+ EventRef string `json:"eventRef"`
886+ Base * BaseEntry `json:"base"`
887+ Capture * Capture `json:"capture"`
888+ Checksums []string `json:"checksums"`
889+ Duplicate string `json:"duplicate"`
890+ Data interface {} `json:"data"`
891+ DataRef string `json:"dataRef"`
892+ Size int `json:"size"`
893+ MatcherKey string `json:"matcherKey"`
894+ NetworkProps * protoCommon.NetworkProperties `json:"networkProps"`
895+ CaptureSource protoCommon.CaptureSource `json:"captureSource"`
896+ SubProtocol protoCommon.DissectedSubProtocol `json:"subProtocol"`
896897}
897898
898899func (e * Entry ) BuildId () {
@@ -1130,7 +1131,8 @@ type TcpStream interface {
11301131 GetTls () bool
11311132 GetCapture () * Capture
11321133 GetChecksums () []string
1133- GetNetworkProps () * common.NetworkProperties
1134+ GetNetworkProps () * protoCommon.NetworkProperties
1135+ GetCaptureSource () protoCommon.CaptureSource
11341136 Lock ()
11351137 Unlock ()
11361138}
0 commit comments