Documentation ¶
Index ¶
- type WAF
- func (this *WAF) AddRuleGroup(ruleGroup *rules.RuleGroup)
- func (this *WAF) ContainsGroupCode(code string) bool
- func (this *WAF) Copy() *WAF
- func (this *WAF) CountInboundRuleSets() int
- func (this *WAF) CountOutboundRuleSets() int
- func (this *WAF) FindCheckpointInstance(prefix string) checkpoints.CheckpointInterface
- func (this *WAF) FindRuleGroup(ruleGroupId string) *rules.RuleGroup
- func (this *WAF) FindRuleGroupWithCode(ruleGroupCode string) *rules.RuleGroup
- func (this *WAF) Init() error
- func (this *WAF) MatchKeyword(keyword string) (matched bool, name string, tags []string)
- func (this *WAF) MatchRequest(rawReq *http.Request, writer http.ResponseWriter) (goNext bool, set *rules.RuleSet, err error)
- func (this *WAF) MatchResponse(rawReq *http.Request, rawResp *http.Response, writer http.ResponseWriter) (goNext bool, set *rules.RuleSet, err error)
- func (this *WAF) MergeTemplate() (changedItems []string)
- func (this *WAF) MoveInboundRuleGroup(fromIndex int, toIndex int)
- func (this *WAF) MoveOutboundRuleGroup(fromIndex int, toIndex int)
- func (this *WAF) OnAction(onActionCallback func(action actions.ActionString) (goNext bool))
- func (this *WAF) RemoveRuleGroup(ruleGroupId string)
- func (this *WAF) Save(path string) error
- func (this *WAF) Start()
- func (this *WAF) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WAF ¶
type WAF struct { Id string `yaml:"id" json:"id"` On bool `yaml:"on" json:"on"` Name string `yaml:"name" json:"name"` Inbound []*rules.RuleGroup `yaml:"inbound" json:"inbound"` Outbound []*rules.RuleGroup `yaml:"outbound" json:"outbound"` CreatedVersion string `yaml:"createdVersion" json:"createdVersion"` ActionBlock *actions.BlockAction `yaml:"actionBlock" json:"actionBlock"` // action block config // contains filtered or unexported fields }
func NewWAFFromFile ¶
func (*WAF) AddRuleGroup ¶
func (*WAF) ContainsGroupCode ¶
func (*WAF) CountInboundRuleSets ¶
func (*WAF) CountOutboundRuleSets ¶
func (*WAF) FindCheckpointInstance ¶
func (this *WAF) FindCheckpointInstance(prefix string) checkpoints.CheckpointInterface
func (*WAF) FindRuleGroup ¶
func (*WAF) FindRuleGroupWithCode ¶
func (*WAF) MatchKeyword ¶ added in v0.1.7
match keyword
func (*WAF) MatchRequest ¶
func (*WAF) MatchResponse ¶
func (*WAF) MergeTemplate ¶
func (this *WAF) MergeTemplate() (changedItems []string)
merge with template
func (*WAF) MoveInboundRuleGroup ¶
func (*WAF) MoveOutboundRuleGroup ¶
func (*WAF) OnAction ¶
func (this *WAF) OnAction(onActionCallback func(action actions.ActionString) (goNext bool))
func (*WAF) RemoveRuleGroup ¶
func (this *WAF) RemoveRuleGroup(ruleGroupId string)
Click to show internal directories.
Click to hide internal directories.