Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuleAction ¶
type RuleString ¶
type SimplifiedRule ¶
type SimplifiedRule struct {
Name string
Disabled bool
Event event.EventType
IgnoreBots bool
Strings map[string]RuleString
Program cel.Program
Actions []RuleAction
RawExpression string
}
func Load ¶
func Load(dir string) ([]*SimplifiedRule, map[string]*SimplifiedRule, error)
func Parse ¶
func Parse(filePath string) ([]*SimplifiedRule, error)
type YAMLRule ¶
type YAMLRule struct {
Rule struct {
Name string `yaml:"name"`
Disabled bool `yaml:"disabled"`
Meta RuleMeta `yaml:"meta"`
Strings []RuleString `yaml:"strings"`
Expression string `yaml:"expression"`
Actions []RuleAction `yaml:"actions"`
} `yaml:"rule"`
}
Click to show internal directories.
Click to hide internal directories.