-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathBUILD
217 lines (205 loc) · 6.56 KB
/
BUILD
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
load(
"@envoy//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_package",
)
licenses(["notice"]) # Apache 2
envoy_package()
envoy_cc_library(
name = "adaptive_load_controller_impl",
srcs = [
"adaptive_load_controller_impl.cc",
],
hdrs = [
"adaptive_load_controller_impl.h",
],
repository = "@envoy",
visibility = ["//visibility:public"],
deps = [
":metrics_plugin_impl",
":plugin_loader",
"//api/adaptive_load:adaptive_load_proto_cc_proto",
"//api/client:base_cc_proto",
"//include/nighthawk/adaptive_load:adaptive_load_controller",
"//include/nighthawk/adaptive_load:metrics_evaluator",
"//include/nighthawk/adaptive_load:scoring_function",
"//include/nighthawk/adaptive_load:session_spec_proto_helper",
"//include/nighthawk/adaptive_load:step_controller",
"//include/nighthawk/common:nighthawk_service_client",
"@envoy//source/common/protobuf:utility_lib_with_external_headers",
],
)
envoy_cc_library(
name = "adaptive_load_client_main",
srcs = [
"adaptive_load_client_main.cc",
],
hdrs = [
"adaptive_load_client_main.h",
],
repository = "@envoy",
visibility = ["//visibility:public"],
deps = [
":adaptive_load_controller_impl",
":config_validator_impl",
":input_variable_setter_impl",
":metrics_evaluator_impl",
":metrics_plugin_impl",
":scoring_function_impl",
":session_spec_proto_helper_impl",
":step_controller_impl",
"//api/client:base_cc_proto",
"//api/client:grpc_service_lib",
"//source/common:nighthawk_common_lib",
"@envoy//source/common/common:assert_lib_with_external_headers",
"@envoy//source/common/common:minimal_logger_lib_with_external_headers",
"@envoy//source/common/event:real_time_system_lib_with_external_headers",
"@envoy//source/common/grpc:google_grpc_utils_lib_with_external_headers",
],
)
envoy_cc_library(
name = "config_validator_impl",
srcs = [
"config_validator_impl.cc",
],
hdrs = [
"config_validator_impl.h",
],
repository = "@envoy",
visibility = ["//visibility:public"],
deps = [
"//include/nighthawk/adaptive_load:config_validator",
"@envoy//source/common/config:utility_lib_with_external_headers",
"@envoy//source/common/protobuf:protobuf_with_external_headers",
],
)
envoy_cc_library(
name = "input_variable_setter_impl",
srcs = [
"input_variable_setter_impl.cc",
],
hdrs = [
"input_variable_setter_impl.h",
],
repository = "@envoy",
visibility = ["//visibility:public"],
deps = [
"//include/nighthawk/adaptive_load:input_variable_setter",
"@envoy//source/common/config:utility_lib_with_external_headers",
"@envoy//source/common/protobuf:protobuf_with_external_headers",
],
)
envoy_cc_library(
name = "metrics_evaluator_impl",
srcs = [
"metrics_evaluator_impl.cc",
],
hdrs = [
"metrics_evaluator_impl.h",
],
repository = "@envoy",
visibility = ["//visibility:public"],
deps = [
":metrics_plugin_impl",
":plugin_loader",
"//api/adaptive_load:adaptive_load_proto_cc_proto",
"//api/client:base_cc_proto",
"//include/nighthawk/adaptive_load:adaptive_load_controller",
"//include/nighthawk/adaptive_load:metrics_evaluator",
"//include/nighthawk/adaptive_load:scoring_function",
],
)
envoy_cc_library(
name = "metrics_plugin_impl",
srcs = [
"metrics_plugin_impl.cc",
],
hdrs = [
"metrics_plugin_impl.h",
],
repository = "@envoy",
visibility = ["//visibility:public"],
deps = [
"//include/nighthawk/adaptive_load:metrics_plugin",
"@envoy//source/common/common:assert_lib_with_external_headers",
"@envoy//source/common/common:minimal_logger_lib_with_external_headers",
"@envoy//source/common/config:utility_lib_with_external_headers",
"@envoy//source/common/protobuf:protobuf_with_external_headers",
],
)
envoy_cc_library(
name = "plugin_loader",
srcs = [
"plugin_loader.cc",
],
hdrs = [
"plugin_loader.h",
],
repository = "@envoy",
visibility = ["//visibility:public"],
deps = [
"//include/nighthawk/adaptive_load:input_variable_setter",
"//include/nighthawk/adaptive_load:metrics_plugin",
"//include/nighthawk/adaptive_load:scoring_function",
"//include/nighthawk/adaptive_load:step_controller",
"//source/common:nighthawk_common_lib",
"@envoy//source/common/config:utility_lib_with_external_headers",
],
)
envoy_cc_library(
name = "scoring_function_impl",
srcs = [
"scoring_function_impl.cc",
],
hdrs = [
"scoring_function_impl.h",
],
repository = "@envoy",
visibility = ["//visibility:public"],
deps = [
"//include/nighthawk/adaptive_load:scoring_function",
"@envoy//source/common/config:utility_lib_with_external_headers",
"@envoy//source/common/protobuf:protobuf_with_external_headers",
],
)
envoy_cc_library(
name = "session_spec_proto_helper_impl",
srcs = [
"session_spec_proto_helper_impl.cc",
],
hdrs = [
"session_spec_proto_helper_impl.h",
],
repository = "@envoy",
visibility = ["//visibility:public"],
deps = [
":metrics_plugin_impl",
":plugin_loader",
"//include/nighthawk/adaptive_load:metrics_plugin",
"//include/nighthawk/adaptive_load:scoring_function",
"//include/nighthawk/adaptive_load:session_spec_proto_helper",
"//include/nighthawk/adaptive_load:step_controller",
"@envoy//source/common/config:utility_lib_with_external_headers",
"@envoy//source/common/protobuf:protobuf_with_external_headers",
],
)
envoy_cc_library(
name = "step_controller_impl",
srcs = [
"step_controller_impl.cc",
],
hdrs = [
"step_controller_impl.h",
],
repository = "@envoy",
visibility = ["//visibility:public"],
deps = [
":input_variable_setter_impl",
":plugin_loader",
"//include/nighthawk/adaptive_load:input_variable_setter",
"//include/nighthawk/adaptive_load:step_controller",
"@envoy//source/common/common:assert_lib_with_external_headers",
"@envoy//source/common/config:utility_lib_with_external_headers",
"@envoy//source/common/protobuf:protobuf_with_external_headers",
],
)