BUILD.bazel 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "acknowledged_response.go",
  6. "backoff.go",
  7. "bulk.go",
  8. "bulk_delete_request.go",
  9. "bulk_delete_request_easyjson.go",
  10. "bulk_index_request.go",
  11. "bulk_index_request_easyjson.go",
  12. "bulk_processor.go",
  13. "bulk_request.go",
  14. "bulk_update_request.go",
  15. "bulk_update_request_easyjson.go",
  16. "canonicalize.go",
  17. "clear_scroll.go",
  18. "client.go",
  19. "cluster_health.go",
  20. "cluster_state.go",
  21. "cluster_stats.go",
  22. "connection.go",
  23. "count.go",
  24. "decoder.go",
  25. "delete.go",
  26. "delete_by_query.go",
  27. "delete_template.go",
  28. "doc.go",
  29. "errors.go",
  30. "exists.go",
  31. "explain.go",
  32. "fetch_source_context.go",
  33. "field_caps.go",
  34. "field_stats.go",
  35. "geo_point.go",
  36. "get.go",
  37. "get_template.go",
  38. "highlight.go",
  39. "index.go",
  40. "indices_analyze.go",
  41. "indices_close.go",
  42. "indices_create.go",
  43. "indices_delete.go",
  44. "indices_delete_template.go",
  45. "indices_exists.go",
  46. "indices_exists_template.go",
  47. "indices_exists_type.go",
  48. "indices_flush.go",
  49. "indices_forcemerge.go",
  50. "indices_get.go",
  51. "indices_get_aliases.go",
  52. "indices_get_field_mapping.go",
  53. "indices_get_mapping.go",
  54. "indices_get_settings.go",
  55. "indices_get_template.go",
  56. "indices_open.go",
  57. "indices_put_alias.go",
  58. "indices_put_mapping.go",
  59. "indices_put_settings.go",
  60. "indices_put_template.go",
  61. "indices_refresh.go",
  62. "indices_rollover.go",
  63. "indices_segments.go",
  64. "indices_shrink.go",
  65. "indices_stats.go",
  66. "ingest_delete_pipeline.go",
  67. "ingest_get_pipeline.go",
  68. "ingest_put_pipeline.go",
  69. "ingest_simulate_pipeline.go",
  70. "inner_hit.go",
  71. "logger.go",
  72. "mget.go",
  73. "msearch.go",
  74. "mtermvectors.go",
  75. "nodes_info.go",
  76. "nodes_stats.go",
  77. "ping.go",
  78. "plugins.go",
  79. "put_template.go",
  80. "query.go",
  81. "reindex.go",
  82. "request.go",
  83. "rescore.go",
  84. "rescorer.go",
  85. "response.go",
  86. "retrier.go",
  87. "retry.go",
  88. "script.go",
  89. "scroll.go",
  90. "search.go",
  91. "search_aggs.go",
  92. "search_aggs_bucket_adjacency_matrix.go",
  93. "search_aggs_bucket_children.go",
  94. "search_aggs_bucket_date_histogram.go",
  95. "search_aggs_bucket_date_range.go",
  96. "search_aggs_bucket_diversified_sampler.go",
  97. "search_aggs_bucket_filter.go",
  98. "search_aggs_bucket_filters.go",
  99. "search_aggs_bucket_geo_distance.go",
  100. "search_aggs_bucket_geohash_grid.go",
  101. "search_aggs_bucket_global.go",
  102. "search_aggs_bucket_histogram.go",
  103. "search_aggs_bucket_ip_range.go",
  104. "search_aggs_bucket_missing.go",
  105. "search_aggs_bucket_nested.go",
  106. "search_aggs_bucket_range.go",
  107. "search_aggs_bucket_reverse_nested.go",
  108. "search_aggs_bucket_sampler.go",
  109. "search_aggs_bucket_significant_terms.go",
  110. "search_aggs_bucket_terms.go",
  111. "search_aggs_matrix_stats.go",
  112. "search_aggs_metrics_avg.go",
  113. "search_aggs_metrics_cardinality.go",
  114. "search_aggs_metrics_extended_stats.go",
  115. "search_aggs_metrics_geo_bounds.go",
  116. "search_aggs_metrics_geo_centroid.go",
  117. "search_aggs_metrics_max.go",
  118. "search_aggs_metrics_min.go",
  119. "search_aggs_metrics_percentile_ranks.go",
  120. "search_aggs_metrics_percentiles.go",
  121. "search_aggs_metrics_stats.go",
  122. "search_aggs_metrics_sum.go",
  123. "search_aggs_metrics_top_hits.go",
  124. "search_aggs_metrics_value_count.go",
  125. "search_aggs_pipeline_avg_bucket.go",
  126. "search_aggs_pipeline_bucket_script.go",
  127. "search_aggs_pipeline_bucket_selector.go",
  128. "search_aggs_pipeline_cumulative_sum.go",
  129. "search_aggs_pipeline_derivative.go",
  130. "search_aggs_pipeline_max_bucket.go",
  131. "search_aggs_pipeline_min_bucket.go",
  132. "search_aggs_pipeline_mov_avg.go",
  133. "search_aggs_pipeline_percentiles_bucket.go",
  134. "search_aggs_pipeline_serial_diff.go",
  135. "search_aggs_pipeline_stats_bucket.go",
  136. "search_aggs_pipeline_sum_bucket.go",
  137. "search_collapse_builder.go",
  138. "search_queries_bool.go",
  139. "search_queries_boosting.go",
  140. "search_queries_common_terms.go",
  141. "search_queries_constant_score.go",
  142. "search_queries_dis_max.go",
  143. "search_queries_exists.go",
  144. "search_queries_fsq.go",
  145. "search_queries_fsq_score_funcs.go",
  146. "search_queries_fuzzy.go",
  147. "search_queries_geo_bounding_box.go",
  148. "search_queries_geo_distance.go",
  149. "search_queries_geo_polygon.go",
  150. "search_queries_has_child.go",
  151. "search_queries_has_parent.go",
  152. "search_queries_ids.go",
  153. "search_queries_indices.go",
  154. "search_queries_match.go",
  155. "search_queries_match_all.go",
  156. "search_queries_match_none.go",
  157. "search_queries_match_phrase.go",
  158. "search_queries_match_phrase_prefix.go",
  159. "search_queries_more_like_this.go",
  160. "search_queries_multi_match.go",
  161. "search_queries_nested.go",
  162. "search_queries_parent_id.go",
  163. "search_queries_percolator.go",
  164. "search_queries_prefix.go",
  165. "search_queries_query_string.go",
  166. "search_queries_range.go",
  167. "search_queries_raw_string.go",
  168. "search_queries_regexp.go",
  169. "search_queries_script.go",
  170. "search_queries_simple_query_string.go",
  171. "search_queries_slice.go",
  172. "search_queries_term.go",
  173. "search_queries_terms.go",
  174. "search_queries_type.go",
  175. "search_queries_wildcard.go",
  176. "search_request.go",
  177. "search_shards.go",
  178. "search_source.go",
  179. "search_terms_lookup.go",
  180. "snapshot_create.go",
  181. "snapshot_create_repository.go",
  182. "snapshot_delete_repository.go",
  183. "snapshot_get_repository.go",
  184. "snapshot_verify_repository.go",
  185. "sort.go",
  186. "suggest.go",
  187. "suggest_field.go",
  188. "suggester.go",
  189. "suggester_completion.go",
  190. "suggester_completion_fuzzy.go",
  191. "suggester_context.go",
  192. "suggester_context_category.go",
  193. "suggester_context_geo.go",
  194. "suggester_phrase.go",
  195. "suggester_term.go",
  196. "tasks_cancel.go",
  197. "tasks_get_task.go",
  198. "tasks_list.go",
  199. "termvectors.go",
  200. "update.go",
  201. "update_by_query.go",
  202. "validate.go",
  203. ],
  204. importmap = "go-common/vendor/gopkg.in/olivere/elastic.v5",
  205. importpath = "gopkg.in/olivere/elastic.v5",
  206. visibility = ["//visibility:public"],
  207. deps = [
  208. "//vendor/github.com/mailru/easyjson:go_default_library",
  209. "//vendor/github.com/mailru/easyjson/jlexer:go_default_library",
  210. "//vendor/github.com/mailru/easyjson/jwriter:go_default_library",
  211. "//vendor/github.com/pkg/errors:go_default_library",
  212. "//vendor/gopkg.in/olivere/elastic.v5/config:go_default_library",
  213. "//vendor/gopkg.in/olivere/elastic.v5/uritemplates:go_default_library",
  214. ],
  215. )
  216. go_test(
  217. name = "go_default_test",
  218. srcs = [
  219. "backoff_test.go",
  220. "bulk_delete_request_test.go",
  221. "bulk_index_request_test.go",
  222. "bulk_processor_test.go",
  223. "bulk_test.go",
  224. "bulk_update_request_test.go",
  225. "canonicalize_test.go",
  226. "clear_scroll_test.go",
  227. "client_test.go",
  228. "cluster_health_test.go",
  229. "cluster_state_test.go",
  230. "cluster_stats_test.go",
  231. "count_test.go",
  232. "decoder_test.go",
  233. "delete_by_query_test.go",
  234. "delete_template_test.go",
  235. "delete_test.go",
  236. "errors_test.go",
  237. "example_test.go",
  238. "exists_test.go",
  239. "explain_test.go",
  240. "fetch_source_context_test.go",
  241. "field_caps_test.go",
  242. "field_stats_test.go",
  243. "geo_point_test.go",
  244. "get_template_test.go",
  245. "get_test.go",
  246. "highlight_test.go",
  247. "index_test.go",
  248. "indices_analyze_test.go",
  249. "indices_close_test.go",
  250. "indices_create_test.go",
  251. "indices_delete_test.go",
  252. "indices_exists_template_test.go",
  253. "indices_exists_test.go",
  254. "indices_exists_type_test.go",
  255. "indices_flush_test.go",
  256. "indices_forcemerge_test.go",
  257. "indices_get_aliases_test.go",
  258. "indices_get_field_mapping_test.go",
  259. "indices_get_mapping_test.go",
  260. "indices_get_settings_test.go",
  261. "indices_get_template_test.go",
  262. "indices_get_test.go",
  263. "indices_open_test.go",
  264. "indices_put_alias_test.go",
  265. "indices_put_mapping_test.go",
  266. "indices_put_settings_test.go",
  267. "indices_refresh_test.go",
  268. "indices_rollover_test.go",
  269. "indices_segments_test.go",
  270. "indices_shrink_test.go",
  271. "indices_stats_test.go",
  272. "ingest_delete_pipeline_test.go",
  273. "ingest_get_pipeline_test.go",
  274. "ingest_put_pipeline_test.go",
  275. "ingest_simulate_pipeline_test.go",
  276. "inner_hit_test.go",
  277. "mget_test.go",
  278. "msearch_test.go",
  279. "mtermvectors_test.go",
  280. "nodes_info_test.go",
  281. "nodes_stats_test.go",
  282. "percolate_test.go",
  283. "ping_test.go",
  284. "plugins_test.go",
  285. "put_template_test.go",
  286. "reindex_test.go",
  287. "request_test.go",
  288. "response_test.go",
  289. "retrier_test.go",
  290. "retry_test.go",
  291. "script_test.go",
  292. "scroll_test.go",
  293. "search_aggs_bucket_adjacency_matrix_test.go",
  294. "search_aggs_bucket_children_test.go",
  295. "search_aggs_bucket_date_histogram_test.go",
  296. "search_aggs_bucket_date_range_test.go",
  297. "search_aggs_bucket_diversified_sampler_test.go",
  298. "search_aggs_bucket_filter_test.go",
  299. "search_aggs_bucket_filters_test.go",
  300. "search_aggs_bucket_geo_distance_test.go",
  301. "search_aggs_bucket_geohash_grid_test.go",
  302. "search_aggs_bucket_global_test.go",
  303. "search_aggs_bucket_histogram_test.go",
  304. "search_aggs_bucket_ip_range_test.go",
  305. "search_aggs_bucket_missing_test.go",
  306. "search_aggs_bucket_nested_test.go",
  307. "search_aggs_bucket_range_test.go",
  308. "search_aggs_bucket_reverse_nested_test.go",
  309. "search_aggs_bucket_sampler_test.go",
  310. "search_aggs_bucket_significant_terms_test.go",
  311. "search_aggs_bucket_terms_test.go",
  312. "search_aggs_matrix_stats_test.go",
  313. "search_aggs_metrics_avg_test.go",
  314. "search_aggs_metrics_cardinality_test.go",
  315. "search_aggs_metrics_extended_stats_test.go",
  316. "search_aggs_metrics_geo_bounds_test.go",
  317. "search_aggs_metrics_geo_centroid_test.go",
  318. "search_aggs_metrics_max_test.go",
  319. "search_aggs_metrics_min_test.go",
  320. "search_aggs_metrics_percentile_ranks_test.go",
  321. "search_aggs_metrics_percentiles_test.go",
  322. "search_aggs_metrics_stats_test.go",
  323. "search_aggs_metrics_sum_test.go",
  324. "search_aggs_metrics_top_hits_test.go",
  325. "search_aggs_metrics_value_count_test.go",
  326. "search_aggs_pipeline_avg_bucket_test.go",
  327. "search_aggs_pipeline_bucket_script_test.go",
  328. "search_aggs_pipeline_bucket_selector_test.go",
  329. "search_aggs_pipeline_cumulative_sum_test.go",
  330. "search_aggs_pipeline_derivative_test.go",
  331. "search_aggs_pipeline_max_bucket_test.go",
  332. "search_aggs_pipeline_min_bucket_test.go",
  333. "search_aggs_pipeline_mov_avg_test.go",
  334. "search_aggs_pipeline_percentiles_bucket_test.go",
  335. "search_aggs_pipeline_serial_diff_test.go",
  336. "search_aggs_pipeline_stats_bucket_test.go",
  337. "search_aggs_pipeline_sum_bucket_test.go",
  338. "search_aggs_pipeline_test.go",
  339. "search_aggs_test.go",
  340. "search_collapse_builder_test.go",
  341. "search_queries_bool_test.go",
  342. "search_queries_boosting_test.go",
  343. "search_queries_common_terms_test.go",
  344. "search_queries_constant_score_test.go",
  345. "search_queries_dis_max_test.go",
  346. "search_queries_exists_test.go",
  347. "search_queries_fsq_test.go",
  348. "search_queries_fuzzy_test.go",
  349. "search_queries_geo_bounding_box_test.go",
  350. "search_queries_geo_distance_test.go",
  351. "search_queries_geo_polygon_test.go",
  352. "search_queries_has_child_test.go",
  353. "search_queries_has_parent_test.go",
  354. "search_queries_ids_test.go",
  355. "search_queries_indices_test.go",
  356. "search_queries_match_all_test.go",
  357. "search_queries_match_none_test.go",
  358. "search_queries_match_phrase_prefix_test.go",
  359. "search_queries_match_phrase_test.go",
  360. "search_queries_match_test.go",
  361. "search_queries_more_like_this_test.go",
  362. "search_queries_multi_match_test.go",
  363. "search_queries_nested_test.go",
  364. "search_queries_parent_id_test.go",
  365. "search_queries_percolator_test.go",
  366. "search_queries_prefix_example_test.go",
  367. "search_queries_prefix_test.go",
  368. "search_queries_query_string_test.go",
  369. "search_queries_range_test.go",
  370. "search_queries_raw_string_test.go",
  371. "search_queries_regexp_test.go",
  372. "search_queries_script_test.go",
  373. "search_queries_simple_query_string_test.go",
  374. "search_queries_slice_test.go",
  375. "search_queries_term_test.go",
  376. "search_queries_terms_test.go",
  377. "search_queries_type_test.go",
  378. "search_queries_wildcard_test.go",
  379. "search_request_test.go",
  380. "search_shards_test.go",
  381. "search_source_test.go",
  382. "search_suggester_test.go",
  383. "search_terms_lookup_test.go",
  384. "search_test.go",
  385. "setup_test.go",
  386. "snapshot_create_repository_test.go",
  387. "snapshot_create_test.go",
  388. "snapshot_delete_repository_test.go",
  389. "snapshot_get_repository_test.go",
  390. "snapshot_verify_repository_test.go",
  391. "sort_test.go",
  392. "suggest_field_test.go",
  393. "suggest_test.go",
  394. "suggester_completion_fuzzy_test.go",
  395. "suggester_completion_test.go",
  396. "suggester_context_category_test.go",
  397. "suggester_context_geo_test.go",
  398. "suggester_context_test.go",
  399. "suggester_phrase_test.go",
  400. "suggester_term_test.go",
  401. "tasks_cancel_test.go",
  402. "tasks_get_task_test.go",
  403. "tasks_list_test.go",
  404. "termvectors_test.go",
  405. "update_by_query_test.go",
  406. "update_integration_test.go",
  407. "update_test.go",
  408. "validate_test.go",
  409. ],
  410. embed = [":go_default_library"],
  411. deps = ["//vendor/github.com/fortytw2/leaktest:go_default_library"],
  412. )
  413. go_test(
  414. name = "go_default_xtest",
  415. srcs = [
  416. "example_test.go",
  417. "search_queries_prefix_example_test.go",
  418. "search_queries_wildcard_test.go",
  419. ],
  420. tags = ["automanaged"],
  421. deps = ["//vendor/gopkg.in/olivere/elastic.v5:go_default_library"],
  422. )
  423. filegroup(
  424. name = "package-srcs",
  425. srcs = glob(["**"]),
  426. tags = ["automanaged"],
  427. visibility = ["//visibility:private"],
  428. )
  429. filegroup(
  430. name = "all-srcs",
  431. srcs = [
  432. ":package-srcs",
  433. "//vendor/gopkg.in/olivere/elastic.v5/cluster-test:all-srcs",
  434. "//vendor/gopkg.in/olivere/elastic.v5/config:all-srcs",
  435. "//vendor/gopkg.in/olivere/elastic.v5/recipes/bulk_insert:all-srcs",
  436. "//vendor/gopkg.in/olivere/elastic.v5/recipes/bulk_processor:all-srcs",
  437. "//vendor/gopkg.in/olivere/elastic.v5/recipes/connect:all-srcs",
  438. "//vendor/gopkg.in/olivere/elastic.v5/recipes/sliced_scroll:all-srcs",
  439. "//vendor/gopkg.in/olivere/elastic.v5/uritemplates:all-srcs",
  440. ],
  441. tags = ["automanaged"],
  442. visibility = ["//visibility:public"],
  443. )