netns

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package netns is a small wrapper around github.com/vishvananda/netns that provides GetFromPidWithAltProcfs() and GetFromThreadWithAltProcfs(). TODO: Remove once https://github.com/vishvananda/netns/pull/76 is merged

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFromPidWithAltProcfs

func GetFromPidWithAltProcfs(pid int, procfs string) (netns.NsHandle, error)

GetFromPidWithAltProcfs gets a handle to the network namespace of a given pid using the specified procfs path.

func GetFromThreadWithAltProcfs

func GetFromThreadWithAltProcfs(pid, tid int, procfs string) (netns.NsHandle, error)

GetFromThreadWithAltProcfs gets a handle to the network namespace of a given pid and tid using the specified procfs path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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