Documentation ¶
Index ¶
- func HeaderMatcher(k, v string) *routepb.HeaderMatcher
- func HostMatcher(k, v string) *routepb.HeaderMatcher
- func MetadataListMatcher(filter string, keys []string, value *matcher.StringMatcher, ...) *matcher.MetadataMatcher
- func MetadataListValueMatcher(filter string, keys []string, value *matcher.ValueMatcher, useExtendedJwt bool) *matcher.MetadataMatcher
- func MetadataStringMatcher(filter, key string, m *matcher.StringMatcher) *matcher.MetadataMatcher
- func MetadataValueMatcher(filter, key string, m *matcher.ValueMatcher) *matcher.MetadataMatcher
- func OrMatcher(matchers []*matcher.ValueMatcher) *matcher.ValueMatcher
- func PathMatcher(path string) *matcher.PathMatcher
- func PathTemplateMatcher(path string) *uri_template.UriTemplateMatchConfig
- func StringMatcher(v string) *matcher.StringMatcher
- func StringMatcherExact(exact string, ignoreCase bool) *matcher.StringMatcher
- func StringMatcherPrefix(prefix string, ignoreCase bool) *matcher.StringMatcher
- func StringMatcherRegex(regex string) *matcher.StringMatcher
- func StringMatcherSuffix(suffix string, ignoreCase bool) *matcher.StringMatcher
- func StringMatcherWithPrefix(v, prefix string) *matcher.StringMatcher
- func StringOrMatcher(vs []string) *matcher.ValueMatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HeaderMatcher ¶
func HeaderMatcher(k, v string) *routepb.HeaderMatcher
HeaderMatcher converts a key, value string pair to a corresponding HeaderMatcher.
func HostMatcher ¶
func HostMatcher(k, v string) *routepb.HeaderMatcher
HostMatcher creates a host matcher for a host.
func MetadataListMatcher ¶
func MetadataListMatcher(filter string, keys []string, value *matcher.StringMatcher, useExtendedJwt bool) *matcher.MetadataMatcher
MetadataListMatcher creates a metadata list matcher for the given path keys and value.
func MetadataListValueMatcher ¶
func MetadataListValueMatcher(filter string, keys []string, value *matcher.ValueMatcher, useExtendedJwt bool) *matcher.MetadataMatcher
MetadataListValueMatcher creates a metadata list matcher for the given path keys and value.
func MetadataStringMatcher ¶
func MetadataStringMatcher(filter, key string, m *matcher.StringMatcher) *matcher.MetadataMatcher
MetadataStringMatcher creates a metadata string matcher for the given filter, key and the string matcher.
func MetadataValueMatcher ¶
func MetadataValueMatcher(filter, key string, m *matcher.ValueMatcher) *matcher.MetadataMatcher
MetadataValueMatcher creates a metadata value matcher for the given filter, key and the string matcher.
func OrMatcher ¶
func OrMatcher(matchers []*matcher.ValueMatcher) *matcher.ValueMatcher
OrMatcher creates an OR matcher for a list of matchers.
func PathMatcher ¶
func PathMatcher(path string) *matcher.PathMatcher
PathMatcher creates a path matcher for a path.
func PathTemplateMatcher ¶
func PathTemplateMatcher(path string) *uri_template.UriTemplateMatchConfig
PatherTemplateMatcher creates a URI template matcher for path.
func StringMatcher ¶
func StringMatcher(v string) *matcher.StringMatcher
StringMatcher creates a string matcher for v.
func StringMatcherExact ¶
func StringMatcherExact(exact string, ignoreCase bool) *matcher.StringMatcher
StringMatcherExact create a string matcher for exact matching.
func StringMatcherPrefix ¶
func StringMatcherPrefix(prefix string, ignoreCase bool) *matcher.StringMatcher
StringMatcherPrefix create a string matcher for prefix matching.
func StringMatcherRegex ¶
func StringMatcherRegex(regex string) *matcher.StringMatcher
StringMatcherRegex creates a regex string matcher for regex.
func StringMatcherSuffix ¶
func StringMatcherSuffix(suffix string, ignoreCase bool) *matcher.StringMatcher
StringMatcherSuffix create a string matcher for suffix matching.
func StringMatcherWithPrefix ¶
func StringMatcherWithPrefix(v, prefix string) *matcher.StringMatcher
StringMatcherWithPrefix creates a string matcher for v with the extra prefix inserted to the created string matcher, note the prefix is ignored if v is wildcard ("*"). The wildcard "*" will be generated as ".+" instead of ".*".
func StringOrMatcher ¶
func StringOrMatcher(vs []string) *matcher.ValueMatcher
StringOrMatcher creates an OR string matcher for a list of values.
Types ¶
This section is empty.