Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for validateStringMatchRegexp (0.22 sec)

  1. pkg/config/validation/virtualservice.go

    			// whereas scheme/method/authority does not:
    			// https://github.com/envoyproxy/envoy/blob/v1.29.2/api/envoy/type/matcher/string.proto#L38
    			errs = appendErrors(errs, validateStringMatchRegexp(match.GetUri(), "uri"))
    			errs = appendErrors(errs, validateStringMatch(match.GetScheme(), "scheme"))
    			errs = appendErrors(errs, validateStringMatch(match.GetMethod(), "method"))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:27 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  2. pkg/config/validation/validation.go

    		if sm.GetPrefix() == "" {
    			return fmt.Errorf("%q: prefix string match should not be empty", where)
    		}
    	case *networking.StringMatch_Regex:
    		return validateStringMatchRegexp(sm, where)
    	}
    	return nil
    }
    
    func validateStringMatchRegexp(sm *networking.StringMatch, where string) error {
    	switch sm.GetMatchType().(type) {
    	case *networking.StringMatch_Regex:
    	default:
    		return nil
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
Back to top