identification

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MatchFunc

type MatchFunc func(data map[string]interface{}, matcher *matchers.Matcher) (bool, []string)

type Operators

type Operators struct {
	Name              string              `yaml:"name"`
	Matchers          []*matchers.Matcher `yaml:"matchers"`
	MatchersCondition string              `yaml:"matchers-condition"`
	// contains filtered or unexported fields
}

func (*Operators) Compile

func (operators *Operators) Compile() error

func (*Operators) Execute

func (operators *Operators) Execute(data map[string]interface{}, match MatchFunc) ([]string, bool)

func (*Operators) GetMatchersCondition

func (operators *Operators) GetMatchersCondition() matchers.ConditionType

GetMatchersCondition returns the condition for the matchers

type Options

type Options struct {
	SubMatch []*Operators `yaml:"rules"`
}

func ParserHandler

func ParserHandler(path string) ([]*Options, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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