Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RouteExporter ¶
type RouteExporter struct {
// Device is the Linux device for the route.
Device netlink.Link
// Source is the source IP address for locally-originated packets that leave
// the local host through the route.
Source net.IP
}
RouteExporter adds routes to the main Linux routing table.
func (RouteExporter) AddNetwork ¶
func (rt RouteExporter) AddNetwork(network net.IPNet)
AddNetwork will add a route to network in the main Linux routing table.
func (RouteExporter) DeleteNetwork ¶
func (rt RouteExporter) DeleteNetwork(network net.IPNet)
DeleteNetwork will delete the route to network from the main Linux routing table.
Click to show internal directories.
Click to hide internal directories.