istio: istio.io/istio/pilot/pkg/security/authz/model/matcher Index | Files

package matcher

import "istio.io/istio/pilot/pkg/security/authz/model/matcher"

Index

Package Files

cidr.go header.go metadata.go string.go

func CidrRange Uses

func CidrRange(v string) (*core.CidrRange, error)

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 Uses

func HeaderMatcher(k, v string) *route.HeaderMatcher

HeaderMatcher converts a key, value string pair to a corresponding HeaderMatcher.

func MetadataListMatcher Uses

func MetadataListMatcher(filter string, keys []string, value string, treatWildcardAsRequired bool) *envoy_matcher.MetadataMatcher

MetadataListMatcher creates a metadata list matcher for the given path keys and value. If treatWildcardAsRequired is true, the wildcard "*" will be generated as ".+" instead of ".*".

func MetadataStringMatcher Uses

func MetadataStringMatcher(filter, key string, m *envoy_matcher.StringMatcher) *envoy_matcher.MetadataMatcher

MetadataStringMatcher creates a metadata string matcher for the given filter, key and the string matcher.

func StringMatcher Uses

func StringMatcher(v string, treatWildcardAsRequired bool) *envoy_matcher.StringMatcher

StringMatcher creates a string matcher for v.

func StringMatcherRegex Uses

func StringMatcherRegex(regex string) *envoy_matcher.StringMatcher

StringMatcherRegex creates a regex string matcher for regex.

func StringMatcherWithPrefix Uses

func StringMatcherWithPrefix(v, prefix string, treatWildcardAsRequired bool) *envoy_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 ("*"). If treatWildcardAsRequired is true, the wildcard "*" will be generated as ".+" instead of ".*".

Package matcher imports 7 packages (graph) and is imported by 1 packages. Updated 2019-12-05. Refresh now. Tools for package owners.