matcher

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMatcher

type IMatcher interface {
	GetPolicyKey() string
	RangeMatches(rDef defs.RequestDef, rvals []interface{}, fMap fm.FunctionMap, fn func(rule []string) bool) error
}

type MatchParameters

type MatchParameters struct {
	// contains filtered or unexported fields
}

func NewMatchParameters

func NewMatchParameters(pDef defs.PolicyDef, pvals []string, rDef defs.RequestDef, rvals []interface{}) *MatchParameters

func (*MatchParameters) Get

func (params *MatchParameters) Get(name string) (interface{}, error)

type Matcher

type Matcher struct {
	// contains filtered or unexported fields
}

func NewMatcher

func NewMatcher(pDef *defs.PolicyDef, policy p.IPolicy, exprRoot *defs.MatcherStage) *Matcher

func (*Matcher) GetPolicyKey

func (m *Matcher) GetPolicyKey() string

func (*Matcher) RangeMatches

func (m *Matcher) RangeMatches(rDef defs.RequestDef, rvals []interface{}, fMap fm.FunctionMap, fn func(rule []string) bool) error

type MatcherNode

type MatcherNode struct {
	// contains filtered or unexported fields
}

func NewMatcherNode

func NewMatcherNode(rule []string) *MatcherNode

func (*MatcherNode) GetOrCreate

func (n *MatcherNode) GetOrCreate(i int, key string, rule []string) *MatcherNode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL