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
Click to show internal directories.
Click to hide internal directories.