package
4.0.0-alpha.0+incompatible
Repository: https://github.com/maistra/origin.git
Documentation: pkg.go.dev

# Packages

Package factory contains code used to create the router controller.
No description provided by the author

# Functions

HostForRoute returns the host set on the route.
NewExtendedValidator creates a plugin wrapper that ensures only routes that pass extended validation are relayed to the next plugin in the chain.
NewHostAdmitter creates a plugin wrapper that checks whether or not to admit routes and relay them to the next plugin in the chain.
NewSimpleContentionTracker creates a ContentionTracker that will prevent writing to the same route more often than once per interval.
NewStatusAdmitter creates a plugin wrapper that ensures every accepted route has a status field set that matches this router.
NewUniqueHost creates a plugin wrapper that ensures only unique routes are passed into the underlying plugin.
ValidateHostName checks that a route's host name satisfies DNS requirements.

# Variables

LogRejections writes rejection messages to the log.

# Structs

ExtendedValidator implements the router.Plugin interface to provide extended config validation for template based, backend-agnostic routers.
HostAdmitter implements the router.Plugin interface to add admission control checks for routes in template based, backend-agnostic routers.
RouterController abstracts the details of watching resources like Routes, Endpoints, etc.
SimpleContentionTracker tracks whether a given identifier is changed from a correct state (set by Clear) to an incorrect state (inferred by calling IsContended).
StatusAdmitter ensures routes added to the plugin have status set.
UniqueHost implements the router.Plugin interface to provide a template based, backend-agnostic router.

# Interfaces

ContentionTracker records modifications to a particular entry to prevent endless loops when multiple routers are configured with conflicting info.
RejectionRecorder is an object capable of recording why a route was rejected.

# Type aliases

RouteAdmissionFunc determines whether or not to admit a route.
RouteHostFunc returns a host for a route.
RouteMap contains all routes associated with a key.