netns

package
v0.0.0-...-c3677c5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNsListener

func GetNsListener(netNsPath string, port int) (net.Listener, error)

Types

type NsDialer

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

func NewNsDialer

func NewNsDialer(netNsPath string) (*NsDialer, error)

func (*NsDialer) DialContext

func (n *NsDialer) DialContext(ctx context.Context, network, address string) (net.Conn, error)

Jump to

Keyboard shortcuts

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