appctest

package
v1.60.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

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) SetRoutes

func (rc *RouteCollector) SetRoutes(routes []netip.Prefix) error

func (*RouteCollector) UnadvertiseRoute

func (rc *RouteCollector) UnadvertiseRoute(toRemove ...netip.Prefix) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL