netns

package
v1.8.1-rc4 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNS

func NewNS() (ns.NetNS, error)

NewNS creates a new persistent (bind-mounted) network namespace and returns an object representing that namespace, without switching to it.

func UnmountNS

func UnmountNS(ns ns.NetNS) error

UnmountNS unmounts the NS held by the netns object

Types

This section is empty.

Jump to

Keyboard shortcuts

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