-
Notifications
You must be signed in to change notification settings - Fork 346
/
predicates.go
49 lines (46 loc) · 1.93 KB
/
predicates.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package predicates
import "errors"
// ErrInvalidPredicateParameters is used in case of invalid predicate parameters.
var ErrInvalidPredicateParameters = errors.New("invalid predicate parameters")
// All Skipper Predicate names
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"
)