netns

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

Context describes a NameSpace Context switch API

func NewContext

func NewContext(path string) (*Context, error)

NewContext creates a new NameSpace context base on path

func (*Context) Close

func (n *Context) Close()

Close the NameSpace

func (*Context) Quit

func (n *Context) Quit() error

Quit the NameSpace and go back to the original one

Jump to

Keyboard shortcuts

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