nshandle

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Overview

Package nshandle provides utils for creating net NS handles

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Current

func Current() (handle netns.NsHandle, err error)

Current creates net NS handle for the current net NS

func FromURL

func FromURL(urlString string) (handle netns.NsHandle, err error)

FromURL creates net NS handle by file://path URL

func RunIn

func RunIn(current, target netns.NsHandle, runner func() error) error

RunIn runs runner in the given net NS

Types

This section is empty.

Jump to

Keyboard shortcuts

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