-
Notifications
You must be signed in to change notification settings - Fork 15
/
analyze_njs_directives.gen.go
103 lines (99 loc) · 3.69 KB
/
analyze_njs_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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/**
* 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 njsDirectives = map[string][]uint{
"js_access": {
ngxStreamMainConf | ngxStreamSrvConf | ngxConfTake1,
},
"js_body_filter": {
ngxHTTPLocConf | ngxHTTPLifConf | ngxHTTPLmtConf | ngxConfTake12,
},
"js_content": {
ngxHTTPLocConf | ngxHTTPLifConf | ngxHTTPLmtConf | ngxConfTake1,
},
"js_fetch_buffer_size": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake1,
ngxStreamMainConf | ngxStreamSrvConf | ngxConfTake1,
},
"js_fetch_ciphers": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake1,
ngxStreamMainConf | ngxStreamSrvConf | ngxConfTake1,
},
"js_fetch_max_response_buffer_size": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake1,
ngxStreamMainConf | ngxStreamSrvConf | ngxConfTake1,
},
"js_fetch_protocols": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConf1More,
ngxStreamMainConf | ngxStreamSrvConf | ngxConf1More,
},
"js_fetch_timeout": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake1,
ngxStreamMainConf | ngxStreamSrvConf | ngxConfTake1,
},
"js_fetch_trusted_certificate": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake1,
ngxStreamMainConf | ngxStreamSrvConf | ngxConfTake1,
},
"js_fetch_verify": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfFlag,
ngxStreamMainConf | ngxStreamSrvConf | ngxConfFlag,
},
"js_fetch_verify_depth": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake1,
ngxStreamMainConf | ngxStreamSrvConf | ngxConfTake1,
},
"js_filter": {
ngxStreamMainConf | ngxStreamSrvConf | ngxConfTake1,
},
"js_header_filter": {
ngxHTTPLocConf | ngxHTTPLifConf | ngxHTTPLmtConf | ngxConfTake1,
},
"js_import": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake13,
ngxStreamMainConf | ngxStreamSrvConf | ngxConfTake13,
},
"js_path": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake1,
ngxStreamMainConf | ngxStreamSrvConf | ngxConfTake1,
},
"js_periodic": {
ngxHTTPLocConf | ngxConfAny,
ngxStreamSrvConf | ngxConfAny,
},
"js_preload_object": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake13,
ngxStreamMainConf | ngxStreamSrvConf | ngxConfTake13,
},
"js_preread": {
ngxStreamMainConf | ngxStreamSrvConf | ngxConfTake1,
},
"js_set": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake2,
ngxStreamMainConf | ngxStreamSrvConf | ngxConfTake2,
},
"js_shared_dict_zone": {
ngxHTTPMainConf | ngxConf1More,
ngxStreamMainConf | ngxConf1More,
},
"js_var": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake12,
ngxStreamMainConf | ngxStreamSrvConf | ngxConfTake12,
},
}
// MatchNjsLatest is a MatchFunc for the latest version of njs.
func MatchNjsLatest(directive string) ([]uint, bool) {
m, ok := njsDirectives[directive]
return m, ok
}