validation

package
v3.8.0-alpha.1+incompa... Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidateRouteName = validation.NameIsDNSSubdomain

Functions

func ExtendedValidateRoute

func ExtendedValidateRoute(route *routeapi.Route) field.ErrorList

ExtendedValidateRoute performs an extended validation on the route including checking that the TLS config is valid. It also sanitizes the contents of valid certificates by removing any data that is not recognizable PEM blocks on the incoming route.

func ValidateHostName

func ValidateHostName(route *routeapi.Route) field.ErrorList

ValidateHostName checks that a route's host name satisfies DNS requirements.

func ValidateRoute

func ValidateRoute(route *routeapi.Route) field.ErrorList

ValidateRoute tests if required fields in the route are set.

func ValidateRouteStatusUpdate

func ValidateRouteStatusUpdate(route *routeapi.Route, older *routeapi.Route) field.ErrorList

ValidateRouteStatusUpdate validates status updates for routes.

Note that this function shouldn't call ValidateRouteUpdate, otherwise we are risking to break existing routes.

func ValidateRouteUpdate

func ValidateRouteUpdate(route *routeapi.Route, older *routeapi.Route) field.ErrorList

Types

This section is empty.

Jump to

Keyboard shortcuts

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