Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Start bool `json:"start"` Interfaces []InterfaceConfig `json:"interfaces"` FlowSets []FlowSetConfig `json:"flowsets"` }
type EndpointConfig ¶
type EndpointConfig struct {
Interface string `json:"interface"`
}
type ExpectedFlows ¶
type ExpectedFlows ExpectedList
type ExpectedList ¶
type ExpectedList struct {
// contains filtered or unexported fields
}
func (*ExpectedList) Find ¶
func (l *ExpectedList) Find(id string) *TestPacket
func (*ExpectedList) Insert ¶
func (l *ExpectedList) Insert(record *TestPacket)
func (*ExpectedList) Remove ¶
func (l *ExpectedList) Remove(record *TestPacket)
type FlowConfig ¶
type FlowConfig struct { Source EndpointConfig `json:"source"` Destination EndpointConfig `json:"destination"` Send Packet `json:"send"` Receive Packet `json:"receive"` Interval int `json:"interval"` }
type FlowSet ¶
type FlowSet struct {
// contains filtered or unexported fields
}
func FlowSetCreate ¶
type FlowSetConfig ¶
type FlowSetConfig struct { Name string `json:"name"` Flows []FlowConfig `json:"flows"` }
func (*FlowSetConfig) GetName ¶
func (t *FlowSetConfig) GetName() string
type FlowTest ¶
type FlowTest struct {
// contains filtered or unexported fields
}
func CreateAndInit ¶
create and initialize the flowtest singleton, return the current flowtest singleton with error if it already exists
func (*FlowTest) AddFlowSet ¶
func (t *FlowTest) AddFlowSet(config FlowSetConfig) error
func (*FlowTest) AddInterface ¶
type HexArray ¶
type HexArray []byte
Array of value strings (integer or hex 0x00 type) in json on JSON unmarshal decoded to []byte
func (*HexArray) UnmarshalJSON ¶
type InterfaceConfig ¶
type InterfaceConfig struct { Name string `json:"name"` MAC HexArray `json:"mac"` IP HexArray `json:"ip"` }
func (*InterfaceConfig) GetIP ¶
func (i *InterfaceConfig) GetIP() HexArray
func (*InterfaceConfig) GetMAC ¶
func (i *InterfaceConfig) GetMAC() HexArray
func (*InterfaceConfig) GetName ¶
func (i *InterfaceConfig) GetName() string
type TestPacket ¶
type TestPacket struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.