tuntest

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 16 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.Namespace, name, addr string)

func BridgeAdd

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

func CheckVRF

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

func ConnectToHTTPServer

func ConnectToHTTPServer(t *testing.T, ns netops.Namespace, addr, localAddr netip.AddrPort)

func DeleteNamedNS

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

func HwAddrAdd

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

func LinkSetMaster

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

func NewNamedNS

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

func RouteAdd

func RouteAdd(t *testing.T, ns netops.Namespace, 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.Namespace, name string, peerNamespace netops.Namespace, peerName string)

Types

type TestHTTPServer

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

func StartHTTPServer

func StartHTTPServer(t *testing.T, ns netops.Namespace, addr netip.AddrPort) *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