up
This commit is contained in:
parent
a8321b5cc5
commit
42341222df
2 changed files with 11 additions and 4 deletions
|
@ -34,8 +34,9 @@ func GetHookEnv(w *WaapRuntimeConfig, request ParsedRequest) map[string]interfac
|
|||
"RemoveInbandRuleByID": w.RemoveInbandRuleByID,
|
||||
"RemoveOutbandRuleByID": w.RemoveOutbandRuleByID,
|
||||
"SetAction": w.SetAction,
|
||||
"SetActionByTag": w.SetActionByTag,
|
||||
"SetHTTPCode": w.SetHTTPCode,
|
||||
"SetActionByID": w.SetActionnByID,
|
||||
"SetActionByID": w.SetActionByID,
|
||||
"CancelEvent": w.CancelEvent,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,6 +53,7 @@ type WaapTempResponse struct {
|
|||
type WaapRuntimeConfig struct {
|
||||
Name string
|
||||
OutOfBandRules []WaapCollection
|
||||
//OutOfBandEngine XXX
|
||||
InBandRules []WaapCollection
|
||||
DefaultRemediation string
|
||||
CompiledOnLoad []Hook
|
||||
|
@ -263,7 +264,12 @@ func (w *WaapRuntimeConfig) CancelEvent() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (w *WaapRuntimeConfig) SetActionnByID(id int, action string) error {
|
||||
func (w *WaapRuntimeConfig) SetActionByTag(tag string, action string) error {
|
||||
panic("not implemented")
|
||||
return nil
|
||||
}
|
||||
|
||||
func (w *WaapRuntimeConfig) SetActionByID(id int, action string) error {
|
||||
panic("not implemented")
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue