You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: internal/ir/xds.go
+52-41
Original file line number
Diff line number
Diff line change
@@ -35,47 +35,49 @@ const (
35
35
)
36
36
37
37
var (
38
-
ErrListenerNameEmpty=errors.New("field Name must be specified")
39
-
ErrListenerAddressInvalid=errors.New("field Address must be a valid IP address")
40
-
ErrListenerPortInvalid=errors.New("field Port specified is invalid")
41
-
ErrHTTPListenerHostnamesEmpty=errors.New("field Hostnames must be specified with at least a single hostname entry")
42
-
ErrTCPRouteSNIsEmpty=errors.New("field SNIs must be specified with at least a single server name entry")
43
-
ErrTLSServerCertEmpty=errors.New("field ServerCertificate must be specified")
44
-
ErrTLSPrivateKey=errors.New("field PrivateKey must be specified")
45
-
ErrRouteNameEmpty=errors.New("field Name must be specified")
46
-
ErrHTTPRouteHostnameEmpty=errors.New("field Hostname must be specified")
47
-
ErrDestinationNameEmpty=errors.New("field Name must be specified")
48
-
ErrDestEndpointHostInvalid=errors.New("field Address must be a valid IP or FQDN address")
49
-
ErrDestEndpointPortInvalid=errors.New("field Port specified is invalid")
50
-
ErrDestEndpointUDSPortInvalid=errors.New("field Port must not be specified for Unix Domain Socket address")
51
-
ErrDestEndpointUDSHostInvalid=errors.New("field Host must not be specified for Unix Domain Socket address")
52
-
ErrStringMatchConditionInvalid=errors.New("only one of the Exact, Prefix, SafeRegex or Distinct fields must be set")
53
-
ErrStringMatchInvertDistinctInvalid=errors.New("only one of the Invert or Distinct fields can be set")
54
-
ErrStringMatchNameIsEmpty=errors.New("field Name must be specified")
55
-
ErrDirectResponseStatusInvalid=errors.New("only HTTP status codes 100 - 599 are supported for DirectResponse")
56
-
ErrRedirectUnsupportedStatus=errors.New("only HTTP status codes 301 and 302 are supported for redirect filters")
57
-
ErrRedirectUnsupportedScheme=errors.New("only http and https are supported for the scheme in redirect filters")
58
-
ErrHTTPPathModifierDoubleReplace=errors.New("redirect filter cannot have a path modifier that supplies more than one of fullPathReplace, prefixMatchReplace and regexMatchReplace")
59
-
ErrHTTPPathModifierNoReplace=errors.New("redirect filter cannot have a path modifier that does not supply either fullPathReplace, prefixMatchReplace or regexMatchReplace")
60
-
ErrHTTPPathRegexModifierNoSetting=errors.New("redirect filter cannot have a path modifier that does not supply either fullPathReplace, prefixMatchReplace or regexMatchReplace")
61
-
ErrHTTPHostModifierDoubleReplace=errors.New("redirect filter cannot have a host modifier that supplies more than one of Hostname, Header and Backend")
62
-
ErrAddHeaderEmptyName=errors.New("header modifier filter cannot configure a header without a name to be added")
63
-
ErrAddHeaderDuplicate=errors.New("header modifier filter attempts to add the same header more than once (case insensitive)")
64
-
ErrRemoveHeaderDuplicate=errors.New("header modifier filter attempts to remove the same header more than once (case insensitive)")
65
-
ErrLoadBalancerInvalid=errors.New("loadBalancer setting is invalid, only one setting can be set")
66
-
ErrHealthCheckTimeoutInvalid=errors.New("field HealthCheck.Timeout must be specified")
67
-
ErrHealthCheckIntervalInvalid=errors.New("field HealthCheck.Interval must be specified")
68
-
ErrHealthCheckUnhealthyThresholdInvalid=errors.New("field HealthCheck.UnhealthyThreshold should be greater than 0")
69
-
ErrHealthCheckHealthyThresholdInvalid=errors.New("field HealthCheck.HealthyThreshold should be greater than 0")
70
-
ErrHealthCheckerInvalid=errors.New("health checker setting is invalid, only one health checker can be set")
71
-
ErrHCHTTPHostInvalid=errors.New("field HTTPHealthChecker.Host should be specified")
72
-
ErrHCHTTPPathInvalid=errors.New("field HTTPHealthChecker.Path should be specified")
73
-
ErrHCHTTPMethodInvalid=errors.New("only one of the GET, HEAD, POST, DELETE, OPTIONS, TRACE, PATCH of HTTPHealthChecker.Method could be set")
74
-
ErrHCHTTPExpectedStatusesInvalid=errors.New("field HTTPHealthChecker.ExpectedStatuses should be specified")
75
-
ErrHealthCheckPayloadInvalid=errors.New("one of Text, Binary fields must be set in payload")
76
-
ErrHTTPStatusInvalid=errors.New("HTTPStatus should be in [200,600)")
77
-
ErrOutlierDetectionBaseEjectionTimeInvalid=errors.New("field OutlierDetection.BaseEjectionTime must be specified")
78
-
ErrOutlierDetectionIntervalInvalid=errors.New("field OutlierDetection.Interval must be specified")
38
+
ErrListenerNameEmpty=errors.New("field Name must be specified")
39
+
ErrListenerAddressInvalid=errors.New("field Address must be a valid IP address")
40
+
ErrListenerPortInvalid=errors.New("field Port specified is invalid")
41
+
ErrHTTPListenerHostnamesEmpty=errors.New("field Hostnames must be specified with at least a single hostname entry")
42
+
ErrTCPRouteSNIsEmpty=errors.New("field SNIs must be specified with at least a single server name entry")
43
+
ErrTLSServerCertEmpty=errors.New("field ServerCertificate must be specified")
44
+
ErrTLSPrivateKey=errors.New("field PrivateKey must be specified")
45
+
ErrRouteNameEmpty=errors.New("field Name must be specified")
46
+
ErrHTTPRouteHostnameEmpty=errors.New("field Hostname must be specified")
47
+
ErrDestinationNameEmpty=errors.New("field Name must be specified")
48
+
ErrDestEndpointHostInvalid=errors.New("field Address must be a valid IP or FQDN address")
49
+
ErrDestEndpointPortInvalid=errors.New("field Port specified is invalid")
50
+
ErrDestEndpointUDSPortInvalid=errors.New("field Port must not be specified for Unix Domain Socket address")
51
+
ErrDestEndpointUDSHostInvalid=errors.New("field Host must not be specified for Unix Domain Socket address")
52
+
ErrStringMatchConditionInvalid=errors.New("only one of the Exact, Prefix, SafeRegex or Distinct fields must be set")
53
+
ErrStringMatchInvertDistinctInvalid=errors.New("only one of the Invert or Distinct fields can be set")
54
+
ErrStringMatchNameIsEmpty=errors.New("field Name must be specified")
55
+
ErrDirectResponseStatusInvalid=errors.New("only HTTP status codes 100 - 599 are supported for DirectResponse")
56
+
ErrRedirectUnsupportedStatus=errors.New("only HTTP status codes 301 and 302 are supported for redirect filters")
57
+
ErrRedirectUnsupportedScheme=errors.New("only http and https are supported for the scheme in redirect filters")
58
+
ErrHTTPPathModifierDoubleReplace=errors.New("redirect filter cannot have a path modifier that supplies more than one of fullPathReplace, prefixMatchReplace and regexMatchReplace")
59
+
ErrHTTPPathModifierNoReplace=errors.New("redirect filter cannot have a path modifier that does not supply either fullPathReplace, prefixMatchReplace or regexMatchReplace")
60
+
ErrHTTPPathRegexModifierNoSetting=errors.New("redirect filter cannot have a path modifier that does not supply either fullPathReplace, prefixMatchReplace or regexMatchReplace")
61
+
ErrHTTPHostModifierDoubleReplace=errors.New("redirect filter cannot have a host modifier that supplies more than one of Hostname, Header and Backend")
62
+
ErrAddHeaderEmptyName=errors.New("header modifier filter cannot configure a header without a name to be added")
63
+
ErrAddHeaderDuplicate=errors.New("header modifier filter attempts to add the same header more than once (case insensitive)")
64
+
ErrRemoveHeaderDuplicate=errors.New("header modifier filter attempts to remove the same header more than once (case insensitive)")
65
+
ErrLoadBalancerInvalid=errors.New("loadBalancer setting is invalid, only one setting can be set")
66
+
ErrHealthCheckTimeoutInvalid=errors.New("field HealthCheck.Timeout must be specified")
67
+
ErrHealthCheckIntervalInvalid=errors.New("field HealthCheck.Interval must be specified")
68
+
ErrHealthCheckUnhealthyThresholdInvalid=errors.New("field HealthCheck.UnhealthyThreshold should be greater than 0")
69
+
ErrHealthCheckHealthyThresholdInvalid=errors.New("field HealthCheck.HealthyThreshold should be greater than 0")
70
+
ErrHealthCheckerInvalid=errors.New("health checker setting is invalid, only one health checker can be set")
71
+
ErrHCHTTPHostInvalid=errors.New("field HTTPHealthChecker.Host should be specified")
72
+
ErrHCHTTPPathInvalid=errors.New("field HTTPHealthChecker.Path should be specified")
73
+
ErrHCHTTPMethodInvalid=errors.New("only one of the GET, HEAD, POST, DELETE, OPTIONS, TRACE, PATCH of HTTPHealthChecker.Method could be set")
74
+
ErrHCHTTPExpectedStatusesInvalid=errors.New("field HTTPHealthChecker.ExpectedStatuses should be specified")
75
+
ErrHealthCheckPayloadInvalid=errors.New("one of Text, Binary fields must be set in payload")
76
+
ErrHTTPStatusInvalid=errors.New("HTTPStatus should be in [200,600)")
77
+
ErrOutlierDetectionBaseEjectionTimeInvalid=errors.New("field OutlierDetection.BaseEjectionTime must be specified")
78
+
ErrOutlierDetectionIntervalInvalid=errors.New("field OutlierDetection.Interval must be specified")
79
+
ErrBothXForwardedForAndCustomHeaderInvalid=errors.New("only one of ClientIPDetection.XForwardedFor and ClientIPDetection.CustomHeader must be set")
80
+
ErrBothNumTrustedHopsAndTrustedCIDRsInvalid=errors.New("only one of ClientIPDetection.XForwardedFor.NumTrustedHops and ClientIPDetection.XForwardedFor.TrustedCIDRs must be set")
0 commit comments