import "istio.io/istio/pilot/pkg/security/authz/matcher"
cidr.go header.go metadata.go string.go
CidrRange converts a CIDR or a single IP string to a corresponding CidrRange. For a single IP string the converted CidrRange prefix is either 32 (for ipv4) or 128 (for ipv6).
func HeaderMatcher(k, v string) *routepb.HeaderMatcher
HeaderMatcher converts a key, value string pair to a corresponding HeaderMatcher.
MetadataListMatcher creates a metadata list matcher for the given path keys and value.
func MetadataStringMatcher(filter, key string, m *matcherpb.StringMatcher) *matcherpb.MetadataMatcher
MetadataStringMatcher creates a metadata string matcher for the given filter, key and the string matcher.
func PathMatcher(path string) *matcherpb.PathMatcher
PathMatcher creates a path matcher for a path.
func StringMatcher(v string) *matcherpb.StringMatcher
StringMatcher creates a string matcher for v.
func StringMatcherRegex(regex string) *matcherpb.StringMatcher
StringMatcherRegex creates a regex string matcher for regex.
func StringMatcherWithPrefix(v, prefix string) *matcherpb.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 ".*".
Package matcher imports 7 packages (graph) and is imported by 1 packages. Updated 2020-08-14. Refresh now. Tools for package owners.