package
1.7.0
Repository: https://github.com/thediveo/notwork.git
Documentation: pkg.go.dev

# Functions

EnsureUp brings the specified network interface up and waits for it to become operationally “UP” or “UNKNOWN”.
EnsureWrap always returns a wrapper Link, wrapping the passed link where necessary.
InNamespace configures a link (network interface) to be created in the network namespace referenced by fdref, instead of creating it in the current network namespace.
NewTransient creates a transient network interface of the specified type (via the type of the link value passed in) and with a name that begins with the given prefix and a random string of digits and uppercase and lowercase ASCII letters.
RandomNifname returns a network interface name consisting of the specified prefix and a random string, and of the maximum length allowed for network interface names.
Unwrap takes a potentally wrapped netlink.Link, unwraps the original netlink.Link if necessary, and returns it, together with an optional network namespace reference where the link should be created in.
WithLinkNamespace specifies the “reference” or “link” network namespace other than the current network namespace when creating a new network interface.
WrapWithLinkNamespace returns a wrapped netlink.Link namespaced to the network namespace referenced by the passed netnsfd.

# Structs

Link wraps a netlink.Link and adds an (optional) network namespace reference, understood by link.NewTransient to mean that the link described is to be created in the referenced network namespace, and not necessarily in the current network namespace.

# Type aliases

Opt is a configuration option when creating a new network interface.