Documentation ¶
Index ¶
- Variables
- type FlowType1
- func (*FlowType1) Descriptor() ([]byte, []int)deprecated
- func (x *FlowType1) GetBytesDelta() uint64
- func (x *FlowType1) GetBytesTotal() uint64
- func (x *FlowType1) GetDstClusterIP() string
- func (x *FlowType1) GetDstIP() string
- func (x *FlowType1) GetDstNodeName() string
- func (x *FlowType1) GetDstPodName() string
- func (x *FlowType1) GetDstPodNamespace() string
- func (x *FlowType1) GetDstPort() uint32
- func (x *FlowType1) GetDstServicePort() uint32
- func (x *FlowType1) GetDstServicePortName() string
- func (x *FlowType1) GetEgressPolicyName() string
- func (x *FlowType1) GetEgressPolicyNamespace() string
- func (x *FlowType1) GetExportAddress() string
- func (x *FlowType1) GetIngressPolicyName() string
- func (x *FlowType1) GetIngressPolicyNamespace() string
- func (x *FlowType1) GetObsDomainID() uint32
- func (x *FlowType1) GetPacketsDelta() uint64
- func (x *FlowType1) GetPacketsTotal() uint64
- func (x *FlowType1) GetProto() uint32
- func (x *FlowType1) GetReverseBytesDelta() uint64
- func (x *FlowType1) GetReverseBytesTotal() uint64
- func (x *FlowType1) GetReversePacketsDelta() uint64
- func (x *FlowType1) GetReversePacketsTotal() uint64
- func (x *FlowType1) GetSequenceNumber() uint32
- func (x *FlowType1) GetSrcIP() string
- func (x *FlowType1) GetSrcNodeName() string
- func (x *FlowType1) GetSrcPodName() string
- func (x *FlowType1) GetSrcPodNamespace() string
- func (x *FlowType1) GetSrcPort() uint32
- func (x *FlowType1) GetTimeFlowEndInMilliSecs() uint32
- func (x *FlowType1) GetTimeFlowEndInSecs() uint32
- func (x *FlowType1) GetTimeFlowStartInMilliSecs() uint64
- func (x *FlowType1) GetTimeFlowStartInSecs() uint32
- func (x *FlowType1) GetTimeReceived() uint32
- func (*FlowType1) ProtoMessage()
- func (x *FlowType1) ProtoReflect() protoreflect.Message
- func (x *FlowType1) Reset()
- func (x *FlowType1) String() string
- type FlowType2
- func (*FlowType2) Descriptor() ([]byte, []int)deprecated
- func (x *FlowType2) GetBytesDelta() uint64
- func (x *FlowType2) GetBytesTotal() uint64
- func (x *FlowType2) GetDstClusterIP() string
- func (x *FlowType2) GetDstIP() string
- func (x *FlowType2) GetDstNodeName() string
- func (x *FlowType2) GetDstPodName() string
- func (x *FlowType2) GetDstPodNamespace() string
- func (x *FlowType2) GetDstPort() uint32
- func (x *FlowType2) GetDstServicePort() uint32
- func (x *FlowType2) GetDstServicePortName() string
- func (x *FlowType2) GetEgressPolicyName() string
- func (x *FlowType2) GetEgressPolicyNamespace() string
- func (x *FlowType2) GetExportAddress() string
- func (x *FlowType2) GetFlowEndReason() uint32
- func (x *FlowType2) GetIngressPolicyName() string
- func (x *FlowType2) GetIngressPolicyNamespace() string
- func (x *FlowType2) GetObsDomainID() uint32
- func (x *FlowType2) GetPacketsDelta() uint64
- func (x *FlowType2) GetPacketsTotal() uint64
- func (x *FlowType2) GetProto() uint32
- func (x *FlowType2) GetReverseBytesDelta() uint64
- func (x *FlowType2) GetReverseBytesTotal() uint64
- func (x *FlowType2) GetReversePacketsDelta() uint64
- func (x *FlowType2) GetReversePacketsTotal() uint64
- func (x *FlowType2) GetSequenceNumber() uint32
- func (x *FlowType2) GetSrcIP() string
- func (x *FlowType2) GetSrcNodeName() string
- func (x *FlowType2) GetSrcPodName() string
- func (x *FlowType2) GetSrcPodNamespace() string
- func (x *FlowType2) GetSrcPort() uint32
- func (x *FlowType2) GetTcpState() string
- func (x *FlowType2) GetTimeFlowEndInMilliSecs() uint32
- func (x *FlowType2) GetTimeFlowEndInSecs() uint32
- func (x *FlowType2) GetTimeFlowStartInMilliSecs() uint64
- func (x *FlowType2) GetTimeFlowStartInSecs() uint32
- func (x *FlowType2) GetTimeReceived() uint32
- func (*FlowType2) ProtoMessage()
- func (x *FlowType2) ProtoReflect() protoreflect.Message
- func (x *FlowType2) Reset()
- func (x *FlowType2) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pkg_kafka_producer_protobuf_flow_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type FlowType1 ¶
type FlowType1 struct { // Header of IPFIX Message. TimeReceived uint32 `protobuf:"varint,1,opt,name=TimeReceived,proto3" json:"TimeReceived,omitempty"` SequenceNumber uint32 `protobuf:"varint,2,opt,name=SequenceNumber,proto3" json:"SequenceNumber,omitempty"` ObsDomainID uint32 `protobuf:"varint,3,opt,name=ObsDomainID,proto3" json:"ObsDomainID,omitempty"` ExportAddress string `protobuf:"bytes,33,opt,name=ExportAddress,proto3" json:"ExportAddress,omitempty"` // Fields of flow record. TimeFlowStartInSecs uint32 `protobuf:"varint,4,opt,name=TimeFlowStartInSecs,proto3" json:"TimeFlowStartInSecs,omitempty"` TimeFlowEndInSecs uint32 `protobuf:"varint,5,opt,name=TimeFlowEndInSecs,proto3" json:"TimeFlowEndInSecs,omitempty"` TimeFlowStartInMilliSecs uint64 `protobuf:"varint,27,opt,name=TimeFlowStartInMilliSecs,proto3" json:"TimeFlowStartInMilliSecs,omitempty"` TimeFlowEndInMilliSecs uint32 `protobuf:"varint,28,opt,name=TimeFlowEndInMilliSecs,proto3" json:"TimeFlowEndInMilliSecs,omitempty"` // 5-tuple of flows SrcIP string `protobuf:"bytes,6,opt,name=SrcIP,proto3" json:"SrcIP,omitempty"` DstIP string `protobuf:"bytes,7,opt,name=DstIP,proto3" json:"DstIP,omitempty"` SrcPort uint32 `protobuf:"varint,8,opt,name=SrcPort,proto3" json:"SrcPort,omitempty"` DstPort uint32 `protobuf:"varint,9,opt,name=DstPort,proto3" json:"DstPort,omitempty"` Proto uint32 `protobuf:"varint,10,opt,name=Proto,proto3" json:"Proto,omitempty"` // Statistics of flow in original and reverse directions. PacketsTotal uint64 `protobuf:"varint,11,opt,name=PacketsTotal,proto3" json:"PacketsTotal,omitempty"` BytesTotal uint64 `protobuf:"varint,12,opt,name=BytesTotal,proto3" json:"BytesTotal,omitempty"` PacketsDelta uint64 `protobuf:"varint,13,opt,name=PacketsDelta,proto3" json:"PacketsDelta,omitempty"` BytesDelta uint64 `protobuf:"varint,14,opt,name=BytesDelta,proto3" json:"BytesDelta,omitempty"` ReversePacketsTotal uint64 `protobuf:"varint,15,opt,name=ReversePacketsTotal,proto3" json:"ReversePacketsTotal,omitempty"` ReverseBytesTotal uint64 `protobuf:"varint,16,opt,name=ReverseBytesTotal,proto3" json:"ReverseBytesTotal,omitempty"` ReversePacketsDelta uint64 `protobuf:"varint,17,opt,name=ReversePacketsDelta,proto3" json:"ReversePacketsDelta,omitempty"` ReverseBytesDelta uint64 `protobuf:"varint,18,opt,name=ReverseBytesDelta,proto3" json:"ReverseBytesDelta,omitempty"` // Kubernetes metadata SrcPodName string `protobuf:"bytes,19,opt,name=SrcPodName,proto3" json:"SrcPodName,omitempty"` SrcPodNamespace string `protobuf:"bytes,20,opt,name=SrcPodNamespace,proto3" json:"SrcPodNamespace,omitempty"` SrcNodeName string `protobuf:"bytes,21,opt,name=SrcNodeName,proto3" json:"SrcNodeName,omitempty"` DstPodName string `protobuf:"bytes,22,opt,name=DstPodName,proto3" json:"DstPodName,omitempty"` DstPodNamespace string `protobuf:"bytes,23,opt,name=DstPodNamespace,proto3" json:"DstPodNamespace,omitempty"` DstNodeName string `protobuf:"bytes,24,opt,name=DstNodeName,proto3" json:"DstNodeName,omitempty"` DstClusterIP string `protobuf:"bytes,25,opt,name=DstClusterIP,proto3" json:"DstClusterIP,omitempty"` DstServicePort uint32 `protobuf:"varint,34,opt,name=DstServicePort,proto3" json:"DstServicePort,omitempty"` DstServicePortName string `protobuf:"bytes,26,opt,name=DstServicePortName,proto3" json:"DstServicePortName,omitempty"` IngressPolicyName string `protobuf:"bytes,29,opt,name=IngressPolicyName,proto3" json:"IngressPolicyName,omitempty"` IngressPolicyNamespace string `protobuf:"bytes,30,opt,name=IngressPolicyNamespace,proto3" json:"IngressPolicyNamespace,omitempty"` EgressPolicyName string `protobuf:"bytes,31,opt,name=EgressPolicyName,proto3" json:"EgressPolicyName,omitempty"` EgressPolicyNamespace string `protobuf:"bytes,32,opt,name=EgressPolicyNamespace,proto3" json:"EgressPolicyNamespace,omitempty"` // contains filtered or unexported fields }
FlowType1 and FlowType2 are two different proto schemas with same fields. Used two different proto schemas to demonstrate that the producer can be built in a flexible manner and can support multiple proto schemas.
func (*FlowType1) Descriptor
deprecated
func (*FlowType1) GetBytesDelta ¶
func (*FlowType1) GetBytesTotal ¶
func (*FlowType1) GetDstClusterIP ¶
func (*FlowType1) GetDstNodeName ¶
func (*FlowType1) GetDstPodName ¶
func (*FlowType1) GetDstPodNamespace ¶
func (*FlowType1) GetDstPort ¶
func (*FlowType1) GetDstServicePort ¶
func (*FlowType1) GetDstServicePortName ¶
func (*FlowType1) GetEgressPolicyName ¶
func (*FlowType1) GetEgressPolicyNamespace ¶
func (*FlowType1) GetExportAddress ¶
func (*FlowType1) GetIngressPolicyName ¶
func (*FlowType1) GetIngressPolicyNamespace ¶
func (*FlowType1) GetObsDomainID ¶
func (*FlowType1) GetPacketsDelta ¶
func (*FlowType1) GetPacketsTotal ¶
func (*FlowType1) GetReverseBytesDelta ¶
func (*FlowType1) GetReverseBytesTotal ¶
func (*FlowType1) GetReversePacketsDelta ¶
func (*FlowType1) GetReversePacketsTotal ¶
func (*FlowType1) GetSequenceNumber ¶
func (*FlowType1) GetSrcNodeName ¶
func (*FlowType1) GetSrcPodName ¶
func (*FlowType1) GetSrcPodNamespace ¶
func (*FlowType1) GetSrcPort ¶
func (*FlowType1) GetTimeFlowEndInMilliSecs ¶
func (*FlowType1) GetTimeFlowEndInSecs ¶
func (*FlowType1) GetTimeFlowStartInMilliSecs ¶
func (*FlowType1) GetTimeFlowStartInSecs ¶
func (*FlowType1) GetTimeReceived ¶
func (*FlowType1) ProtoMessage ¶
func (*FlowType1) ProtoMessage()
func (*FlowType1) ProtoReflect ¶
func (x *FlowType1) ProtoReflect() protoreflect.Message
type FlowType2 ¶
type FlowType2 struct { // Header of IPFIX Message. TimeReceived uint32 `protobuf:"varint,1,opt,name=TimeReceived,proto3" json:"TimeReceived,omitempty"` SequenceNumber uint32 `protobuf:"varint,2,opt,name=SequenceNumber,proto3" json:"SequenceNumber,omitempty"` ObsDomainID uint32 `protobuf:"varint,3,opt,name=ObsDomainID,proto3" json:"ObsDomainID,omitempty"` ExportAddress string `protobuf:"bytes,33,opt,name=ExportAddress,proto3" json:"ExportAddress,omitempty"` // Fields of flow record. TimeFlowStartInSecs uint32 `protobuf:"varint,4,opt,name=TimeFlowStartInSecs,proto3" json:"TimeFlowStartInSecs,omitempty"` TimeFlowEndInSecs uint32 `protobuf:"varint,5,opt,name=TimeFlowEndInSecs,proto3" json:"TimeFlowEndInSecs,omitempty"` TimeFlowStartInMilliSecs uint64 `protobuf:"varint,27,opt,name=TimeFlowStartInMilliSecs,proto3" json:"TimeFlowStartInMilliSecs,omitempty"` TimeFlowEndInMilliSecs uint32 `protobuf:"varint,28,opt,name=TimeFlowEndInMilliSecs,proto3" json:"TimeFlowEndInMilliSecs,omitempty"` FlowEndReason uint32 `protobuf:"varint,35,opt,name=FlowEndReason,proto3" json:"FlowEndReason,omitempty"` TcpState string `protobuf:"bytes,36,opt,name=TcpState,proto3" json:"TcpState,omitempty"` // 5-tuple of flows SrcIP string `protobuf:"bytes,6,opt,name=SrcIP,proto3" json:"SrcIP,omitempty"` DstIP string `protobuf:"bytes,7,opt,name=DstIP,proto3" json:"DstIP,omitempty"` SrcPort uint32 `protobuf:"varint,8,opt,name=SrcPort,proto3" json:"SrcPort,omitempty"` DstPort uint32 `protobuf:"varint,9,opt,name=DstPort,proto3" json:"DstPort,omitempty"` Proto uint32 `protobuf:"varint,10,opt,name=Proto,proto3" json:"Proto,omitempty"` // Statistics of flow in original and reverse directions. PacketsTotal uint64 `protobuf:"varint,11,opt,name=PacketsTotal,proto3" json:"PacketsTotal,omitempty"` BytesTotal uint64 `protobuf:"varint,12,opt,name=BytesTotal,proto3" json:"BytesTotal,omitempty"` PacketsDelta uint64 `protobuf:"varint,13,opt,name=PacketsDelta,proto3" json:"PacketsDelta,omitempty"` BytesDelta uint64 `protobuf:"varint,14,opt,name=BytesDelta,proto3" json:"BytesDelta,omitempty"` ReversePacketsTotal uint64 `protobuf:"varint,15,opt,name=ReversePacketsTotal,proto3" json:"ReversePacketsTotal,omitempty"` ReverseBytesTotal uint64 `protobuf:"varint,16,opt,name=ReverseBytesTotal,proto3" json:"ReverseBytesTotal,omitempty"` ReversePacketsDelta uint64 `protobuf:"varint,17,opt,name=ReversePacketsDelta,proto3" json:"ReversePacketsDelta,omitempty"` ReverseBytesDelta uint64 `protobuf:"varint,18,opt,name=ReverseBytesDelta,proto3" json:"ReverseBytesDelta,omitempty"` // Kubernetes metadata SrcPodName string `protobuf:"bytes,19,opt,name=SrcPodName,proto3" json:"SrcPodName,omitempty"` SrcPodNamespace string `protobuf:"bytes,20,opt,name=SrcPodNamespace,proto3" json:"SrcPodNamespace,omitempty"` SrcNodeName string `protobuf:"bytes,21,opt,name=SrcNodeName,proto3" json:"SrcNodeName,omitempty"` DstPodName string `protobuf:"bytes,22,opt,name=DstPodName,proto3" json:"DstPodName,omitempty"` DstPodNamespace string `protobuf:"bytes,23,opt,name=DstPodNamespace,proto3" json:"DstPodNamespace,omitempty"` DstNodeName string `protobuf:"bytes,24,opt,name=DstNodeName,proto3" json:"DstNodeName,omitempty"` DstClusterIP string `protobuf:"bytes,25,opt,name=DstClusterIP,proto3" json:"DstClusterIP,omitempty"` DstServicePort uint32 `protobuf:"varint,34,opt,name=DstServicePort,proto3" json:"DstServicePort,omitempty"` DstServicePortName string `protobuf:"bytes,26,opt,name=DstServicePortName,proto3" json:"DstServicePortName,omitempty"` IngressPolicyName string `protobuf:"bytes,29,opt,name=IngressPolicyName,proto3" json:"IngressPolicyName,omitempty"` IngressPolicyNamespace string `protobuf:"bytes,30,opt,name=IngressPolicyNamespace,proto3" json:"IngressPolicyNamespace,omitempty"` EgressPolicyName string `protobuf:"bytes,31,opt,name=EgressPolicyName,proto3" json:"EgressPolicyName,omitempty"` EgressPolicyNamespace string `protobuf:"bytes,32,opt,name=EgressPolicyNamespace,proto3" json:"EgressPolicyNamespace,omitempty"` // contains filtered or unexported fields }
func (*FlowType2) Descriptor
deprecated
func (*FlowType2) GetBytesDelta ¶
func (*FlowType2) GetBytesTotal ¶
func (*FlowType2) GetDstClusterIP ¶
func (*FlowType2) GetDstNodeName ¶
func (*FlowType2) GetDstPodName ¶
func (*FlowType2) GetDstPodNamespace ¶
func (*FlowType2) GetDstPort ¶
func (*FlowType2) GetDstServicePort ¶
func (*FlowType2) GetDstServicePortName ¶
func (*FlowType2) GetEgressPolicyName ¶
func (*FlowType2) GetEgressPolicyNamespace ¶
func (*FlowType2) GetExportAddress ¶
func (*FlowType2) GetFlowEndReason ¶
func (*FlowType2) GetIngressPolicyName ¶
func (*FlowType2) GetIngressPolicyNamespace ¶
func (*FlowType2) GetObsDomainID ¶
func (*FlowType2) GetPacketsDelta ¶
func (*FlowType2) GetPacketsTotal ¶
func (*FlowType2) GetReverseBytesDelta ¶
func (*FlowType2) GetReverseBytesTotal ¶
func (*FlowType2) GetReversePacketsDelta ¶
func (*FlowType2) GetReversePacketsTotal ¶
func (*FlowType2) GetSequenceNumber ¶
func (*FlowType2) GetSrcNodeName ¶
func (*FlowType2) GetSrcPodName ¶
func (*FlowType2) GetSrcPodNamespace ¶
func (*FlowType2) GetSrcPort ¶
func (*FlowType2) GetTcpState ¶
func (*FlowType2) GetTimeFlowEndInMilliSecs ¶
func (*FlowType2) GetTimeFlowEndInSecs ¶
func (*FlowType2) GetTimeFlowStartInMilliSecs ¶
func (*FlowType2) GetTimeFlowStartInSecs ¶
func (*FlowType2) GetTimeReceived ¶
func (*FlowType2) ProtoMessage ¶
func (*FlowType2) ProtoMessage()
func (*FlowType2) ProtoReflect ¶
func (x *FlowType2) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.