tuntest

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddrAdd

func AddrAdd(t *testing.T, ns *netops.NS, name, addr string)

func BridgeAdd

func BridgeAdd(t *testing.T, ns *netops.NS, name string)

func CheckVRF

func CheckVRF(t *testing.T, ns *netops.NS)

func ConnectToHTTPServer

func ConnectToHTTPServer(t *testing.T, ns *netops.NS, addr, localAddr string)

func DeleteNamedNS

func DeleteNamedNS(t *testing.T, ns *netops.NS)

func HwAddrAdd

func HwAddrAdd(t *testing.T, ns *netops.NS, name, hwAddr string)

func LinkSetMaster

func LinkSetMaster(t *testing.T, ns *netops.NS, name, masterName string)

func NewNamedNS

func NewNamedNS(t *testing.T, prefix string) *netops.NS

func RouteAdd

func RouteAdd(t *testing.T, ns *netops.NS, dest, gw, dev string)

func RunTunnelTest

func RunTunnelTest(t *testing.T, tunnelType string, newWorkerNodeTunneler, newPodNodeTunneler func() tunneler.Tunneler, dedicated bool)

func VethAdd

func VethAdd(t *testing.T, ns *netops.NS, name string, peer *netops.NS, peerName string)

Types

type TestHTTPServer

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

func StartHTTPServer

func StartHTTPServer(t *testing.T, ns *netops.NS, addr string) *TestHTTPServer

func (*TestHTTPServer) Shutdown

func (s *TestHTTPServer) Shutdown(t *testing.T)

Jump to

Keyboard shortcuts

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