Documentation ¶
Index ¶
Constants ¶
View Source
const (
EnvCNIPath = "CNI_PATH"
)
View Source
const NetNSRunDir = "/var/run/netns"
NetNSRunDir is the directory which new network namespaces will be bind mounted
Variables ¶
This section is empty.
Functions ¶
func NewNS ¶
NewNS creates a new persistent (bind-mounted) network namespace and returns an object representing that namespace, without switching to it.
func SetupBridgeNetworking ¶
func SetupBridgeNetworking(allocID string, nsPath string, portMappings []*PortMapping) error
func TeardownBridgeNetworking ¶
func TeardownBridgeNetworking(allocID, nsPath string, portMappings []*PortMapping) error
Types ¶
type PortMapping ¶
Click to show internal directories.
Click to hide internal directories.