Documentation ¶
Index ¶
- type PacketItem
- type Service
- func (service *Service) GetIPAddresses(iface string) []string
- func (service *Service) ReadEchoServer(remoteIP net.IP, remotePort, localPort, timeout int) []byte
- func (service *Service) SetDefaultGateway(ip string)
- func (service *Service) StartEchoServer(message string, port, times int) exec.Cmd
- func (service *Service) StartEchoServerGolang(message string, port, times int) exec.Cmd
- type Step
- type TimeItem
- type Topology
- func (topology *Topology) GetInternetComputerIPAddress() net.IP
- func (topology *Topology) GetInternetComputerIPAddressIndex(index uint) net.IP
- func (topology *Topology) GetLANComputerIPAddress() net.IP
- func (topology *Topology) GetRouterLANIPAddress() net.IP
- func (topology *Topology) GetRouterWANIPAddress() net.IP
- func (topology *Topology) Packets() []*PacketItem
- func (topology *Topology) PrintDebug()
- func (topology *Topology) PrintDebugIfFailed()
- func (topology *Topology) Start() error
- func (topology *Topology) ValidateSteps(steps []Step)
- type TopologyConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PacketItem ¶
func (*PacketItem) IPv4DstIP ¶
func (pi *PacketItem) IPv4DstIP() net.IP
func (*PacketItem) IPv4SrcIP ¶
func (pi *PacketItem) IPv4SrcIP() net.IP
func (*PacketItem) UDPDstPort ¶
func (pi *PacketItem) UDPDstPort() int
func (*PacketItem) UDPPayload ¶
func (pi *PacketItem) UDPPayload() []byte
func (*PacketItem) UDPSrcPort ¶
func (pi *PacketItem) UDPSrcPort() int
type Service ¶
func (*Service) GetIPAddresses ¶
func (*Service) ReadEchoServer ¶
func (*Service) SetDefaultGateway ¶
func (*Service) StartEchoServer ¶
type Step ¶
type Topology ¶
type Topology struct { LAN *dc.Network Internet *dc.Network Router *Service LANComputer *Service LANComputers []*Service InternetComputer *Service InternetComputers []*Service Compose *dc.Compose T *testing.T TCPDumps []*tcpdumpConfig // contains filtered or unexported fields }
func NewTopology ¶
func NewTopology(t *testing.T, topologyConfig *TopologyConfiguration) *Topology
func (*Topology) GetInternetComputerIPAddress ¶
func (*Topology) GetInternetComputerIPAddressIndex ¶
func (*Topology) GetLANComputerIPAddress ¶
func (*Topology) GetRouterLANIPAddress ¶
func (*Topology) GetRouterWANIPAddress ¶
func (*Topology) Packets ¶
func (topology *Topology) Packets() []*PacketItem
func (*Topology) PrintDebug ¶
func (topology *Topology) PrintDebug()
func (*Topology) PrintDebugIfFailed ¶
func (topology *Topology) PrintDebugIfFailed()
func (*Topology) ValidateSteps ¶
Click to show internal directories.
Click to hide internal directories.