nic

package
v0.0.0-...-a245187 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocateLink(destns netns.NsHandle, link netlink.Link) error

AllocateLink allocates a link to a specified destination namespace

func CheckLink(ns netns.NsHandle, link netlink.Link) (bool, error)

CheckLink returns true if the nic specified by the link's Name is found in the specified namespace

func DeallocateLink(srcns, destns netns.NsHandle, link netlink.Link) error

DeallocateLink moves a link from a client namesspace backto a global namespace

func GetLink(ns netns.NsHandle, prefix string) ([]netlink.Link, error)

GetLink returns all network interfaces wuth names matching prefix

Types

This section is empty.

Jump to

Keyboard shortcuts

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