netlink

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLinkNotFound = errors.New("link not found")
	ErrRemoveFail   = errors.New("unable to remove network interface")
)

Functions

func GetNetNsLinks(pid int) (nlinks []netlink.Link, err error)

func LinkDel

func LinkDel(netInterface string) error
func StatsForLinks(links []netlink.Link) (float64, float64)

Types

type Link = netlink.Link

Jump to

Keyboard shortcuts

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