Documentation ¶
Index ¶
- Constants
- Variables
- func ActionsMap() map[string]engine.RuleAction
- type Allow
- type Append
- type Auditlog
- type Block
- type Capture
- type Chain
- type Ctl
- type Deny
- type Drop
- type Exec
- type Expirevar
- type Id
- type InitCol
- type Log
- type Logdata
- type Maturity
- type Msg
- type MultiMatch
- type NoAuditlog
- type Nolog
- type Pass
- type Phase
- type Prepend
- type Rev
- type Setvar
- type Severity
- type Skip
- type SkipAfter
- type Status
- type T
- type Tag
- type Ver
Constants ¶
View Source
const ( CTL_REMOVE_TARGET_BY_ID = 0 CTL_REMOVE_TARGET_BY_TAG = 1 CTL_REMOVE_TARGET_BY_MSG = 2 CTL_AUDIT_ENGINE = 3 CTL_AUDIT_LOG_PARTS = 4 CTL_FORCE_REQUEST_BODY_VAR = 5 CTL_REQUEST_BODY_ACCESS = 6 CTL_REQUEST_BODY_LIMIT = 7 CTL_RULE_ENGINE = 8 CTL_RULE_REMOVE_BY_ID = 9 CTL_RULE_REMOVE_BY_MSG = 10 CTL_RULE_REMOVE_BY_TAG = 11 CTL_HASH_ENGINE = 12 CTL_HASH_ENFORCEMENT = 13 CTL_REQUEST_BODY_PROCESSOR = 14 CTL_RESPONSE_BODY_ACCESS = 15 CTL_RESPONSE_BODY_LIMIT = 16 CTL_DEBUG_LOG_LEVEL = 17 )
Variables ¶
View Source
var HTTP_STATUSES = []int{100, 101, 102, 103, 200,
201, 202, 203, 200, 204, 205, 206, 207, 208,
226, 300, 301, 302, 303, 304, 305, 306, 307,
302, 308, 301, 400, 401, 402, 403, 404, 405,
406, 407, 408, 409, 410, 411, 412, 413, 414,
415, 416, 417, 418, 421, 422, 423, 424, 426,
428, 429, 431, 451, 500, 501, 502, 503, 504,
505, 506, 507, 508, 510, 511, 511}
Functions ¶
func ActionsMap ¶
func ActionsMap() map[string]engine.RuleAction
Types ¶
type Allow ¶
type Allow struct {
// contains filtered or unexported fields
}
0 nothing, 1 phase, 2 request
type InitCol ¶
type InitCol struct {
// contains filtered or unexported fields
}
Initializes a persistent collection and add the data to the standard collections engine.
type MultiMatch ¶
type MultiMatch struct { }
func (*MultiMatch) Evaluate ¶
func (a *MultiMatch) Evaluate(r *engine.Rule, tx *engine.Transaction)
func (*MultiMatch) Type ¶
func (a *MultiMatch) Type() int
type NoAuditlog ¶
type NoAuditlog struct { }
func (*NoAuditlog) Evaluate ¶
func (a *NoAuditlog) Evaluate(r *engine.Rule, tx *engine.Transaction)
func (*NoAuditlog) Type ¶
func (a *NoAuditlog) Type() int
type Prepend ¶ added in v1.2.0
type Prepend struct {
// contains filtered or unexported fields
}
type SkipAfter ¶
type SkipAfter struct {
// contains filtered or unexported fields
}
Source Files ¶
- actions.go
- allow.go
- append.go
- auditlog.go
- block.go
- capture.go
- chain.go
- ctl.go
- deny.go
- drop.go
- exec.go
- expirevar.go
- id.go
- initcol.go
- log.go
- logdata.go
- maturity.go
- msg.go
- multimatch.go
- noauditlog.go
- nolog.go
- pass.go
- phase.go
- prepend.go
- rev.go
- setvar.go
- severity.go
- skip.go
- skipafter.go
- status.go
- t.go
- tag.go
- ver.go
Click to show internal directories.
Click to hide internal directories.