- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for set_regex (0.13 sec)
-
pilot/pkg/simulation/traffic.go
} case *route.RouteMatch_Path: if input.Path != pt.Path { continue } case *route.RouteMatch_SafeRegex: r, err := regexp.Compile(pt.SafeRegex.GetRegex()) if err != nil { sim.t.Fatalf("invalid regex %v: %v", pt.SafeRegex.GetRegex(), err) } if !r.MatchString(input.Path) { continue } default: sim.t.Fatalf("unknown route path type %T", pt) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 19.4K bytes - Viewed (0) -
pkg/config/validation/virtualservice.go
errs = appendErrors(errs, ValidateHTTPHeaderNameOrJwtClaimRoute(name)) // `*` is NOT a RE2 style regex, it will be translated as present_match. if header != nil && header.GetRegex() != "*" { errs = appendErrors(errs, validateStringMatch(header, "withoutHeaders")) } } // uri allows empty prefix match:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:27 UTC 2024 - 9.3K bytes - Viewed (0) -
pkg/config/validation/validation.go
} func validateStringMatchRegexp(sm *networking.StringMatch, where string) error { switch sm.GetMatchType().(type) { case *networking.StringMatch_Regex: default: return nil } re := sm.GetRegex() if re == "" { return fmt.Errorf("%q: regex string match should not be empty", where) } return validateStringRegexp(re, where) } func validateStringRegexp(re string, where string) error {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:33 UTC 2024 - 107.2K bytes - Viewed (0) -
pilot/pkg/config/kube/gateway/conversion.go
case *istio.StringMatch_Prefix: return len(match.Uri.GetPrefix()) case *istio.StringMatch_Exact: return len(match.Uri.GetExact()) case *istio.StringMatch_Regex: return len(match.Uri.GetRegex()) } // should not happen return -1 } func parentMeta(obj config.Config, sectionName *k8s.SectionName) map[string]string {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 14 04:34:37 UTC 2024 - 84.7K bytes - Viewed (0)