netns

package module
v0.0.0-...-4fa75ce Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetNS

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

func Open

func Open(pid int) (*NetNS, error)

func (*NetNS) Close

func (n *NetNS) Close() error

func (*NetNS) Exec

func (n *NetNS) Exec(fn func()) error

func (*NetNS) Interfaces

func (n *NetNS) Interfaces() (i []net.Interface, e error)

func (*NetNS) Listen

func (n *NetNS) Listen(network, address string) (listener net.Listener, err error)

Jump to

Keyboard shortcuts

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