# Functions
NewConfiguration creates a new configuration with the provided options.
NewInterfacePair creates a pair of connected virtual ethernets.
NewManagedNetworkNamespace creates a new configured network namespace.
No description provided by the author
NewNetworkNamespace creates a new network namespace.
WithLogf sets the log function for this package.
WithPort sets the port to use for the UDP and TCP pings.
WithTimeout sets the timeout for the UDP and TCP connections.
WrapIfFail executes the provided function.
# Structs
Configuration holds the runtime configuration for this package.
InterfacePair represents a pair of virtual ethernets that are connected to each other.
ManagedNetworkNamespace is a struct that helps up setting up a namespace with a pre-defined configuration.
NamespaceHandle is a struct that exists solely for the purpose of mocking netns functions on tests.
No description provided by the author
NetlinkHandle is a struct that exists solely for the purpose of mocking netlink functions on tests.
NetworkNamespace represents a network namespace.
# Interfaces
NamespaceHandler is an interface that represents the netns functions that we need to mock.
NetlinkHandler is an interface that represents the netlink functions that we need to mock.
# Type aliases
Option is a function that sets an optional configuration.