appctest
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package appctest contains code to help test App Connectors.
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¶
typeRouteCollector¶
type RouteCollector struct {// AdvertiseCallback (optional) is called synchronously from// AdvertiseRoute.AdvertiseCallback func()// UnadvertiseCallback (optional) is called synchronously from// UnadvertiseRoute.UnadvertiseCallback func()// 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, includingpossible duplicates.
func (*RouteCollector)UnadvertiseRoute¶
func (rc *RouteCollector) UnadvertiseRoute(toRemove ...netip.Prefix)error