Documentation
¶
Index ¶
Constants ¶
View Source
const (
ModsecurityRuleType = "modsecurity"
)
Variables ¶
This section is empty.
Functions ¶
func SupportedTypes ¶
func SupportedTypes() []string
Types ¶
type CustomRule ¶
type CustomRule struct {
Name string `yaml:"name"`
Severity string `yaml:"severity"`
Zones []string `yaml:"zones"`
Variables []string `yaml:"variables"`
Match Match `yaml:"match"`
Transform []string `yaml:"transform"` //t:lowercase, t:uppercase, etc
And []CustomRule `yaml:"and,omitempty"`
Or []CustomRule `yaml:"or,omitempty"`
BodyType string `yaml:"body_type,omitempty"`
}
type ModsecurityRule ¶
type ModsecurityRule struct {
// contains filtered or unexported fields
}
func (*ModsecurityRule) Build ¶
func (m *ModsecurityRule) Build(rule *CustomRule, appsecRuleName string, appsecRuleDescription string) (string, []uint32, error)
Click to show internal directories.
Click to hide internal directories.