flows

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flow

type Flow struct {
	// contains filtered or unexported fields
}

func NewFlow

func NewFlow() *Flow

func (*Flow) String

func (f *Flow) String() string

func (*Flow) Validate

func (f *Flow) Validate() error

func (*Flow) WithArpDest

func (f *Flow) WithArpDest(arpDst string) *Flow

func (*Flow) WithArpSrc

func (f *Flow) WithArpSrc(arpSrc string) *Flow

func (*Flow) WithDrop

func (f *Flow) WithDrop() *Flow

func (*Flow) WithIPDest

func (f *Flow) WithIPDest(ipDst string) *Flow

func (*Flow) WithIPSrc

func (f *Flow) WithIPSrc(ipSrc string) *Flow

func (*Flow) WithModDlDest

func (f *Flow) WithModDlDest(dstMac string) *Flow

func (*Flow) WithOutputPort

func (f *Flow) WithOutputPort(output int) *Flow

func (*Flow) WithPriority

func (f *Flow) WithPriority(priority int) *Flow

func (*Flow) WithProtocol

func (f *Flow) WithProtocol(protocol string) *Flow

func (*Flow) WithRaw added in v0.0.2

func (f *Flow) WithRaw(raw string) *Flow

func (*Flow) WithResubmit

func (f *Flow) WithResubmit(table int) *Flow

func (*Flow) WithTCPDestPort

func (f *Flow) WithTCPDestPort(dstPort int) *Flow

func (*Flow) WithTCPSrcPort

func (f *Flow) WithTCPSrcPort(srcPort int) *Flow

func (*Flow) WithTable

func (f *Flow) WithTable(table int) *Flow

func (*Flow) WithTunnelDest

func (f *Flow) WithTunnelDest(tunDst string) *Flow

func (*Flow) WithUDPDestPort

func (f *Flow) WithUDPDestPort(dstPort int) *Flow

func (*Flow) WithUDPSrcPort

func (f *Flow) WithUDPSrcPort(srcPort int) *Flow

type FlowsBuffer

type FlowsBuffer struct {
	// contains filtered or unexported fields
}

func NewFlowsBuffer

func NewFlowsBuffer() *FlowsBuffer

func (*FlowsBuffer) AddFlow

func (f *FlowsBuffer) AddFlow(flow *Flow)

func (*FlowsBuffer) Reset

func (f *FlowsBuffer) Reset()

func (*FlowsBuffer) String

func (f *FlowsBuffer) String() string

func (*FlowsBuffer) SyncFlows

func (f *FlowsBuffer) SyncFlows(bridge string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL