Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithNetNS ¶
WithNetNS executes the passed closure under the given network namespace, restoring the original namespace afterwards. Changing namespaces must be done on a goroutine that has been locked to an OS thread. If lockThread arg is true, this function locks the goroutine prior to change namespace and unlocks before returning
func WithNetNSPath ¶
WithNetNSPath executes the passed closure under the given network namespace, restoring the original namespace afterwards. Changing namespaces must be done on a goroutine that has been locked to an OS thread. If lockThread arg is true, this function locks the goroutine prior to change namespace and unlocks before returning
Types ¶
This section is empty.