predicates

package
v0.22.166 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0, MIT Imports: 1 Imported by: 21

Documentation

Overview

Package predicates provides packages to enhance routing match capabilities.

Index

Constants

View Source
const (
	// PathName represents the name of builtin path predicate.
	// (See more details about the Path and PathSubtree predicates
	// at https://godoc.org/github.com/zalando/skipper/eskip)
	PathName = "Path"
	// PathSubtreeName represents the name of the builtin path subtree predicate.
	// (See more details about the Path and PathSubtree predicates
	// at https://godoc.org/github.com/zalando/skipper/eskip)
	PathSubtreeName           = "PathSubtree"
	PathRegexpName            = "PathRegexp"
	HostName                  = "Host"
	HostAnyName               = "HostAny"
	ForwardedHostName         = "ForwardedHost"
	ForwardedProtocolName     = "ForwardedProtocol"
	WeightName                = "Weight"
	TrueName                  = "True"
	FalseName                 = "False"
	ShutdownName              = "Shutdown"
	MethodName                = "Method"
	MethodsName               = "Methods"
	HeaderName                = "Header"
	HeaderRegexpName          = "HeaderRegexp"
	CookieName                = "Cookie"
	JWTPayloadAnyKVName       = "JWTPayloadAnyKV"
	JWTPayloadAllKVName       = "JWTPayloadAllKV"
	JWTPayloadAnyKVRegexpName = "JWTPayloadAnyKVRegexp"
	JWTPayloadAllKVRegexpName = "JWTPayloadAllKVRegexp"
	HeaderSHA256Name          = "HeaderSHA256"
	AfterName                 = "After"
	BeforeName                = "Before"
	BetweenName               = "Between"
	CronName                  = "Cron"
	QueryParamName            = "QueryParam"
	SourceName                = "Source"
	SourceFromLastName        = "SourceFromLast"
	ClientIPName              = "ClientIP"
	TeeName                   = "Tee"
	TrafficName               = "Traffic"
	TrafficSegmentName        = "TrafficSegment"
	ContentLengthBetweenName  = "ContentLengthBetween"
)

All Skipper Predicate names

Variables

View Source
var ErrInvalidPredicateParameters = errors.New("invalid predicate parameters")

ErrInvalidPredicateParameters is used in case of invalid predicate parameters.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Package auth implements custom predicates to match based on content of the HTTP Authorization header.
Package auth implements custom predicates to match based on content of the HTTP Authorization header.
Package content provides Content-Length related predicates.
Package content provides Content-Length related predicates.
Package cookie implements predicate to check parsed cookie headers by name and value.
Package cookie implements predicate to check parsed cookie headers by name and value.
Package cron implements custom predicates to match routes only when they also match the system time matches the given cron-like expressions.
Package cron implements custom predicates to match routes only when they also match the system time matches the given cron-like expressions.
Package forwarded implements a set of custom predicate to match routes based on the standardized Forwarded header.
Package forwarded implements a set of custom predicate to match routes based on the standardized Forwarded header.
Package host provides HTTP host header matching related predicates.
Package host provides HTTP host header matching related predicates.
Package interval implements custom predicates to match routes only during some period of time.
Package interval implements custom predicates to match routes only during some period of time.
Package methods implements a custom predicate to match routes based on the http method in request
Package methods implements a custom predicate to match routes based on the http method in request
Package primitive provides predicates that can be used as building blocks for routing behavior.
Package primitive provides predicates that can be used as building blocks for routing behavior.
Package query implements a custom predicate to match routes based on the Query Params in URL
Package query implements a custom predicate to match routes based on the Query Params in URL
Package source implements a custom predicate to match routes based on the source IP of a request.
Package source implements a custom predicate to match routes based on the source IP of a request.
Package tee provides a predicate to be used in combination with teeLoopback() filter to implement shadow traffic, that can be scaled up and down, if used with Traffic() predicate.
Package tee provides a predicate to be used in combination with teeLoopback() filter to implement shadow traffic, that can be scaled up and down, if used with Traffic() predicate.
Package traffic implements a predicate to control the matching probability for a given route by setting its weight.
Package traffic implements a predicate to control the matching probability for a given route by setting its weight.

Jump to

Keyboard shortcuts

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