nsutil

package
v0.10.4-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

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

func NewNS(nsName string) (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(nsPath string) 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