Documentation ¶
Index ¶
- type RouteCollector
- func (rc *RouteCollector) AdvertiseRoute(pfx ...netip.Prefix) error
- func (rc *RouteCollector) RemovedRoutes() []netip.Prefix
- func (rc *RouteCollector) Routes() []netip.Prefix
- func (rc *RouteCollector) SetRoutes(routes []netip.Prefix) error
- func (rc *RouteCollector) UnadvertiseRoute(toRemove ...netip.Prefix) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RouteCollector ¶
type RouteCollector struct {
// contains filtered or unexported fields
}
RouteCollector is a test helper that collects the list of routes advertised
func (*RouteCollector) AdvertiseRoute ¶
func (rc *RouteCollector) AdvertiseRoute(pfx ...netip.Prefix) error
func (*RouteCollector) RemovedRoutes ¶
func (rc *RouteCollector) RemovedRoutes() []netip.Prefix
RemovedRoutes returns the list of routes that were removed.
func (*RouteCollector) Routes ¶
func (rc *RouteCollector) Routes() []netip.Prefix
Routes returns the ordered list of routes that were added, including possible duplicates.
func (*RouteCollector) UnadvertiseRoute ¶
func (rc *RouteCollector) UnadvertiseRoute(toRemove ...netip.Prefix) error
Click to show internal directories.
Click to hide internal directories.