Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Interface ¶
type Interface interface { // Get all net routes on the host GetNetRoutesAll() ([]Route, error) // Get net routes by link and destination subnet GetNetRoutes(linkIndex int, destinationSubnet *net.IPNet) ([]Route, error) // Create a new route NewNetRoute(linkIndex int, destinationSubnet *net.IPNet, gatewayAddress net.IP) error // Remove an existing route RemoveNetRoute(linkIndex int, destinationSubnet *net.IPNet, gatewayAddress net.IP) error // exit the shell Exit() }
Interface is an injectable interface for running MSFT_NetRoute commands. Implementations must be goroutine-safe.
Click to show internal directories.
Click to hide internal directories.