customrules

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomRule

type CustomRule struct {
	ID          uuid.UUID                 `json:"id"`
	Name        string                    `json:"name"`
	Description string                    `json:"description"`
	Severity    severity.Severity         `json:"severity"`
	Confidence  confidence.Confidence     `json:"confidence"`
	Type        customRulesEnums.MathType `json:"type"`
	Expressions []string                  `json:"expressions"`
	Tool        tools.Tool                `json:"tool"`
}

func (*CustomRule) GetExpressions

func (c *CustomRule) GetExpressions() (expressions []*regexp.Regexp)

func (*CustomRule) GetRuleType

func (c *CustomRule) GetRuleType() text.MatchType

func (*CustomRule) ToString

func (c *CustomRule) ToString() string

func (*CustomRule) Validate

func (c *CustomRule) Validate() error

Jump to

Keyboard shortcuts

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