ns

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const NetlinkSocketsTimeout = 3 * time.Second

NetlinkSocketsTimeout represents the default timeout duration for the sockets

Variables

This section is empty.

Functions

func Init

func Init()

Init initializes a new network namespace

func NlHandle

func NlHandle() *netlink.Handle

NlHandle returns the netlink handler

func ParseHandlerInt

func ParseHandlerInt() int

ParseHandlerInt transforms the namespace handler into an integer

func SetNamespace

func SetNamespace() error

SetNamespace sets the initial namespace handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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