Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router interface {
// GetAllRoutes returns all existing routes
GetAllRoutes() ([]Route, error)
// GetRoutesFromInterfaceToSubnet returns all routes from the given Interface to the given subnet
GetRoutesFromInterfaceToSubnet(interfaceIndex int, destinationSubnet *net.IPNet) ([]Route, error)
// CreateRoute creates a new route
CreateRoute(interfaceIndex int, destinationSubnet *net.IPNet, gatewayAddress net.IP) error
// DeleteRoute removes an existing route
DeleteRoute(interfaceIndex int, destinationSubnet *net.IPNet, gatewayAddress net.IP) error
}
Router manages network routes
Click to show internal directories.
Click to hide internal directories.