marker

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Once       = "once"
	PerService = "perService"
)

Variables

This section is empty.

Functions

func Install

func Install(name string, m Operate)

Install a strategy

func Mark

func Mark(inv *invocation.Invocation)

Mark mark an invocation with matchName by match policy

func Match

func Match(operator, value, expression string) (bool, error)

match compare value and expression

func Policy added in v2.0.3

func Policy(name string) *config.MatchPolicies

Policy return policy

func SaveMatchPolicy

func SaveMatchPolicy(name, value string, k string) error

SaveMatchPolicy saves match policy

Types

type Operate

type Operate func(value, expression string) bool

Operate decide value match expression or not

Jump to

Keyboard shortcuts

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