-
Notifications
You must be signed in to change notification settings - Fork 15
/
analyze_appProtectWAFv4_directives.gen.go
88 lines (84 loc) · 2.83 KB
/
analyze_appProtectWAFv4_directives.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/**
* Copyright (c) F5, Inc.
*
* This source code is licensed under the Apache License, Version 2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
// Code generated by generator; DO NOT EDIT.
// All the definitions are extracted from the source code
// Each bit mask describes these behaviors:
// - how many arguments the directive can take
// - whether or not it is a block directive
// - whether this is a flag (takes one argument that's either "on" or "off")
// - which contexts it's allowed to be in
package crossplane
var appProtectWAFv4Directives = map[string][]uint{
"app_protect_app_name": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake1,
},
"app_protect_compressed_requests_action": {
ngxHTTPMainConf | ngxConfTake1,
},
"app_protect_config_set_timeout": {
ngxHTTPMainConf | ngxConfTake1,
},
"app_protect_cookie_seed": {
ngxHTTPMainConf | ngxConfTake1,
},
"app_protect_cpu_thresholds": {
ngxHTTPMainConf | ngxConfTake2,
},
"app_protect_custom_log_attribute": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake2,
},
"app_protect_enable": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfFlag,
},
"app_protect_enforcer_address": {
ngxHTTPMainConf | ngxConfTake1,
},
"app_protect_enforcer_memory_limit_mb": {
ngxHTTPMainConf | ngxConfTake1,
},
"app_protect_failure_mode_action": {
ngxHTTPMainConf | ngxConfTake1,
},
"app_protect_global_settings": {
ngxHTTPMainConf | ngxConfTake1,
},
"app_protect_logging_str": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake1,
},
"app_protect_physical_memory_util_thresholds": {
ngxHTTPMainConf | ngxConfTake2,
},
"app_protect_policy_file": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake1,
},
"app_protect_reconnect_period_seconds": {
ngxHTTPMainConf | ngxConfTake1,
},
"app_protect_request_buffer_overflow_action": {
ngxHTTPMainConf | ngxConfTake1,
},
"app_protect_response_enforcement_disable": {
ngxHTTPMainConf | ngxConfTake1,
},
"app_protect_security_log": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake2,
},
"app_protect_security_log_enable": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfFlag,
},
"app_protect_streaming_buffer_watermarks": {
ngxHTTPMainConf | ngxConfTake2,
},
"app_protect_user_defined_signatures": {
ngxHTTPMainConf | ngxConfTake1,
},
}
// MatchAppProtectWAFv4 is a MatchFunc for App Protect v4 module.
func MatchAppProtectWAFv4(directive string) ([]uint, bool) {
m, ok := appProtectWAFv4Directives[directive]
return m, ok
}