testutil

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupCrossNsDNAT

func SetupCrossNsDNAT(t *testing.T)

SetupCrossNsDNAT sets up a network namespace, named "test", along with two IP addresses 2.2.2.3 and 2.2.2.4 to be used for namespace aware tests. 2.2.2.4 is within the "test" namespace, while 2.2.2.3 is a peer in the root namespace.

func SetupDNAT

func SetupDNAT(t *testing.T)

SetupDNAT sets up a NAT translation from 2.2.2.2 to 1.1.1.1

func SetupDNAT6

func SetupDNAT6(t *testing.T)

SetupDNAT6 sets up a NAT translation from fd00::2 to fd00::1

func TeardownCrossNsDNAT

func TeardownCrossNsDNAT(t *testing.T)

TeardownCrossNsDNAT cleans up the resources created by SetupCrossNsDNAT

func TeardownDNAT

func TeardownDNAT(t *testing.T)

TeardownDNAT cleans up the resources created by SetupDNAT

func TeardownDNAT6

func TeardownDNAT6(t *testing.T)

TeardownDNAT6 cleans up the resources created by SetupDNAT6

Types

This section is empty.

Jump to

Keyboard shortcuts

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