- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for StringMatcherExact (0.32 sec)
-
pilot/pkg/security/authz/matcher/string.go
return &matcher.StringMatcher{ IgnoreCase: ignoreCase, MatchPattern: &matcher.StringMatcher_Suffix{ Suffix: suffix, }, } } // StringMatcherExact create a string matcher for exact matching. func StringMatcherExact(exact string, ignoreCase bool) *matcher.StringMatcher { return &matcher.StringMatcher{ IgnoreCase: ignoreCase, MatchPattern: &matcher.StringMatcher_Exact{ Exact: exact, },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 25 10:39:25 UTC 2024 - 3.5K bytes - Viewed (0) -
pilot/pkg/security/authz/matcher/header_test.go
}{ { Name: "exact match", K: ":path", V: "/productpage", Expect: &routepb.HeaderMatcher{ Name: ":path", HeaderMatchSpecifier: &routepb.HeaderMatcher_StringMatch{ StringMatch: StringMatcherExact("/productpage", false), }, }, }, { Name: "suffix match", K: ":path", V: "*/productpage*", Expect: &routepb.HeaderMatcher{ Name: ":path",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 17 22:42:11 UTC 2023 - 6.3K bytes - Viewed (0) -
pilot/pkg/security/authz/matcher/header.go
StringMatch: StringMatcherPrefix(v[:len(v)-1], false), }, } } return &routepb.HeaderMatcher{ Name: k, HeaderMatchSpecifier: &routepb.HeaderMatcher_StringMatch{ StringMatch: StringMatcherExact(v, false), }, } } // HostMatcherWithRegex creates a host matcher for a host using regex for proxies before 1.11. func HostMatcherWithRegex(k, v string) *routepb.HeaderMatcher { var regex string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 17 22:42:11 UTC 2023 - 3.7K bytes - Viewed (0) -
pilot/pkg/security/authz/model/generator.go
} matchSub = matcher.StringMatcherExact(sub, false) } else { matchIss = matchAny matchSub = matcher.StringMatcherSuffix(strings.TrimPrefix(value, "*"), false) } case strings.HasSuffix(value, "*"): if found { matchIss = matcher.StringMatcherExact(iss, false) if sub == "*" { matchSub = matchAny } else {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 03 18:02:42 UTC 2024 - 14.1K bytes - Viewed (0) -
pilot/pkg/security/authz/matcher/string_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 17 22:42:11 UTC 2023 - 5.2K bytes - Viewed (0)