Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTargetTypeUnknown target type unknown ErrTargetTypeUnknown = errors.New("target type unknown") )
Functions ¶
This section is empty.
Types ¶
type ERSpanTarget ¶
type ERSpanTarget struct { SessionID uint16 IfIndex uint32 // contains filtered or unexported fields }
ERSpanTarget defines a ERSpanTarget target
func NewERSpanTarget ¶
NewERSpanTarget returns a new ERSpan target
func (*ERSpanTarget) SendPacket ¶
func (ers *ERSpanTarget) SendPacket(packet gopacket.Packet, bpf *flow.BPF)
SendPacket implements the Target interface
type LocalTarget ¶
type LocalTarget struct {
// contains filtered or unexported fields
}
LocalTarget send packet to an agent flow table
func NewLocalTarget ¶
func NewLocalTarget(g *graph.Graph, n *graph.Node, capture *types.Capture, uuids flow.UUIDs, fta *flow.TableAllocator) (*LocalTarget, error)
NewLocalTarget returns a new local target
func (*LocalTarget) SendPacket ¶
func (l *LocalTarget) SendPacket(packet gopacket.Packet, bpf *flow.BPF)
SendPacket implements the Target interface
type NetFlowV5Target ¶
NetFlowV5Target defines a NetFlow v5 target
func NewNetFlowV5Target ¶
func NewNetFlowV5Target(g *graph.Graph, n *graph.Node, capture *types.Capture, uuids flow.UUIDs) (*NetFlowV5Target, error)
NewNetFlowV5Target returns a new NetFlow v5 target
func (*NetFlowV5Target) SendFlows ¶
func (nf *NetFlowV5Target) SendFlows(flows []*flow.Flow)
SendFlows implements the flow Sender interface
func (*NetFlowV5Target) SendPacket ¶
func (nf *NetFlowV5Target) SendPacket(packet gopacket.Packet, bpf *flow.BPF)
SendPacket implements the Target interface
Click to show internal directories.
Click to hide internal directories.