up
This commit is contained in:
parent
a8321b5cc5
commit
42341222df
|
@ -34,8 +34,9 @@ func GetHookEnv(w *WaapRuntimeConfig, request ParsedRequest) map[string]interfac
|
||||||
"RemoveInbandRuleByID": w.RemoveInbandRuleByID,
|
"RemoveInbandRuleByID": w.RemoveInbandRuleByID,
|
||||||
"RemoveOutbandRuleByID": w.RemoveOutbandRuleByID,
|
"RemoveOutbandRuleByID": w.RemoveOutbandRuleByID,
|
||||||
"SetAction": w.SetAction,
|
"SetAction": w.SetAction,
|
||||||
|
"SetActionByTag": w.SetActionByTag,
|
||||||
"SetHTTPCode": w.SetHTTPCode,
|
"SetHTTPCode": w.SetHTTPCode,
|
||||||
"SetActionByID": w.SetActionnByID,
|
"SetActionByID": w.SetActionByID,
|
||||||
"CancelEvent": w.CancelEvent,
|
"CancelEvent": w.CancelEvent,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,8 +51,9 @@ type WaapTempResponse struct {
|
||||||
|
|
||||||
// runtime version of WaapConfig
|
// runtime version of WaapConfig
|
||||||
type WaapRuntimeConfig struct {
|
type WaapRuntimeConfig struct {
|
||||||
Name string
|
Name string
|
||||||
OutOfBandRules []WaapCollection
|
OutOfBandRules []WaapCollection
|
||||||
|
//OutOfBandEngine XXX
|
||||||
InBandRules []WaapCollection
|
InBandRules []WaapCollection
|
||||||
DefaultRemediation string
|
DefaultRemediation string
|
||||||
CompiledOnLoad []Hook
|
CompiledOnLoad []Hook
|
||||||
|
@ -263,7 +264,12 @@ func (w *WaapRuntimeConfig) CancelEvent() error {
|
||||||
return nil
|
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")
|
panic("not implemented")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue