diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 14a883c7cdc..7998f90b0a0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,11 +1,12 @@ -/**/OWNERS @markdroth @a11r /bazel/** @veblush @gnossen /bazel/experiments.yaml /cmake/** @veblush @apolcyn -/src/core/ext/filters/client_channel/** @markdroth +/src/core/client_channel/** @markdroth /src/core/ext/transport/chttp2/transport/** @ctiller -/src/core/ext/xds/** @markdroth -/src/core/lib/resolver/** @markdroth -/src/core/lib/service_config/** @markdroth +/src/core/load_balancing/** @markdroth +/src/core/resolver/** @markdroth +/src/core/server/xds* @markdroth +/src/core/service_config/** @markdroth +/src/core/xds/** @markdroth /tools/dockerfile/** @drfloob @apolcyn @gnossen /tools/run_tests/xds_k8s_test_driver/** @sergiitk @XuanWang-Amos @gnossen diff --git a/BUILD b/BUILD index e26d4e2ba02..4ca17cd38bb 100644 --- a/BUILD +++ b/BUILD @@ -4317,21 +4317,21 @@ grpc_cc_library( grpc_cc_library( name = "xds_client", srcs = [ - "//src/core:ext/xds/xds_api.cc", - "//src/core:ext/xds/xds_bootstrap.cc", - "//src/core:ext/xds/xds_client.cc", - "//src/core:ext/xds/xds_client_stats.cc", + "//src/core:xds/xds_client/xds_api.cc", + "//src/core:xds/xds_client/xds_bootstrap.cc", + "//src/core:xds/xds_client/xds_client.cc", + "//src/core:xds/xds_client/xds_client_stats.cc", ], hdrs = [ - "//src/core:ext/xds/xds_api.h", - "//src/core:ext/xds/xds_bootstrap.h", - "//src/core:ext/xds/xds_channel_args.h", - "//src/core:ext/xds/xds_client.h", - "//src/core:ext/xds/xds_client_stats.h", - "//src/core:ext/xds/xds_metrics.h", - "//src/core:ext/xds/xds_resource_type.h", - "//src/core:ext/xds/xds_resource_type_impl.h", - "//src/core:ext/xds/xds_transport.h", + "//src/core:xds/xds_client/xds_api.h", + "//src/core:xds/xds_client/xds_bootstrap.h", + "//src/core:xds/xds_client/xds_channel_args.h", + "//src/core:xds/xds_client/xds_client.h", + "//src/core:xds/xds_client/xds_client_stats.h", + "//src/core:xds/xds_client/xds_metrics.h", + "//src/core:xds/xds_client/xds_resource_type.h", + "//src/core:xds/xds_client/xds_resource_type_impl.h", + "//src/core:xds/xds_client/xds_transport.h", ], external_deps = [ "absl/base:core_headers", diff --git a/CMakeLists.txt b/CMakeLists.txt index f24293cc3be..4a80ddd5202 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2213,30 +2213,6 @@ add_library(grpc src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.c src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.c src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.c - src/core/ext/xds/certificate_provider_store.cc - src/core/ext/xds/file_watcher_certificate_provider_factory.cc - src/core/ext/xds/xds_api.cc - src/core/ext/xds/xds_audit_logger_registry.cc - src/core/ext/xds/xds_bootstrap.cc - src/core/ext/xds/xds_bootstrap_grpc.cc - src/core/ext/xds/xds_certificate_provider.cc - src/core/ext/xds/xds_client.cc - src/core/ext/xds/xds_client_grpc.cc - src/core/ext/xds/xds_client_stats.cc - src/core/ext/xds/xds_cluster.cc - src/core/ext/xds/xds_cluster_specifier_plugin.cc - src/core/ext/xds/xds_common_types.cc - src/core/ext/xds/xds_endpoint.cc - src/core/ext/xds/xds_health_status.cc - src/core/ext/xds/xds_http_fault_filter.cc - src/core/ext/xds/xds_http_filters.cc - src/core/ext/xds/xds_http_rbac_filter.cc - src/core/ext/xds/xds_http_stateful_session_filter.cc - src/core/ext/xds/xds_lb_policy_registry.cc - src/core/ext/xds/xds_listener.cc - src/core/ext/xds/xds_route_config.cc - src/core/ext/xds/xds_routing.cc - src/core/ext/xds/xds_transport_grpc.cc src/core/handshaker/endpoint_info/endpoint_info_handshaker.cc src/core/handshaker/handshaker.cc src/core/handshaker/handshaker_registry.cc @@ -2622,6 +2598,30 @@ add_library(grpc src/core/tsi/ssl_transport_security_utils.cc src/core/tsi/transport_security.cc src/core/tsi/transport_security_grpc.cc + src/core/xds/grpc/certificate_provider_store.cc + src/core/xds/grpc/file_watcher_certificate_provider_factory.cc + src/core/xds/grpc/xds_audit_logger_registry.cc + src/core/xds/grpc/xds_bootstrap_grpc.cc + src/core/xds/grpc/xds_certificate_provider.cc + src/core/xds/grpc/xds_client_grpc.cc + src/core/xds/grpc/xds_cluster.cc + src/core/xds/grpc/xds_cluster_specifier_plugin.cc + src/core/xds/grpc/xds_common_types.cc + src/core/xds/grpc/xds_endpoint.cc + src/core/xds/grpc/xds_health_status.cc + src/core/xds/grpc/xds_http_fault_filter.cc + src/core/xds/grpc/xds_http_filters.cc + src/core/xds/grpc/xds_http_rbac_filter.cc + src/core/xds/grpc/xds_http_stateful_session_filter.cc + src/core/xds/grpc/xds_lb_policy_registry.cc + src/core/xds/grpc/xds_listener.cc + src/core/xds/grpc/xds_route_config.cc + src/core/xds/grpc/xds_routing.cc + src/core/xds/grpc/xds_transport_grpc.cc + src/core/xds/xds_client/xds_api.cc + src/core/xds/xds_client/xds_bootstrap.cc + src/core/xds/xds_client/xds_client.cc + src/core/xds/xds_client/xds_client_stats.cc ) target_compile_features(grpc PUBLIC cxx_std_14) diff --git a/Makefile b/Makefile index b5f3f448d53..8716b6ffa4e 100644 --- a/Makefile +++ b/Makefile @@ -1054,30 +1054,6 @@ LIBGRPC_SRC = \ src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.c \ src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.c \ src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.c \ - src/core/ext/xds/certificate_provider_store.cc \ - src/core/ext/xds/file_watcher_certificate_provider_factory.cc \ - src/core/ext/xds/xds_api.cc \ - src/core/ext/xds/xds_audit_logger_registry.cc \ - src/core/ext/xds/xds_bootstrap.cc \ - src/core/ext/xds/xds_bootstrap_grpc.cc \ - src/core/ext/xds/xds_certificate_provider.cc \ - src/core/ext/xds/xds_client.cc \ - src/core/ext/xds/xds_client_grpc.cc \ - src/core/ext/xds/xds_client_stats.cc \ - src/core/ext/xds/xds_cluster.cc \ - src/core/ext/xds/xds_cluster_specifier_plugin.cc \ - src/core/ext/xds/xds_common_types.cc \ - src/core/ext/xds/xds_endpoint.cc \ - src/core/ext/xds/xds_health_status.cc \ - src/core/ext/xds/xds_http_fault_filter.cc \ - src/core/ext/xds/xds_http_filters.cc \ - src/core/ext/xds/xds_http_rbac_filter.cc \ - src/core/ext/xds/xds_http_stateful_session_filter.cc \ - src/core/ext/xds/xds_lb_policy_registry.cc \ - src/core/ext/xds/xds_listener.cc \ - src/core/ext/xds/xds_route_config.cc \ - src/core/ext/xds/xds_routing.cc \ - src/core/ext/xds/xds_transport_grpc.cc \ src/core/handshaker/endpoint_info/endpoint_info_handshaker.cc \ src/core/handshaker/handshaker.cc \ src/core/handshaker/handshaker_registry.cc \ @@ -1508,6 +1484,30 @@ LIBGRPC_SRC = \ src/core/tsi/ssl_transport_security_utils.cc \ src/core/tsi/transport_security.cc \ src/core/tsi/transport_security_grpc.cc \ + src/core/xds/grpc/certificate_provider_store.cc \ + src/core/xds/grpc/file_watcher_certificate_provider_factory.cc \ + src/core/xds/grpc/xds_audit_logger_registry.cc \ + src/core/xds/grpc/xds_bootstrap_grpc.cc \ + src/core/xds/grpc/xds_certificate_provider.cc \ + src/core/xds/grpc/xds_client_grpc.cc \ + src/core/xds/grpc/xds_cluster.cc \ + src/core/xds/grpc/xds_cluster_specifier_plugin.cc \ + src/core/xds/grpc/xds_common_types.cc \ + src/core/xds/grpc/xds_endpoint.cc \ + src/core/xds/grpc/xds_health_status.cc \ + src/core/xds/grpc/xds_http_fault_filter.cc \ + src/core/xds/grpc/xds_http_filters.cc \ + src/core/xds/grpc/xds_http_rbac_filter.cc \ + src/core/xds/grpc/xds_http_stateful_session_filter.cc \ + src/core/xds/grpc/xds_lb_policy_registry.cc \ + src/core/xds/grpc/xds_listener.cc \ + src/core/xds/grpc/xds_route_config.cc \ + src/core/xds/grpc/xds_routing.cc \ + src/core/xds/grpc/xds_transport_grpc.cc \ + src/core/xds/xds_client/xds_api.cc \ + src/core/xds/xds_client/xds_bootstrap.cc \ + src/core/xds/xds_client/xds_client.cc \ + src/core/xds/xds_client/xds_client_stats.cc \ third_party/abseil-cpp/absl/base/internal/cycleclock.cc \ third_party/abseil-cpp/absl/base/internal/low_level_alloc.cc \ third_party/abseil-cpp/absl/base/internal/raw_logging.cc \ diff --git a/Package.swift b/Package.swift index 9afca3494ca..9a1f76a9dc2 100644 --- a/Package.swift +++ b/Package.swift @@ -1059,60 +1059,6 @@ let package = Package( "src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.h", "src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.c", "src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.h", - "src/core/ext/xds/certificate_provider_store.cc", - "src/core/ext/xds/certificate_provider_store.h", - "src/core/ext/xds/file_watcher_certificate_provider_factory.cc", - "src/core/ext/xds/file_watcher_certificate_provider_factory.h", - "src/core/ext/xds/upb_utils.h", - "src/core/ext/xds/xds_api.cc", - "src/core/ext/xds/xds_api.h", - "src/core/ext/xds/xds_audit_logger_registry.cc", - "src/core/ext/xds/xds_audit_logger_registry.h", - "src/core/ext/xds/xds_bootstrap.cc", - "src/core/ext/xds/xds_bootstrap.h", - "src/core/ext/xds/xds_bootstrap_grpc.cc", - "src/core/ext/xds/xds_bootstrap_grpc.h", - "src/core/ext/xds/xds_certificate_provider.cc", - "src/core/ext/xds/xds_certificate_provider.h", - "src/core/ext/xds/xds_channel_args.h", - "src/core/ext/xds/xds_client.cc", - "src/core/ext/xds/xds_client.h", - "src/core/ext/xds/xds_client_grpc.cc", - "src/core/ext/xds/xds_client_grpc.h", - "src/core/ext/xds/xds_client_stats.cc", - "src/core/ext/xds/xds_client_stats.h", - "src/core/ext/xds/xds_cluster.cc", - "src/core/ext/xds/xds_cluster.h", - "src/core/ext/xds/xds_cluster_specifier_plugin.cc", - "src/core/ext/xds/xds_cluster_specifier_plugin.h", - "src/core/ext/xds/xds_common_types.cc", - "src/core/ext/xds/xds_common_types.h", - "src/core/ext/xds/xds_endpoint.cc", - "src/core/ext/xds/xds_endpoint.h", - "src/core/ext/xds/xds_health_status.cc", - "src/core/ext/xds/xds_health_status.h", - "src/core/ext/xds/xds_http_fault_filter.cc", - "src/core/ext/xds/xds_http_fault_filter.h", - "src/core/ext/xds/xds_http_filters.cc", - "src/core/ext/xds/xds_http_filters.h", - "src/core/ext/xds/xds_http_rbac_filter.cc", - "src/core/ext/xds/xds_http_rbac_filter.h", - "src/core/ext/xds/xds_http_stateful_session_filter.cc", - "src/core/ext/xds/xds_http_stateful_session_filter.h", - "src/core/ext/xds/xds_lb_policy_registry.cc", - "src/core/ext/xds/xds_lb_policy_registry.h", - "src/core/ext/xds/xds_listener.cc", - "src/core/ext/xds/xds_listener.h", - "src/core/ext/xds/xds_metrics.h", - "src/core/ext/xds/xds_resource_type.h", - "src/core/ext/xds/xds_resource_type_impl.h", - "src/core/ext/xds/xds_route_config.cc", - "src/core/ext/xds/xds_route_config.h", - "src/core/ext/xds/xds_routing.cc", - "src/core/ext/xds/xds_routing.h", - "src/core/ext/xds/xds_transport.h", - "src/core/ext/xds/xds_transport_grpc.cc", - "src/core/ext/xds/xds_transport_grpc.h", "src/core/handshaker/endpoint_info/endpoint_info_handshaker.cc", "src/core/handshaker/endpoint_info/endpoint_info_handshaker.h", "src/core/handshaker/handshaker.cc", @@ -2006,6 +1952,60 @@ let package = Package( "src/core/tsi/transport_security_grpc.cc", "src/core/tsi/transport_security_grpc.h", "src/core/tsi/transport_security_interface.h", + "src/core/xds/grpc/certificate_provider_store.cc", + "src/core/xds/grpc/certificate_provider_store.h", + "src/core/xds/grpc/file_watcher_certificate_provider_factory.cc", + "src/core/xds/grpc/file_watcher_certificate_provider_factory.h", + "src/core/xds/grpc/upb_utils.h", + "src/core/xds/grpc/xds_audit_logger_registry.cc", + "src/core/xds/grpc/xds_audit_logger_registry.h", + "src/core/xds/grpc/xds_bootstrap_grpc.cc", + "src/core/xds/grpc/xds_bootstrap_grpc.h", + "src/core/xds/grpc/xds_certificate_provider.cc", + "src/core/xds/grpc/xds_certificate_provider.h", + "src/core/xds/grpc/xds_client_grpc.cc", + "src/core/xds/grpc/xds_client_grpc.h", + "src/core/xds/grpc/xds_cluster.cc", + "src/core/xds/grpc/xds_cluster.h", + "src/core/xds/grpc/xds_cluster_specifier_plugin.cc", + "src/core/xds/grpc/xds_cluster_specifier_plugin.h", + "src/core/xds/grpc/xds_common_types.cc", + "src/core/xds/grpc/xds_common_types.h", + "src/core/xds/grpc/xds_endpoint.cc", + "src/core/xds/grpc/xds_endpoint.h", + "src/core/xds/grpc/xds_health_status.cc", + "src/core/xds/grpc/xds_health_status.h", + "src/core/xds/grpc/xds_http_fault_filter.cc", + "src/core/xds/grpc/xds_http_fault_filter.h", + "src/core/xds/grpc/xds_http_filters.cc", + "src/core/xds/grpc/xds_http_filters.h", + "src/core/xds/grpc/xds_http_rbac_filter.cc", + "src/core/xds/grpc/xds_http_rbac_filter.h", + "src/core/xds/grpc/xds_http_stateful_session_filter.cc", + "src/core/xds/grpc/xds_http_stateful_session_filter.h", + "src/core/xds/grpc/xds_lb_policy_registry.cc", + "src/core/xds/grpc/xds_lb_policy_registry.h", + "src/core/xds/grpc/xds_listener.cc", + "src/core/xds/grpc/xds_listener.h", + "src/core/xds/grpc/xds_route_config.cc", + "src/core/xds/grpc/xds_route_config.h", + "src/core/xds/grpc/xds_routing.cc", + "src/core/xds/grpc/xds_routing.h", + "src/core/xds/grpc/xds_transport_grpc.cc", + "src/core/xds/grpc/xds_transport_grpc.h", + "src/core/xds/xds_client/xds_api.cc", + "src/core/xds/xds_client/xds_api.h", + "src/core/xds/xds_client/xds_bootstrap.cc", + "src/core/xds/xds_client/xds_bootstrap.h", + "src/core/xds/xds_client/xds_channel_args.h", + "src/core/xds/xds_client/xds_client.cc", + "src/core/xds/xds_client/xds_client.h", + "src/core/xds/xds_client/xds_client_stats.cc", + "src/core/xds/xds_client/xds_client_stats.h", + "src/core/xds/xds_client/xds_metrics.h", + "src/core/xds/xds_client/xds_resource_type.h", + "src/core/xds/xds_client/xds_resource_type_impl.h", + "src/core/xds/xds_client/xds_transport.h", "third_party/re2/re2/bitmap256.h", "third_party/re2/re2/bitstate.cc", "third_party/re2/re2/compile.cc", diff --git a/build_autogenerated.yaml b/build_autogenerated.yaml index 64ff8ce6d14..7e4f95f2932 100644 --- a/build_autogenerated.yaml +++ b/build_autogenerated.yaml @@ -776,36 +776,6 @@ libs: - src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.h - src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.h - src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.h - - src/core/ext/xds/certificate_provider_store.h - - src/core/ext/xds/file_watcher_certificate_provider_factory.h - - src/core/ext/xds/upb_utils.h - - src/core/ext/xds/xds_api.h - - src/core/ext/xds/xds_audit_logger_registry.h - - src/core/ext/xds/xds_bootstrap.h - - src/core/ext/xds/xds_bootstrap_grpc.h - - src/core/ext/xds/xds_certificate_provider.h - - src/core/ext/xds/xds_channel_args.h - - src/core/ext/xds/xds_client.h - - src/core/ext/xds/xds_client_grpc.h - - src/core/ext/xds/xds_client_stats.h - - src/core/ext/xds/xds_cluster.h - - src/core/ext/xds/xds_cluster_specifier_plugin.h - - src/core/ext/xds/xds_common_types.h - - src/core/ext/xds/xds_endpoint.h - - src/core/ext/xds/xds_health_status.h - - src/core/ext/xds/xds_http_fault_filter.h - - src/core/ext/xds/xds_http_filters.h - - src/core/ext/xds/xds_http_rbac_filter.h - - src/core/ext/xds/xds_http_stateful_session_filter.h - - src/core/ext/xds/xds_lb_policy_registry.h - - src/core/ext/xds/xds_listener.h - - src/core/ext/xds/xds_metrics.h - - src/core/ext/xds/xds_resource_type.h - - src/core/ext/xds/xds_resource_type_impl.h - - src/core/ext/xds/xds_route_config.h - - src/core/ext/xds/xds_routing.h - - src/core/ext/xds/xds_transport.h - - src/core/ext/xds/xds_transport_grpc.h - src/core/handshaker/endpoint_info/endpoint_info_handshaker.h - src/core/handshaker/handshaker.h - src/core/handshaker/handshaker_factory.h @@ -1241,6 +1211,36 @@ libs: - src/core/tsi/transport_security.h - src/core/tsi/transport_security_grpc.h - src/core/tsi/transport_security_interface.h + - src/core/xds/grpc/certificate_provider_store.h + - src/core/xds/grpc/file_watcher_certificate_provider_factory.h + - src/core/xds/grpc/upb_utils.h + - src/core/xds/grpc/xds_audit_logger_registry.h + - src/core/xds/grpc/xds_bootstrap_grpc.h + - src/core/xds/grpc/xds_certificate_provider.h + - src/core/xds/grpc/xds_client_grpc.h + - src/core/xds/grpc/xds_cluster.h + - src/core/xds/grpc/xds_cluster_specifier_plugin.h + - src/core/xds/grpc/xds_common_types.h + - src/core/xds/grpc/xds_endpoint.h + - src/core/xds/grpc/xds_health_status.h + - src/core/xds/grpc/xds_http_fault_filter.h + - src/core/xds/grpc/xds_http_filters.h + - src/core/xds/grpc/xds_http_rbac_filter.h + - src/core/xds/grpc/xds_http_stateful_session_filter.h + - src/core/xds/grpc/xds_lb_policy_registry.h + - src/core/xds/grpc/xds_listener.h + - src/core/xds/grpc/xds_route_config.h + - src/core/xds/grpc/xds_routing.h + - src/core/xds/grpc/xds_transport_grpc.h + - src/core/xds/xds_client/xds_api.h + - src/core/xds/xds_client/xds_bootstrap.h + - src/core/xds/xds_client/xds_channel_args.h + - src/core/xds/xds_client/xds_client.h + - src/core/xds/xds_client/xds_client_stats.h + - src/core/xds/xds_client/xds_metrics.h + - src/core/xds/xds_client/xds_resource_type.h + - src/core/xds/xds_client/xds_resource_type_impl.h + - src/core/xds/xds_client/xds_transport.h - third_party/upb/upb/generated_code_support.h - third_party/xxhash/xxhash.h src: @@ -1632,30 +1632,6 @@ libs: - src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.c - src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.c - src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.c - - src/core/ext/xds/certificate_provider_store.cc - - src/core/ext/xds/file_watcher_certificate_provider_factory.cc - - src/core/ext/xds/xds_api.cc - - src/core/ext/xds/xds_audit_logger_registry.cc - - src/core/ext/xds/xds_bootstrap.cc - - src/core/ext/xds/xds_bootstrap_grpc.cc - - src/core/ext/xds/xds_certificate_provider.cc - - src/core/ext/xds/xds_client.cc - - src/core/ext/xds/xds_client_grpc.cc - - src/core/ext/xds/xds_client_stats.cc - - src/core/ext/xds/xds_cluster.cc - - src/core/ext/xds/xds_cluster_specifier_plugin.cc - - src/core/ext/xds/xds_common_types.cc - - src/core/ext/xds/xds_endpoint.cc - - src/core/ext/xds/xds_health_status.cc - - src/core/ext/xds/xds_http_fault_filter.cc - - src/core/ext/xds/xds_http_filters.cc - - src/core/ext/xds/xds_http_rbac_filter.cc - - src/core/ext/xds/xds_http_stateful_session_filter.cc - - src/core/ext/xds/xds_lb_policy_registry.cc - - src/core/ext/xds/xds_listener.cc - - src/core/ext/xds/xds_route_config.cc - - src/core/ext/xds/xds_routing.cc - - src/core/ext/xds/xds_transport_grpc.cc - src/core/handshaker/endpoint_info/endpoint_info_handshaker.cc - src/core/handshaker/handshaker.cc - src/core/handshaker/handshaker_registry.cc @@ -2041,6 +2017,30 @@ libs: - src/core/tsi/ssl_transport_security_utils.cc - src/core/tsi/transport_security.cc - src/core/tsi/transport_security_grpc.cc + - src/core/xds/grpc/certificate_provider_store.cc + - src/core/xds/grpc/file_watcher_certificate_provider_factory.cc + - src/core/xds/grpc/xds_audit_logger_registry.cc + - src/core/xds/grpc/xds_bootstrap_grpc.cc + - src/core/xds/grpc/xds_certificate_provider.cc + - src/core/xds/grpc/xds_client_grpc.cc + - src/core/xds/grpc/xds_cluster.cc + - src/core/xds/grpc/xds_cluster_specifier_plugin.cc + - src/core/xds/grpc/xds_common_types.cc + - src/core/xds/grpc/xds_endpoint.cc + - src/core/xds/grpc/xds_health_status.cc + - src/core/xds/grpc/xds_http_fault_filter.cc + - src/core/xds/grpc/xds_http_filters.cc + - src/core/xds/grpc/xds_http_rbac_filter.cc + - src/core/xds/grpc/xds_http_stateful_session_filter.cc + - src/core/xds/grpc/xds_lb_policy_registry.cc + - src/core/xds/grpc/xds_listener.cc + - src/core/xds/grpc/xds_route_config.cc + - src/core/xds/grpc/xds_routing.cc + - src/core/xds/grpc/xds_transport_grpc.cc + - src/core/xds/xds_client/xds_api.cc + - src/core/xds/xds_client/xds_bootstrap.cc + - src/core/xds/xds_client/xds_client.cc + - src/core/xds/xds_client/xds_client_stats.cc deps: - upb_json_lib - upb_textformat_lib @@ -3850,7 +3850,7 @@ libs: - src/core/ext/transport/binder/wire_format/wire_reader.h - src/core/ext/transport/binder/wire_format/wire_reader_impl.h - src/core/ext/transport/binder/wire_format/wire_writer.h - - src/core/ext/xds/xds_enabled_server.h + - src/core/xds/grpc/xds_enabled_server.h - src/cpp/client/client_stats_interceptor.h - src/cpp/client/create_channel_internal.h - src/cpp/client/secure_credentials.h diff --git a/config.m4 b/config.m4 index 125cc7f8c1e..a9b92c2aca0 100644 --- a/config.m4 +++ b/config.m4 @@ -429,30 +429,6 @@ if test "$PHP_GRPC" != "no"; then src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.c \ src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.c \ src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.c \ - src/core/ext/xds/certificate_provider_store.cc \ - src/core/ext/xds/file_watcher_certificate_provider_factory.cc \ - src/core/ext/xds/xds_api.cc \ - src/core/ext/xds/xds_audit_logger_registry.cc \ - src/core/ext/xds/xds_bootstrap.cc \ - src/core/ext/xds/xds_bootstrap_grpc.cc \ - src/core/ext/xds/xds_certificate_provider.cc \ - src/core/ext/xds/xds_client.cc \ - src/core/ext/xds/xds_client_grpc.cc \ - src/core/ext/xds/xds_client_stats.cc \ - src/core/ext/xds/xds_cluster.cc \ - src/core/ext/xds/xds_cluster_specifier_plugin.cc \ - src/core/ext/xds/xds_common_types.cc \ - src/core/ext/xds/xds_endpoint.cc \ - src/core/ext/xds/xds_health_status.cc \ - src/core/ext/xds/xds_http_fault_filter.cc \ - src/core/ext/xds/xds_http_filters.cc \ - src/core/ext/xds/xds_http_rbac_filter.cc \ - src/core/ext/xds/xds_http_stateful_session_filter.cc \ - src/core/ext/xds/xds_lb_policy_registry.cc \ - src/core/ext/xds/xds_listener.cc \ - src/core/ext/xds/xds_route_config.cc \ - src/core/ext/xds/xds_routing.cc \ - src/core/ext/xds/xds_transport_grpc.cc \ src/core/handshaker/endpoint_info/endpoint_info_handshaker.cc \ src/core/handshaker/handshaker.cc \ src/core/handshaker/handshaker_registry.cc \ @@ -883,6 +859,30 @@ if test "$PHP_GRPC" != "no"; then src/core/tsi/ssl_transport_security_utils.cc \ src/core/tsi/transport_security.cc \ src/core/tsi/transport_security_grpc.cc \ + src/core/xds/grpc/certificate_provider_store.cc \ + src/core/xds/grpc/file_watcher_certificate_provider_factory.cc \ + src/core/xds/grpc/xds_audit_logger_registry.cc \ + src/core/xds/grpc/xds_bootstrap_grpc.cc \ + src/core/xds/grpc/xds_certificate_provider.cc \ + src/core/xds/grpc/xds_client_grpc.cc \ + src/core/xds/grpc/xds_cluster.cc \ + src/core/xds/grpc/xds_cluster_specifier_plugin.cc \ + src/core/xds/grpc/xds_common_types.cc \ + src/core/xds/grpc/xds_endpoint.cc \ + src/core/xds/grpc/xds_health_status.cc \ + src/core/xds/grpc/xds_http_fault_filter.cc \ + src/core/xds/grpc/xds_http_filters.cc \ + src/core/xds/grpc/xds_http_rbac_filter.cc \ + src/core/xds/grpc/xds_http_stateful_session_filter.cc \ + src/core/xds/grpc/xds_lb_policy_registry.cc \ + src/core/xds/grpc/xds_listener.cc \ + src/core/xds/grpc/xds_route_config.cc \ + src/core/xds/grpc/xds_routing.cc \ + src/core/xds/grpc/xds_transport_grpc.cc \ + src/core/xds/xds_client/xds_api.cc \ + src/core/xds/xds_client/xds_bootstrap.cc \ + src/core/xds/xds_client/xds_client.cc \ + src/core/xds/xds_client/xds_client_stats.cc \ src/php/ext/grpc/byte_buffer.c \ src/php/ext/grpc/call.c \ src/php/ext/grpc/call_credentials.c \ @@ -1506,7 +1506,6 @@ if test "$PHP_GRPC" != "no"; then PHP_ADD_BUILD_DIR($ext_builddir/src/core/ext/upbdefs-gen/xds/core/v3) PHP_ADD_BUILD_DIR($ext_builddir/src/core/ext/upbdefs-gen/xds/type/matcher/v3) PHP_ADD_BUILD_DIR($ext_builddir/src/core/ext/upbdefs-gen/xds/type/v3) - PHP_ADD_BUILD_DIR($ext_builddir/src/core/ext/xds) PHP_ADD_BUILD_DIR($ext_builddir/src/core/handshaker) PHP_ADD_BUILD_DIR($ext_builddir/src/core/handshaker/endpoint_info) PHP_ADD_BUILD_DIR($ext_builddir/src/core/handshaker/http_connect) @@ -1606,6 +1605,8 @@ if test "$PHP_GRPC" != "no"; then PHP_ADD_BUILD_DIR($ext_builddir/src/core/tsi/alts/zero_copy_frame_protector) PHP_ADD_BUILD_DIR($ext_builddir/src/core/tsi/ssl/key_logging) PHP_ADD_BUILD_DIR($ext_builddir/src/core/tsi/ssl/session_cache) + PHP_ADD_BUILD_DIR($ext_builddir/src/core/xds/grpc) + PHP_ADD_BUILD_DIR($ext_builddir/src/core/xds/xds_client) PHP_ADD_BUILD_DIR($ext_builddir/src/php/ext/grpc) PHP_ADD_BUILD_DIR($ext_builddir/third_party/abseil-cpp/absl/base) PHP_ADD_BUILD_DIR($ext_builddir/third_party/abseil-cpp/absl/base/internal) diff --git a/config.w32 b/config.w32 index a0cc2a6ee58..0d0a85c04d7 100644 --- a/config.w32 +++ b/config.w32 @@ -394,30 +394,6 @@ if (PHP_GRPC != "no") { "src\\core\\ext\\upbdefs-gen\\xds\\type\\v3\\cel.upbdefs.c " + "src\\core\\ext\\upbdefs-gen\\xds\\type\\v3\\range.upbdefs.c " + "src\\core\\ext\\upbdefs-gen\\xds\\type\\v3\\typed_struct.upbdefs.c " + - "src\\core\\ext\\xds\\certificate_provider_store.cc " + - "src\\core\\ext\\xds\\file_watcher_certificate_provider_factory.cc " + - "src\\core\\ext\\xds\\xds_api.cc " + - "src\\core\\ext\\xds\\xds_audit_logger_registry.cc " + - "src\\core\\ext\\xds\\xds_bootstrap.cc " + - "src\\core\\ext\\xds\\xds_bootstrap_grpc.cc " + - "src\\core\\ext\\xds\\xds_certificate_provider.cc " + - "src\\core\\ext\\xds\\xds_client.cc " + - "src\\core\\ext\\xds\\xds_client_grpc.cc " + - "src\\core\\ext\\xds\\xds_client_stats.cc " + - "src\\core\\ext\\xds\\xds_cluster.cc " + - "src\\core\\ext\\xds\\xds_cluster_specifier_plugin.cc " + - "src\\core\\ext\\xds\\xds_common_types.cc " + - "src\\core\\ext\\xds\\xds_endpoint.cc " + - "src\\core\\ext\\xds\\xds_health_status.cc " + - "src\\core\\ext\\xds\\xds_http_fault_filter.cc " + - "src\\core\\ext\\xds\\xds_http_filters.cc " + - "src\\core\\ext\\xds\\xds_http_rbac_filter.cc " + - "src\\core\\ext\\xds\\xds_http_stateful_session_filter.cc " + - "src\\core\\ext\\xds\\xds_lb_policy_registry.cc " + - "src\\core\\ext\\xds\\xds_listener.cc " + - "src\\core\\ext\\xds\\xds_route_config.cc " + - "src\\core\\ext\\xds\\xds_routing.cc " + - "src\\core\\ext\\xds\\xds_transport_grpc.cc " + "src\\core\\handshaker\\endpoint_info\\endpoint_info_handshaker.cc " + "src\\core\\handshaker\\handshaker.cc " + "src\\core\\handshaker\\handshaker_registry.cc " + @@ -848,6 +824,30 @@ if (PHP_GRPC != "no") { "src\\core\\tsi\\ssl_transport_security_utils.cc " + "src\\core\\tsi\\transport_security.cc " + "src\\core\\tsi\\transport_security_grpc.cc " + + "src\\core\\xds\\grpc\\certificate_provider_store.cc " + + "src\\core\\xds\\grpc\\file_watcher_certificate_provider_factory.cc " + + "src\\core\\xds\\grpc\\xds_audit_logger_registry.cc " + + "src\\core\\xds\\grpc\\xds_bootstrap_grpc.cc " + + "src\\core\\xds\\grpc\\xds_certificate_provider.cc " + + "src\\core\\xds\\grpc\\xds_client_grpc.cc " + + "src\\core\\xds\\grpc\\xds_cluster.cc " + + "src\\core\\xds\\grpc\\xds_cluster_specifier_plugin.cc " + + "src\\core\\xds\\grpc\\xds_common_types.cc " + + "src\\core\\xds\\grpc\\xds_endpoint.cc " + + "src\\core\\xds\\grpc\\xds_health_status.cc " + + "src\\core\\xds\\grpc\\xds_http_fault_filter.cc " + + "src\\core\\xds\\grpc\\xds_http_filters.cc " + + "src\\core\\xds\\grpc\\xds_http_rbac_filter.cc " + + "src\\core\\xds\\grpc\\xds_http_stateful_session_filter.cc " + + "src\\core\\xds\\grpc\\xds_lb_policy_registry.cc " + + "src\\core\\xds\\grpc\\xds_listener.cc " + + "src\\core\\xds\\grpc\\xds_route_config.cc " + + "src\\core\\xds\\grpc\\xds_routing.cc " + + "src\\core\\xds\\grpc\\xds_transport_grpc.cc " + + "src\\core\\xds\\xds_client\\xds_api.cc " + + "src\\core\\xds\\xds_client\\xds_bootstrap.cc " + + "src\\core\\xds\\xds_client\\xds_client.cc " + + "src\\core\\xds\\xds_client\\xds_client_stats.cc " + "src\\php\\ext\\grpc\\byte_buffer.c " + "src\\php\\ext\\grpc\\call.c " + "src\\php\\ext\\grpc\\call_credentials.c " + @@ -1642,7 +1642,6 @@ if (PHP_GRPC != "no") { FSO.CreateFolder(base_dir+"\\ext\\grpc\\src\\core\\ext\\upbdefs-gen\\xds\\type\\matcher"); FSO.CreateFolder(base_dir+"\\ext\\grpc\\src\\core\\ext\\upbdefs-gen\\xds\\type\\matcher\\v3"); FSO.CreateFolder(base_dir+"\\ext\\grpc\\src\\core\\ext\\upbdefs-gen\\xds\\type\\v3"); - FSO.CreateFolder(base_dir+"\\ext\\grpc\\src\\core\\ext\\xds"); FSO.CreateFolder(base_dir+"\\ext\\grpc\\src\\core\\handshaker"); FSO.CreateFolder(base_dir+"\\ext\\grpc\\src\\core\\handshaker\\endpoint_info"); FSO.CreateFolder(base_dir+"\\ext\\grpc\\src\\core\\handshaker\\http_connect"); @@ -1746,6 +1745,9 @@ if (PHP_GRPC != "no") { FSO.CreateFolder(base_dir+"\\ext\\grpc\\src\\core\\tsi\\ssl"); FSO.CreateFolder(base_dir+"\\ext\\grpc\\src\\core\\tsi\\ssl\\key_logging"); FSO.CreateFolder(base_dir+"\\ext\\grpc\\src\\core\\tsi\\ssl\\session_cache"); + FSO.CreateFolder(base_dir+"\\ext\\grpc\\src\\core\\xds"); + FSO.CreateFolder(base_dir+"\\ext\\grpc\\src\\core\\xds\\grpc"); + FSO.CreateFolder(base_dir+"\\ext\\grpc\\src\\core\\xds\\xds_client"); FSO.CreateFolder(base_dir+"\\ext\\grpc\\src\\php"); FSO.CreateFolder(base_dir+"\\ext\\grpc\\src\\php\\ext"); FSO.CreateFolder(base_dir+"\\ext\\grpc\\src\\php\\ext\\grpc"); diff --git a/gRPC-C++.podspec b/gRPC-C++.podspec index d075e053e37..5cdc9a2287d 100644 --- a/gRPC-C++.podspec +++ b/gRPC-C++.podspec @@ -855,37 +855,6 @@ Pod::Spec.new do |s| 'src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.h', 'src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.h', 'src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.h', - 'src/core/ext/xds/certificate_provider_store.h', - 'src/core/ext/xds/file_watcher_certificate_provider_factory.h', - 'src/core/ext/xds/upb_utils.h', - 'src/core/ext/xds/xds_api.h', - 'src/core/ext/xds/xds_audit_logger_registry.h', - 'src/core/ext/xds/xds_bootstrap.h', - 'src/core/ext/xds/xds_bootstrap_grpc.h', - 'src/core/ext/xds/xds_certificate_provider.h', - 'src/core/ext/xds/xds_channel_args.h', - 'src/core/ext/xds/xds_client.h', - 'src/core/ext/xds/xds_client_grpc.h', - 'src/core/ext/xds/xds_client_stats.h', - 'src/core/ext/xds/xds_cluster.h', - 'src/core/ext/xds/xds_cluster_specifier_plugin.h', - 'src/core/ext/xds/xds_common_types.h', - 'src/core/ext/xds/xds_enabled_server.h', - 'src/core/ext/xds/xds_endpoint.h', - 'src/core/ext/xds/xds_health_status.h', - 'src/core/ext/xds/xds_http_fault_filter.h', - 'src/core/ext/xds/xds_http_filters.h', - 'src/core/ext/xds/xds_http_rbac_filter.h', - 'src/core/ext/xds/xds_http_stateful_session_filter.h', - 'src/core/ext/xds/xds_lb_policy_registry.h', - 'src/core/ext/xds/xds_listener.h', - 'src/core/ext/xds/xds_metrics.h', - 'src/core/ext/xds/xds_resource_type.h', - 'src/core/ext/xds/xds_resource_type_impl.h', - 'src/core/ext/xds/xds_route_config.h', - 'src/core/ext/xds/xds_routing.h', - 'src/core/ext/xds/xds_transport.h', - 'src/core/ext/xds/xds_transport_grpc.h', 'src/core/handshaker/endpoint_info/endpoint_info_handshaker.h', 'src/core/handshaker/handshaker.h', 'src/core/handshaker/handshaker_factory.h', @@ -1345,6 +1314,37 @@ Pod::Spec.new do |s| 'src/core/tsi/transport_security.h', 'src/core/tsi/transport_security_grpc.h', 'src/core/tsi/transport_security_interface.h', + 'src/core/xds/grpc/certificate_provider_store.h', + 'src/core/xds/grpc/file_watcher_certificate_provider_factory.h', + 'src/core/xds/grpc/upb_utils.h', + 'src/core/xds/grpc/xds_audit_logger_registry.h', + 'src/core/xds/grpc/xds_bootstrap_grpc.h', + 'src/core/xds/grpc/xds_certificate_provider.h', + 'src/core/xds/grpc/xds_client_grpc.h', + 'src/core/xds/grpc/xds_cluster.h', + 'src/core/xds/grpc/xds_cluster_specifier_plugin.h', + 'src/core/xds/grpc/xds_common_types.h', + 'src/core/xds/grpc/xds_enabled_server.h', + 'src/core/xds/grpc/xds_endpoint.h', + 'src/core/xds/grpc/xds_health_status.h', + 'src/core/xds/grpc/xds_http_fault_filter.h', + 'src/core/xds/grpc/xds_http_filters.h', + 'src/core/xds/grpc/xds_http_rbac_filter.h', + 'src/core/xds/grpc/xds_http_stateful_session_filter.h', + 'src/core/xds/grpc/xds_lb_policy_registry.h', + 'src/core/xds/grpc/xds_listener.h', + 'src/core/xds/grpc/xds_route_config.h', + 'src/core/xds/grpc/xds_routing.h', + 'src/core/xds/grpc/xds_transport_grpc.h', + 'src/core/xds/xds_client/xds_api.h', + 'src/core/xds/xds_client/xds_bootstrap.h', + 'src/core/xds/xds_client/xds_channel_args.h', + 'src/core/xds/xds_client/xds_client.h', + 'src/core/xds/xds_client/xds_client_stats.h', + 'src/core/xds/xds_client/xds_metrics.h', + 'src/core/xds/xds_client/xds_resource_type.h', + 'src/core/xds/xds_client/xds_resource_type_impl.h', + 'src/core/xds/xds_client/xds_transport.h', 'src/cpp/client/call_credentials.cc', 'src/cpp/client/channel_cc.cc', 'src/cpp/client/channel_credentials.cc', @@ -2124,37 +2124,6 @@ Pod::Spec.new do |s| 'src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.h', 'src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.h', 'src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.h', - 'src/core/ext/xds/certificate_provider_store.h', - 'src/core/ext/xds/file_watcher_certificate_provider_factory.h', - 'src/core/ext/xds/upb_utils.h', - 'src/core/ext/xds/xds_api.h', - 'src/core/ext/xds/xds_audit_logger_registry.h', - 'src/core/ext/xds/xds_bootstrap.h', - 'src/core/ext/xds/xds_bootstrap_grpc.h', - 'src/core/ext/xds/xds_certificate_provider.h', - 'src/core/ext/xds/xds_channel_args.h', - 'src/core/ext/xds/xds_client.h', - 'src/core/ext/xds/xds_client_grpc.h', - 'src/core/ext/xds/xds_client_stats.h', - 'src/core/ext/xds/xds_cluster.h', - 'src/core/ext/xds/xds_cluster_specifier_plugin.h', - 'src/core/ext/xds/xds_common_types.h', - 'src/core/ext/xds/xds_enabled_server.h', - 'src/core/ext/xds/xds_endpoint.h', - 'src/core/ext/xds/xds_health_status.h', - 'src/core/ext/xds/xds_http_fault_filter.h', - 'src/core/ext/xds/xds_http_filters.h', - 'src/core/ext/xds/xds_http_rbac_filter.h', - 'src/core/ext/xds/xds_http_stateful_session_filter.h', - 'src/core/ext/xds/xds_lb_policy_registry.h', - 'src/core/ext/xds/xds_listener.h', - 'src/core/ext/xds/xds_metrics.h', - 'src/core/ext/xds/xds_resource_type.h', - 'src/core/ext/xds/xds_resource_type_impl.h', - 'src/core/ext/xds/xds_route_config.h', - 'src/core/ext/xds/xds_routing.h', - 'src/core/ext/xds/xds_transport.h', - 'src/core/ext/xds/xds_transport_grpc.h', 'src/core/handshaker/endpoint_info/endpoint_info_handshaker.h', 'src/core/handshaker/handshaker.h', 'src/core/handshaker/handshaker_factory.h', @@ -2614,6 +2583,37 @@ Pod::Spec.new do |s| 'src/core/tsi/transport_security.h', 'src/core/tsi/transport_security_grpc.h', 'src/core/tsi/transport_security_interface.h', + 'src/core/xds/grpc/certificate_provider_store.h', + 'src/core/xds/grpc/file_watcher_certificate_provider_factory.h', + 'src/core/xds/grpc/upb_utils.h', + 'src/core/xds/grpc/xds_audit_logger_registry.h', + 'src/core/xds/grpc/xds_bootstrap_grpc.h', + 'src/core/xds/grpc/xds_certificate_provider.h', + 'src/core/xds/grpc/xds_client_grpc.h', + 'src/core/xds/grpc/xds_cluster.h', + 'src/core/xds/grpc/xds_cluster_specifier_plugin.h', + 'src/core/xds/grpc/xds_common_types.h', + 'src/core/xds/grpc/xds_enabled_server.h', + 'src/core/xds/grpc/xds_endpoint.h', + 'src/core/xds/grpc/xds_health_status.h', + 'src/core/xds/grpc/xds_http_fault_filter.h', + 'src/core/xds/grpc/xds_http_filters.h', + 'src/core/xds/grpc/xds_http_rbac_filter.h', + 'src/core/xds/grpc/xds_http_stateful_session_filter.h', + 'src/core/xds/grpc/xds_lb_policy_registry.h', + 'src/core/xds/grpc/xds_listener.h', + 'src/core/xds/grpc/xds_route_config.h', + 'src/core/xds/grpc/xds_routing.h', + 'src/core/xds/grpc/xds_transport_grpc.h', + 'src/core/xds/xds_client/xds_api.h', + 'src/core/xds/xds_client/xds_bootstrap.h', + 'src/core/xds/xds_client/xds_channel_args.h', + 'src/core/xds/xds_client/xds_client.h', + 'src/core/xds/xds_client/xds_client_stats.h', + 'src/core/xds/xds_client/xds_metrics.h', + 'src/core/xds/xds_client/xds_resource_type.h', + 'src/core/xds/xds_client/xds_resource_type_impl.h', + 'src/core/xds/xds_client/xds_transport.h', 'src/cpp/client/client_stats_interceptor.h', 'src/cpp/client/create_channel_internal.h', 'src/cpp/client/secure_credentials.h', diff --git a/gRPC-Core.podspec b/gRPC-Core.podspec index 173742c4f21..ab6c7a53455 100644 --- a/gRPC-Core.podspec +++ b/gRPC-Core.podspec @@ -1178,60 +1178,6 @@ Pod::Spec.new do |s| 'src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.h', 'src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.c', 'src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.h', - 'src/core/ext/xds/certificate_provider_store.cc', - 'src/core/ext/xds/certificate_provider_store.h', - 'src/core/ext/xds/file_watcher_certificate_provider_factory.cc', - 'src/core/ext/xds/file_watcher_certificate_provider_factory.h', - 'src/core/ext/xds/upb_utils.h', - 'src/core/ext/xds/xds_api.cc', - 'src/core/ext/xds/xds_api.h', - 'src/core/ext/xds/xds_audit_logger_registry.cc', - 'src/core/ext/xds/xds_audit_logger_registry.h', - 'src/core/ext/xds/xds_bootstrap.cc', - 'src/core/ext/xds/xds_bootstrap.h', - 'src/core/ext/xds/xds_bootstrap_grpc.cc', - 'src/core/ext/xds/xds_bootstrap_grpc.h', - 'src/core/ext/xds/xds_certificate_provider.cc', - 'src/core/ext/xds/xds_certificate_provider.h', - 'src/core/ext/xds/xds_channel_args.h', - 'src/core/ext/xds/xds_client.cc', - 'src/core/ext/xds/xds_client.h', - 'src/core/ext/xds/xds_client_grpc.cc', - 'src/core/ext/xds/xds_client_grpc.h', - 'src/core/ext/xds/xds_client_stats.cc', - 'src/core/ext/xds/xds_client_stats.h', - 'src/core/ext/xds/xds_cluster.cc', - 'src/core/ext/xds/xds_cluster.h', - 'src/core/ext/xds/xds_cluster_specifier_plugin.cc', - 'src/core/ext/xds/xds_cluster_specifier_plugin.h', - 'src/core/ext/xds/xds_common_types.cc', - 'src/core/ext/xds/xds_common_types.h', - 'src/core/ext/xds/xds_endpoint.cc', - 'src/core/ext/xds/xds_endpoint.h', - 'src/core/ext/xds/xds_health_status.cc', - 'src/core/ext/xds/xds_health_status.h', - 'src/core/ext/xds/xds_http_fault_filter.cc', - 'src/core/ext/xds/xds_http_fault_filter.h', - 'src/core/ext/xds/xds_http_filters.cc', - 'src/core/ext/xds/xds_http_filters.h', - 'src/core/ext/xds/xds_http_rbac_filter.cc', - 'src/core/ext/xds/xds_http_rbac_filter.h', - 'src/core/ext/xds/xds_http_stateful_session_filter.cc', - 'src/core/ext/xds/xds_http_stateful_session_filter.h', - 'src/core/ext/xds/xds_lb_policy_registry.cc', - 'src/core/ext/xds/xds_lb_policy_registry.h', - 'src/core/ext/xds/xds_listener.cc', - 'src/core/ext/xds/xds_listener.h', - 'src/core/ext/xds/xds_metrics.h', - 'src/core/ext/xds/xds_resource_type.h', - 'src/core/ext/xds/xds_resource_type_impl.h', - 'src/core/ext/xds/xds_route_config.cc', - 'src/core/ext/xds/xds_route_config.h', - 'src/core/ext/xds/xds_routing.cc', - 'src/core/ext/xds/xds_routing.h', - 'src/core/ext/xds/xds_transport.h', - 'src/core/ext/xds/xds_transport_grpc.cc', - 'src/core/ext/xds/xds_transport_grpc.h', 'src/core/handshaker/endpoint_info/endpoint_info_handshaker.cc', 'src/core/handshaker/endpoint_info/endpoint_info_handshaker.h', 'src/core/handshaker/handshaker.cc', @@ -2121,6 +2067,60 @@ Pod::Spec.new do |s| 'src/core/tsi/transport_security_grpc.cc', 'src/core/tsi/transport_security_grpc.h', 'src/core/tsi/transport_security_interface.h', + 'src/core/xds/grpc/certificate_provider_store.cc', + 'src/core/xds/grpc/certificate_provider_store.h', + 'src/core/xds/grpc/file_watcher_certificate_provider_factory.cc', + 'src/core/xds/grpc/file_watcher_certificate_provider_factory.h', + 'src/core/xds/grpc/upb_utils.h', + 'src/core/xds/grpc/xds_audit_logger_registry.cc', + 'src/core/xds/grpc/xds_audit_logger_registry.h', + 'src/core/xds/grpc/xds_bootstrap_grpc.cc', + 'src/core/xds/grpc/xds_bootstrap_grpc.h', + 'src/core/xds/grpc/xds_certificate_provider.cc', + 'src/core/xds/grpc/xds_certificate_provider.h', + 'src/core/xds/grpc/xds_client_grpc.cc', + 'src/core/xds/grpc/xds_client_grpc.h', + 'src/core/xds/grpc/xds_cluster.cc', + 'src/core/xds/grpc/xds_cluster.h', + 'src/core/xds/grpc/xds_cluster_specifier_plugin.cc', + 'src/core/xds/grpc/xds_cluster_specifier_plugin.h', + 'src/core/xds/grpc/xds_common_types.cc', + 'src/core/xds/grpc/xds_common_types.h', + 'src/core/xds/grpc/xds_endpoint.cc', + 'src/core/xds/grpc/xds_endpoint.h', + 'src/core/xds/grpc/xds_health_status.cc', + 'src/core/xds/grpc/xds_health_status.h', + 'src/core/xds/grpc/xds_http_fault_filter.cc', + 'src/core/xds/grpc/xds_http_fault_filter.h', + 'src/core/xds/grpc/xds_http_filters.cc', + 'src/core/xds/grpc/xds_http_filters.h', + 'src/core/xds/grpc/xds_http_rbac_filter.cc', + 'src/core/xds/grpc/xds_http_rbac_filter.h', + 'src/core/xds/grpc/xds_http_stateful_session_filter.cc', + 'src/core/xds/grpc/xds_http_stateful_session_filter.h', + 'src/core/xds/grpc/xds_lb_policy_registry.cc', + 'src/core/xds/grpc/xds_lb_policy_registry.h', + 'src/core/xds/grpc/xds_listener.cc', + 'src/core/xds/grpc/xds_listener.h', + 'src/core/xds/grpc/xds_route_config.cc', + 'src/core/xds/grpc/xds_route_config.h', + 'src/core/xds/grpc/xds_routing.cc', + 'src/core/xds/grpc/xds_routing.h', + 'src/core/xds/grpc/xds_transport_grpc.cc', + 'src/core/xds/grpc/xds_transport_grpc.h', + 'src/core/xds/xds_client/xds_api.cc', + 'src/core/xds/xds_client/xds_api.h', + 'src/core/xds/xds_client/xds_bootstrap.cc', + 'src/core/xds/xds_client/xds_bootstrap.h', + 'src/core/xds/xds_client/xds_channel_args.h', + 'src/core/xds/xds_client/xds_client.cc', + 'src/core/xds/xds_client/xds_client.h', + 'src/core/xds/xds_client/xds_client_stats.cc', + 'src/core/xds/xds_client/xds_client_stats.h', + 'src/core/xds/xds_client/xds_metrics.h', + 'src/core/xds/xds_client/xds_resource_type.h', + 'src/core/xds/xds_client/xds_resource_type_impl.h', + 'src/core/xds/xds_client/xds_transport.h', 'third_party/re2/re2/bitmap256.h', 'third_party/re2/re2/bitstate.cc', 'third_party/re2/re2/compile.cc', @@ -2903,36 +2903,6 @@ Pod::Spec.new do |s| 'src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.h', 'src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.h', 'src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.h', - 'src/core/ext/xds/certificate_provider_store.h', - 'src/core/ext/xds/file_watcher_certificate_provider_factory.h', - 'src/core/ext/xds/upb_utils.h', - 'src/core/ext/xds/xds_api.h', - 'src/core/ext/xds/xds_audit_logger_registry.h', - 'src/core/ext/xds/xds_bootstrap.h', - 'src/core/ext/xds/xds_bootstrap_grpc.h', - 'src/core/ext/xds/xds_certificate_provider.h', - 'src/core/ext/xds/xds_channel_args.h', - 'src/core/ext/xds/xds_client.h', - 'src/core/ext/xds/xds_client_grpc.h', - 'src/core/ext/xds/xds_client_stats.h', - 'src/core/ext/xds/xds_cluster.h', - 'src/core/ext/xds/xds_cluster_specifier_plugin.h', - 'src/core/ext/xds/xds_common_types.h', - 'src/core/ext/xds/xds_endpoint.h', - 'src/core/ext/xds/xds_health_status.h', - 'src/core/ext/xds/xds_http_fault_filter.h', - 'src/core/ext/xds/xds_http_filters.h', - 'src/core/ext/xds/xds_http_rbac_filter.h', - 'src/core/ext/xds/xds_http_stateful_session_filter.h', - 'src/core/ext/xds/xds_lb_policy_registry.h', - 'src/core/ext/xds/xds_listener.h', - 'src/core/ext/xds/xds_metrics.h', - 'src/core/ext/xds/xds_resource_type.h', - 'src/core/ext/xds/xds_resource_type_impl.h', - 'src/core/ext/xds/xds_route_config.h', - 'src/core/ext/xds/xds_routing.h', - 'src/core/ext/xds/xds_transport.h', - 'src/core/ext/xds/xds_transport_grpc.h', 'src/core/handshaker/endpoint_info/endpoint_info_handshaker.h', 'src/core/handshaker/handshaker.h', 'src/core/handshaker/handshaker_factory.h', @@ -3392,6 +3362,36 @@ Pod::Spec.new do |s| 'src/core/tsi/transport_security.h', 'src/core/tsi/transport_security_grpc.h', 'src/core/tsi/transport_security_interface.h', + 'src/core/xds/grpc/certificate_provider_store.h', + 'src/core/xds/grpc/file_watcher_certificate_provider_factory.h', + 'src/core/xds/grpc/upb_utils.h', + 'src/core/xds/grpc/xds_audit_logger_registry.h', + 'src/core/xds/grpc/xds_bootstrap_grpc.h', + 'src/core/xds/grpc/xds_certificate_provider.h', + 'src/core/xds/grpc/xds_client_grpc.h', + 'src/core/xds/grpc/xds_cluster.h', + 'src/core/xds/grpc/xds_cluster_specifier_plugin.h', + 'src/core/xds/grpc/xds_common_types.h', + 'src/core/xds/grpc/xds_endpoint.h', + 'src/core/xds/grpc/xds_health_status.h', + 'src/core/xds/grpc/xds_http_fault_filter.h', + 'src/core/xds/grpc/xds_http_filters.h', + 'src/core/xds/grpc/xds_http_rbac_filter.h', + 'src/core/xds/grpc/xds_http_stateful_session_filter.h', + 'src/core/xds/grpc/xds_lb_policy_registry.h', + 'src/core/xds/grpc/xds_listener.h', + 'src/core/xds/grpc/xds_route_config.h', + 'src/core/xds/grpc/xds_routing.h', + 'src/core/xds/grpc/xds_transport_grpc.h', + 'src/core/xds/xds_client/xds_api.h', + 'src/core/xds/xds_client/xds_bootstrap.h', + 'src/core/xds/xds_client/xds_channel_args.h', + 'src/core/xds/xds_client/xds_client.h', + 'src/core/xds/xds_client/xds_client_stats.h', + 'src/core/xds/xds_client/xds_metrics.h', + 'src/core/xds/xds_client/xds_resource_type.h', + 'src/core/xds/xds_client/xds_resource_type_impl.h', + 'src/core/xds/xds_client/xds_transport.h', 'third_party/re2/re2/bitmap256.h', 'third_party/re2/re2/filtered_re2.h', 'third_party/re2/re2/pod_array.h', diff --git a/grpc.gemspec b/grpc.gemspec index 1247adbae75..53f5845e405 100644 --- a/grpc.gemspec +++ b/grpc.gemspec @@ -1065,60 +1065,6 @@ Gem::Specification.new do |s| s.files += %w( src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.h ) s.files += %w( src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.c ) s.files += %w( src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.h ) - s.files += %w( src/core/ext/xds/certificate_provider_store.cc ) - s.files += %w( src/core/ext/xds/certificate_provider_store.h ) - s.files += %w( src/core/ext/xds/file_watcher_certificate_provider_factory.cc ) - s.files += %w( src/core/ext/xds/file_watcher_certificate_provider_factory.h ) - s.files += %w( src/core/ext/xds/upb_utils.h ) - s.files += %w( src/core/ext/xds/xds_api.cc ) - s.files += %w( src/core/ext/xds/xds_api.h ) - s.files += %w( src/core/ext/xds/xds_audit_logger_registry.cc ) - s.files += %w( src/core/ext/xds/xds_audit_logger_registry.h ) - s.files += %w( src/core/ext/xds/xds_bootstrap.cc ) - s.files += %w( src/core/ext/xds/xds_bootstrap.h ) - s.files += %w( src/core/ext/xds/xds_bootstrap_grpc.cc ) - s.files += %w( src/core/ext/xds/xds_bootstrap_grpc.h ) - s.files += %w( src/core/ext/xds/xds_certificate_provider.cc ) - s.files += %w( src/core/ext/xds/xds_certificate_provider.h ) - s.files += %w( src/core/ext/xds/xds_channel_args.h ) - s.files += %w( src/core/ext/xds/xds_client.cc ) - s.files += %w( src/core/ext/xds/xds_client.h ) - s.files += %w( src/core/ext/xds/xds_client_grpc.cc ) - s.files += %w( src/core/ext/xds/xds_client_grpc.h ) - s.files += %w( src/core/ext/xds/xds_client_stats.cc ) - s.files += %w( src/core/ext/xds/xds_client_stats.h ) - s.files += %w( src/core/ext/xds/xds_cluster.cc ) - s.files += %w( src/core/ext/xds/xds_cluster.h ) - s.files += %w( src/core/ext/xds/xds_cluster_specifier_plugin.cc ) - s.files += %w( src/core/ext/xds/xds_cluster_specifier_plugin.h ) - s.files += %w( src/core/ext/xds/xds_common_types.cc ) - s.files += %w( src/core/ext/xds/xds_common_types.h ) - s.files += %w( src/core/ext/xds/xds_endpoint.cc ) - s.files += %w( src/core/ext/xds/xds_endpoint.h ) - s.files += %w( src/core/ext/xds/xds_health_status.cc ) - s.files += %w( src/core/ext/xds/xds_health_status.h ) - s.files += %w( src/core/ext/xds/xds_http_fault_filter.cc ) - s.files += %w( src/core/ext/xds/xds_http_fault_filter.h ) - s.files += %w( src/core/ext/xds/xds_http_filters.cc ) - s.files += %w( src/core/ext/xds/xds_http_filters.h ) - s.files += %w( src/core/ext/xds/xds_http_rbac_filter.cc ) - s.files += %w( src/core/ext/xds/xds_http_rbac_filter.h ) - s.files += %w( src/core/ext/xds/xds_http_stateful_session_filter.cc ) - s.files += %w( src/core/ext/xds/xds_http_stateful_session_filter.h ) - s.files += %w( src/core/ext/xds/xds_lb_policy_registry.cc ) - s.files += %w( src/core/ext/xds/xds_lb_policy_registry.h ) - s.files += %w( src/core/ext/xds/xds_listener.cc ) - s.files += %w( src/core/ext/xds/xds_listener.h ) - s.files += %w( src/core/ext/xds/xds_metrics.h ) - s.files += %w( src/core/ext/xds/xds_resource_type.h ) - s.files += %w( src/core/ext/xds/xds_resource_type_impl.h ) - s.files += %w( src/core/ext/xds/xds_route_config.cc ) - s.files += %w( src/core/ext/xds/xds_route_config.h ) - s.files += %w( src/core/ext/xds/xds_routing.cc ) - s.files += %w( src/core/ext/xds/xds_routing.h ) - s.files += %w( src/core/ext/xds/xds_transport.h ) - s.files += %w( src/core/ext/xds/xds_transport_grpc.cc ) - s.files += %w( src/core/ext/xds/xds_transport_grpc.h ) s.files += %w( src/core/handshaker/endpoint_info/endpoint_info_handshaker.cc ) s.files += %w( src/core/handshaker/endpoint_info/endpoint_info_handshaker.h ) s.files += %w( src/core/handshaker/handshaker.cc ) @@ -2008,6 +1954,60 @@ Gem::Specification.new do |s| s.files += %w( src/core/tsi/transport_security_grpc.cc ) s.files += %w( src/core/tsi/transport_security_grpc.h ) s.files += %w( src/core/tsi/transport_security_interface.h ) + s.files += %w( src/core/xds/grpc/certificate_provider_store.cc ) + s.files += %w( src/core/xds/grpc/certificate_provider_store.h ) + s.files += %w( src/core/xds/grpc/file_watcher_certificate_provider_factory.cc ) + s.files += %w( src/core/xds/grpc/file_watcher_certificate_provider_factory.h ) + s.files += %w( src/core/xds/grpc/upb_utils.h ) + s.files += %w( src/core/xds/grpc/xds_audit_logger_registry.cc ) + s.files += %w( src/core/xds/grpc/xds_audit_logger_registry.h ) + s.files += %w( src/core/xds/grpc/xds_bootstrap_grpc.cc ) + s.files += %w( src/core/xds/grpc/xds_bootstrap_grpc.h ) + s.files += %w( src/core/xds/grpc/xds_certificate_provider.cc ) + s.files += %w( src/core/xds/grpc/xds_certificate_provider.h ) + s.files += %w( src/core/xds/grpc/xds_client_grpc.cc ) + s.files += %w( src/core/xds/grpc/xds_client_grpc.h ) + s.files += %w( src/core/xds/grpc/xds_cluster.cc ) + s.files += %w( src/core/xds/grpc/xds_cluster.h ) + s.files += %w( src/core/xds/grpc/xds_cluster_specifier_plugin.cc ) + s.files += %w( src/core/xds/grpc/xds_cluster_specifier_plugin.h ) + s.files += %w( src/core/xds/grpc/xds_common_types.cc ) + s.files += %w( src/core/xds/grpc/xds_common_types.h ) + s.files += %w( src/core/xds/grpc/xds_endpoint.cc ) + s.files += %w( src/core/xds/grpc/xds_endpoint.h ) + s.files += %w( src/core/xds/grpc/xds_health_status.cc ) + s.files += %w( src/core/xds/grpc/xds_health_status.h ) + s.files += %w( src/core/xds/grpc/xds_http_fault_filter.cc ) + s.files += %w( src/core/xds/grpc/xds_http_fault_filter.h ) + s.files += %w( src/core/xds/grpc/xds_http_filters.cc ) + s.files += %w( src/core/xds/grpc/xds_http_filters.h ) + s.files += %w( src/core/xds/grpc/xds_http_rbac_filter.cc ) + s.files += %w( src/core/xds/grpc/xds_http_rbac_filter.h ) + s.files += %w( src/core/xds/grpc/xds_http_stateful_session_filter.cc ) + s.files += %w( src/core/xds/grpc/xds_http_stateful_session_filter.h ) + s.files += %w( src/core/xds/grpc/xds_lb_policy_registry.cc ) + s.files += %w( src/core/xds/grpc/xds_lb_policy_registry.h ) + s.files += %w( src/core/xds/grpc/xds_listener.cc ) + s.files += %w( src/core/xds/grpc/xds_listener.h ) + s.files += %w( src/core/xds/grpc/xds_route_config.cc ) + s.files += %w( src/core/xds/grpc/xds_route_config.h ) + s.files += %w( src/core/xds/grpc/xds_routing.cc ) + s.files += %w( src/core/xds/grpc/xds_routing.h ) + s.files += %w( src/core/xds/grpc/xds_transport_grpc.cc ) + s.files += %w( src/core/xds/grpc/xds_transport_grpc.h ) + s.files += %w( src/core/xds/xds_client/xds_api.cc ) + s.files += %w( src/core/xds/xds_client/xds_api.h ) + s.files += %w( src/core/xds/xds_client/xds_bootstrap.cc ) + s.files += %w( src/core/xds/xds_client/xds_bootstrap.h ) + s.files += %w( src/core/xds/xds_client/xds_channel_args.h ) + s.files += %w( src/core/xds/xds_client/xds_client.cc ) + s.files += %w( src/core/xds/xds_client/xds_client.h ) + s.files += %w( src/core/xds/xds_client/xds_client_stats.cc ) + s.files += %w( src/core/xds/xds_client/xds_client_stats.h ) + s.files += %w( src/core/xds/xds_client/xds_metrics.h ) + s.files += %w( src/core/xds/xds_client/xds_resource_type.h ) + s.files += %w( src/core/xds/xds_client/xds_resource_type_impl.h ) + s.files += %w( src/core/xds/xds_client/xds_transport.h ) s.files += %w( third_party/abseil-cpp/absl/algorithm/algorithm.h ) s.files += %w( third_party/abseil-cpp/absl/algorithm/container.h ) s.files += %w( third_party/abseil-cpp/absl/base/attributes.h ) diff --git a/package.xml b/package.xml index f95df49ac37..98267c82e92 100644 --- a/package.xml +++ b/package.xml @@ -1047,60 +1047,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1990,6 +1936,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/core/BUILD b/src/core/BUILD index fb16f2b8eea..e76dc300ace 100644 --- a/src/core/BUILD +++ b/src/core/BUILD @@ -5005,7 +5005,7 @@ grpc_cc_library( grpc_cc_library( name = "upb_utils", hdrs = [ - "ext/xds/upb_utils.h", + "xds/grpc/upb_utils.h", ], external_deps = [ "absl/strings", @@ -5018,7 +5018,7 @@ grpc_cc_library( grpc_cc_library( name = "xds_enabled_server", hdrs = [ - "ext/xds/xds_enabled_server.h", + "xds/grpc/xds_enabled_server.h", ], language = "c++", ) @@ -5026,50 +5026,50 @@ grpc_cc_library( grpc_cc_library( name = "grpc_xds_client", srcs = [ - "ext/xds/certificate_provider_store.cc", - "ext/xds/file_watcher_certificate_provider_factory.cc", - "ext/xds/xds_audit_logger_registry.cc", - "ext/xds/xds_bootstrap_grpc.cc", - "ext/xds/xds_certificate_provider.cc", - "ext/xds/xds_client_grpc.cc", - "ext/xds/xds_cluster.cc", - "ext/xds/xds_cluster_specifier_plugin.cc", - "ext/xds/xds_common_types.cc", - "ext/xds/xds_endpoint.cc", - "ext/xds/xds_health_status.cc", - "ext/xds/xds_http_fault_filter.cc", - "ext/xds/xds_http_filters.cc", - "ext/xds/xds_http_rbac_filter.cc", - "ext/xds/xds_http_stateful_session_filter.cc", - "ext/xds/xds_lb_policy_registry.cc", - "ext/xds/xds_listener.cc", - "ext/xds/xds_route_config.cc", - "ext/xds/xds_routing.cc", - "ext/xds/xds_transport_grpc.cc", "lib/security/credentials/xds/xds_credentials.cc", + "xds/grpc/certificate_provider_store.cc", + "xds/grpc/file_watcher_certificate_provider_factory.cc", + "xds/grpc/xds_audit_logger_registry.cc", + "xds/grpc/xds_bootstrap_grpc.cc", + "xds/grpc/xds_certificate_provider.cc", + "xds/grpc/xds_client_grpc.cc", + "xds/grpc/xds_cluster.cc", + "xds/grpc/xds_cluster_specifier_plugin.cc", + "xds/grpc/xds_common_types.cc", + "xds/grpc/xds_endpoint.cc", + "xds/grpc/xds_health_status.cc", + "xds/grpc/xds_http_fault_filter.cc", + "xds/grpc/xds_http_filters.cc", + "xds/grpc/xds_http_rbac_filter.cc", + "xds/grpc/xds_http_stateful_session_filter.cc", + "xds/grpc/xds_lb_policy_registry.cc", + "xds/grpc/xds_listener.cc", + "xds/grpc/xds_route_config.cc", + "xds/grpc/xds_routing.cc", + "xds/grpc/xds_transport_grpc.cc", ], hdrs = [ - "ext/xds/certificate_provider_store.h", - "ext/xds/file_watcher_certificate_provider_factory.h", - "ext/xds/xds_audit_logger_registry.h", - "ext/xds/xds_bootstrap_grpc.h", - "ext/xds/xds_certificate_provider.h", - "ext/xds/xds_client_grpc.h", - "ext/xds/xds_cluster.h", - "ext/xds/xds_cluster_specifier_plugin.h", - "ext/xds/xds_common_types.h", - "ext/xds/xds_endpoint.h", - "ext/xds/xds_health_status.h", - "ext/xds/xds_http_fault_filter.h", - "ext/xds/xds_http_filters.h", - "ext/xds/xds_http_rbac_filter.h", - "ext/xds/xds_http_stateful_session_filter.h", - "ext/xds/xds_lb_policy_registry.h", - "ext/xds/xds_listener.h", - "ext/xds/xds_route_config.h", - "ext/xds/xds_routing.h", - "ext/xds/xds_transport_grpc.h", "lib/security/credentials/xds/xds_credentials.h", + "xds/grpc/certificate_provider_store.h", + "xds/grpc/file_watcher_certificate_provider_factory.h", + "xds/grpc/xds_audit_logger_registry.h", + "xds/grpc/xds_bootstrap_grpc.h", + "xds/grpc/xds_certificate_provider.h", + "xds/grpc/xds_client_grpc.h", + "xds/grpc/xds_cluster.h", + "xds/grpc/xds_cluster_specifier_plugin.h", + "xds/grpc/xds_common_types.h", + "xds/grpc/xds_endpoint.h", + "xds/grpc/xds_health_status.h", + "xds/grpc/xds_http_fault_filter.h", + "xds/grpc/xds_http_filters.h", + "xds/grpc/xds_http_rbac_filter.h", + "xds/grpc/xds_http_stateful_session_filter.h", + "xds/grpc/xds_lb_policy_registry.h", + "xds/grpc/xds_listener.h", + "xds/grpc/xds_route_config.h", + "xds/grpc/xds_routing.h", + "xds/grpc/xds_transport_grpc.h", ], external_deps = [ "absl/base:core_headers", diff --git a/src/core/lib/security/credentials/xds/xds_credentials.cc b/src/core/lib/security/credentials/xds/xds_credentials.cc index c170b218632..d04cf39f335 100644 --- a/src/core/lib/security/credentials/xds/xds_credentials.cc +++ b/src/core/lib/security/credentials/xds/xds_credentials.cc @@ -26,7 +26,6 @@ #include #include -#include "src/core/ext/xds/xds_certificate_provider.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/gpr/useful.h" #include "src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.h" @@ -34,6 +33,7 @@ #include "src/core/lib/security/credentials/tls/tls_credentials.h" #include "src/core/lib/security/credentials/tls/tls_utils.h" #include "src/core/load_balancing/xds/xds_channel_args.h" +#include "src/core/xds/grpc/xds_certificate_provider.h" namespace grpc_core { diff --git a/src/core/lib/security/credentials/xds/xds_credentials.h b/src/core/lib/security/credentials/xds/xds_credentials.h index 09762d30276..dc363ac52b2 100644 --- a/src/core/lib/security/credentials/xds/xds_credentials.h +++ b/src/core/lib/security/credentials/xds/xds_credentials.h @@ -33,7 +33,6 @@ #include #include -#include "src/core/ext/xds/xds_certificate_provider.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/gprpp/ref_counted_ptr.h" #include "src/core/lib/gprpp/unique_type_name.h" @@ -41,6 +40,7 @@ #include "src/core/lib/security/credentials/credentials.h" #include "src/core/lib/security/credentials/tls/grpc_tls_certificate_verifier.h" #include "src/core/lib/security/security_connector/security_connector.h" +#include "src/core/xds/grpc/xds_certificate_provider.h" namespace grpc_core { diff --git a/src/core/load_balancing/xds/cds.cc b/src/core/load_balancing/xds/cds.cc index 96a6f6ae2e0..be516ce09c9 100644 --- a/src/core/load_balancing/xds/cds.cc +++ b/src/core/load_balancing/xds/cds.cc @@ -37,9 +37,6 @@ #include #include -#include "src/core/ext/xds/xds_cluster.h" -#include "src/core/ext/xds/xds_common_types.h" -#include "src/core/ext/xds/xds_health_status.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/config/core_configuration.h" #include "src/core/lib/debug/trace.h" @@ -64,6 +61,9 @@ #include "src/core/load_balancing/outlier_detection/outlier_detection.h" #include "src/core/load_balancing/xds/xds_channel_args.h" #include "src/core/resolver/xds/xds_dependency_manager.h" +#include "src/core/xds/grpc/xds_cluster.h" +#include "src/core/xds/grpc/xds_common_types.h" +#include "src/core/xds/grpc/xds_health_status.h" namespace grpc_core { diff --git a/src/core/load_balancing/xds/xds_cluster_impl.cc b/src/core/load_balancing/xds/xds_cluster_impl.cc index 40edefa7d15..0554e28b4e7 100644 --- a/src/core/load_balancing/xds/xds_cluster_impl.cc +++ b/src/core/load_balancing/xds/xds_cluster_impl.cc @@ -38,12 +38,6 @@ #include #include "src/core/client_channel/client_channel_internal.h" -#include "src/core/ext/xds/xds_bootstrap.h" -#include "src/core/ext/xds/xds_bootstrap_grpc.h" -#include "src/core/ext/xds/xds_client.h" -#include "src/core/ext/xds/xds_client_grpc.h" -#include "src/core/ext/xds/xds_client_stats.h" -#include "src/core/ext/xds/xds_endpoint.h" #include "src/core/lib/channel/call_tracer.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/config/core_configuration.h" @@ -73,6 +67,12 @@ #include "src/core/load_balancing/xds/xds_channel_args.h" #include "src/core/resolver/endpoint_addresses.h" #include "src/core/resolver/xds/xds_dependency_manager.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/grpc/xds_client_grpc.h" +#include "src/core/xds/grpc/xds_endpoint.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" +#include "src/core/xds/xds_client/xds_client.h" +#include "src/core/xds/xds_client/xds_client_stats.h" namespace grpc_core { diff --git a/src/core/load_balancing/xds/xds_override_host.cc b/src/core/load_balancing/xds/xds_override_host.cc index e29c9fde9f7..c8821ca0a91 100644 --- a/src/core/load_balancing/xds/xds_override_host.cc +++ b/src/core/load_balancing/xds/xds_override_host.cc @@ -49,7 +49,6 @@ #include "src/core/client_channel/client_channel_internal.h" #include "src/core/ext/filters/stateful_session/stateful_session_filter.h" -#include "src/core/ext/xds/xds_health_status.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/channel/channel_args.h" @@ -82,6 +81,7 @@ #include "src/core/load_balancing/subchannel_interface.h" #include "src/core/resolver/endpoint_addresses.h" #include "src/core/resolver/xds/xds_dependency_manager.h" +#include "src/core/xds/grpc/xds_health_status.h" namespace grpc_core { diff --git a/src/core/load_balancing/xds/xds_wrr_locality.cc b/src/core/load_balancing/xds/xds_wrr_locality.cc index 6aa2194d7b7..ac79f69f417 100644 --- a/src/core/load_balancing/xds/xds_wrr_locality.cc +++ b/src/core/load_balancing/xds/xds_wrr_locality.cc @@ -31,7 +31,6 @@ #include #include -#include "src/core/ext/xds/xds_client_stats.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/config/core_configuration.h" #include "src/core/lib/debug/trace.h" @@ -51,6 +50,7 @@ #include "src/core/load_balancing/lb_policy_registry.h" #include "src/core/load_balancing/xds/xds_channel_args.h" #include "src/core/resolver/endpoint_addresses.h" +#include "src/core/xds/xds_client/xds_client_stats.h" namespace grpc_core { diff --git a/src/core/resolver/google_c2p/google_c2p_resolver.cc b/src/core/resolver/google_c2p/google_c2p_resolver.cc index a86e6d85603..0fb3744a3e8 100644 --- a/src/core/resolver/google_c2p/google_c2p_resolver.cc +++ b/src/core/resolver/google_c2p/google_c2p_resolver.cc @@ -33,8 +33,6 @@ #include #include "src/core/ext/gcp/metadata_query.h" -#include "src/core/ext/xds/xds_bootstrap.h" -#include "src/core/ext/xds/xds_client_grpc.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/config/core_configuration.h" #include "src/core/lib/gprpp/debug_location.h" @@ -52,6 +50,8 @@ #include "src/core/resolver/resolver.h" #include "src/core/resolver/resolver_factory.h" #include "src/core/resolver/resolver_registry.h" +#include "src/core/xds/grpc/xds_client_grpc.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" namespace grpc_core { diff --git a/src/core/resolver/xds/xds_dependency_manager.cc b/src/core/resolver/xds/xds_dependency_manager.cc index 0f51062e8f5..566e16059ce 100644 --- a/src/core/resolver/xds/xds_dependency_manager.cc +++ b/src/core/resolver/xds/xds_dependency_manager.cc @@ -23,12 +23,12 @@ #include -#include "src/core/ext/xds/xds_routing.h" #include "src/core/lib/config/core_configuration.h" #include "src/core/lib/gprpp/match.h" #include "src/core/load_balancing/xds/xds_channel_args.h" #include "src/core/resolver/fake/fake_resolver.h" #include "src/core/resolver/xds/xds_resolver_trace.h" +#include "src/core/xds/grpc/xds_routing.h" namespace grpc_core { diff --git a/src/core/resolver/xds/xds_dependency_manager.h b/src/core/resolver/xds/xds_dependency_manager.h index 903c8b95e89..9b2a5580601 100644 --- a/src/core/resolver/xds/xds_dependency_manager.h +++ b/src/core/resolver/xds/xds_dependency_manager.h @@ -23,13 +23,13 @@ #include -#include "src/core/ext/xds/xds_client_grpc.h" -#include "src/core/ext/xds/xds_cluster.h" -#include "src/core/ext/xds/xds_endpoint.h" -#include "src/core/ext/xds/xds_listener.h" -#include "src/core/ext/xds/xds_route_config.h" #include "src/core/lib/gprpp/ref_counted.h" #include "src/core/resolver/resolver.h" +#include "src/core/xds/grpc/xds_client_grpc.h" +#include "src/core/xds/grpc/xds_cluster.h" +#include "src/core/xds/grpc/xds_endpoint.h" +#include "src/core/xds/grpc/xds_listener.h" +#include "src/core/xds/grpc/xds_route_config.h" namespace grpc_core { diff --git a/src/core/resolver/xds/xds_resolver.cc b/src/core/resolver/xds/xds_resolver.cc index d64da628eed..1b062981a2d 100644 --- a/src/core/resolver/xds/xds_resolver.cc +++ b/src/core/resolver/xds/xds_resolver.cc @@ -50,13 +50,6 @@ #include "src/core/client_channel/client_channel_internal.h" #include "src/core/client_channel/config_selector.h" -#include "src/core/ext/xds/xds_bootstrap.h" -#include "src/core/ext/xds/xds_bootstrap_grpc.h" -#include "src/core/ext/xds/xds_client_grpc.h" -#include "src/core/ext/xds/xds_http_filters.h" -#include "src/core/ext/xds/xds_listener.h" -#include "src/core/ext/xds/xds_route_config.h" -#include "src/core/ext/xds/xds_routing.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/channel/channel_stack.h" @@ -93,6 +86,13 @@ #include "src/core/resolver/xds/xds_resolver_trace.h" #include "src/core/service_config/service_config.h" #include "src/core/service_config/service_config_impl.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/grpc/xds_client_grpc.h" +#include "src/core/xds/grpc/xds_http_filters.h" +#include "src/core/xds/grpc/xds_listener.h" +#include "src/core/xds/grpc/xds_route_config.h" +#include "src/core/xds/grpc/xds_routing.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" namespace grpc_core { diff --git a/src/core/server/xds_server_config_fetcher.cc b/src/core/server/xds_server_config_fetcher.cc index edb46e9bd3d..885e21120ba 100644 --- a/src/core/server/xds_server_config_fetcher.cc +++ b/src/core/server/xds_server_config_fetcher.cc @@ -47,16 +47,6 @@ #include #include -#include "src/core/ext/xds/certificate_provider_store.h" -#include "src/core/ext/xds/xds_bootstrap_grpc.h" -#include "src/core/ext/xds/xds_certificate_provider.h" -#include "src/core/ext/xds/xds_client.h" -#include "src/core/ext/xds/xds_client_grpc.h" -#include "src/core/ext/xds/xds_common_types.h" -#include "src/core/ext/xds/xds_http_filters.h" -#include "src/core/ext/xds/xds_listener.h" -#include "src/core/ext/xds/xds_route_config.h" -#include "src/core/ext/xds/xds_routing.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/channel/channel_args.h" @@ -89,6 +79,16 @@ #include "src/core/server/xds_channel_stack_modifier.h" #include "src/core/service_config/service_config.h" #include "src/core/service_config/service_config_impl.h" +#include "src/core/xds/grpc/certificate_provider_store.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/grpc/xds_certificate_provider.h" +#include "src/core/xds/grpc/xds_client_grpc.h" +#include "src/core/xds/grpc/xds_common_types.h" +#include "src/core/xds/grpc/xds_http_filters.h" +#include "src/core/xds/grpc/xds_listener.h" +#include "src/core/xds/grpc/xds_route_config.h" +#include "src/core/xds/grpc/xds_routing.h" +#include "src/core/xds/xds_client/xds_client.h" namespace grpc_core { namespace { diff --git a/src/core/ext/xds/certificate_provider_store.cc b/src/core/xds/grpc/certificate_provider_store.cc similarity index 98% rename from src/core/ext/xds/certificate_provider_store.cc rename to src/core/xds/grpc/certificate_provider_store.cc index 9bfd22428e7..9915780957f 100644 --- a/src/core/ext/xds/certificate_provider_store.cc +++ b/src/core/xds/grpc/certificate_provider_store.cc @@ -16,7 +16,7 @@ // // -#include "src/core/ext/xds/certificate_provider_store.h" +#include "src/core/xds/grpc/certificate_provider_store.h" #include "absl/strings/str_cat.h" diff --git a/src/core/ext/xds/certificate_provider_store.h b/src/core/xds/grpc/certificate_provider_store.h similarity index 96% rename from src/core/ext/xds/certificate_provider_store.h rename to src/core/xds/grpc/certificate_provider_store.h index 643f1019c6f..3099886f415 100644 --- a/src/core/ext/xds/certificate_provider_store.h +++ b/src/core/xds/grpc/certificate_provider_store.h @@ -16,8 +16,8 @@ // // -#ifndef GRPC_SRC_CORE_EXT_XDS_CERTIFICATE_PROVIDER_STORE_H -#define GRPC_SRC_CORE_EXT_XDS_CERTIFICATE_PROVIDER_STORE_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_CERTIFICATE_PROVIDER_STORE_H +#define GRPC_SRC_CORE_XDS_GRPC_CERTIFICATE_PROVIDER_STORE_H #include #include @@ -130,4 +130,4 @@ class CertificateProviderStore final } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_CERTIFICATE_PROVIDER_STORE_H +#endif // GRPC_SRC_CORE_XDS_GRPC_CERTIFICATE_PROVIDER_STORE_H diff --git a/src/core/ext/xds/file_watcher_certificate_provider_factory.cc b/src/core/xds/grpc/file_watcher_certificate_provider_factory.cc similarity index 98% rename from src/core/ext/xds/file_watcher_certificate_provider_factory.cc rename to src/core/xds/grpc/file_watcher_certificate_provider_factory.cc index 8671ac4c6d5..0d9acdca546 100644 --- a/src/core/ext/xds/file_watcher_certificate_provider_factory.cc +++ b/src/core/xds/grpc/file_watcher_certificate_provider_factory.cc @@ -16,7 +16,7 @@ // // -#include "src/core/ext/xds/file_watcher_certificate_provider_factory.h" +#include "src/core/xds/grpc/file_watcher_certificate_provider_factory.h" #include #include diff --git a/src/core/ext/xds/file_watcher_certificate_provider_factory.h b/src/core/xds/grpc/file_watcher_certificate_provider_factory.h similarity index 91% rename from src/core/ext/xds/file_watcher_certificate_provider_factory.h rename to src/core/xds/grpc/file_watcher_certificate_provider_factory.h index 94871771e88..06f680148d2 100644 --- a/src/core/ext/xds/file_watcher_certificate_provider_factory.h +++ b/src/core/xds/grpc/file_watcher_certificate_provider_factory.h @@ -16,8 +16,8 @@ // // -#ifndef GRPC_SRC_CORE_EXT_XDS_FILE_WATCHER_CERTIFICATE_PROVIDER_FACTORY_H -#define GRPC_SRC_CORE_EXT_XDS_FILE_WATCHER_CERTIFICATE_PROVIDER_FACTORY_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_FILE_WATCHER_CERTIFICATE_PROVIDER_FACTORY_H +#define GRPC_SRC_CORE_XDS_GRPC_FILE_WATCHER_CERTIFICATE_PROVIDER_FACTORY_H #include @@ -78,4 +78,4 @@ class FileWatcherCertificateProviderFactory final } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_FILE_WATCHER_CERTIFICATE_PROVIDER_FACTORY_H +#endif // GRPC_SRC_CORE_XDS_GRPC_FILE_WATCHER_CERTIFICATE_PROVIDER_FACTORY_H diff --git a/src/core/ext/xds/upb_utils.h b/src/core/xds/grpc/upb_utils.h similarity index 90% rename from src/core/ext/xds/upb_utils.h rename to src/core/xds/grpc/upb_utils.h index 3c994cdd5ee..e2123f39cbc 100644 --- a/src/core/ext/xds/upb_utils.h +++ b/src/core/xds/grpc/upb_utils.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_UPB_UTILS_H -#define GRPC_SRC_CORE_EXT_XDS_UPB_UTILS_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_UPB_UTILS_H +#define GRPC_SRC_CORE_XDS_GRPC_UPB_UTILS_H #include @@ -42,4 +42,4 @@ inline std::string UpbStringToStdString(const upb_StringView& str) { } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_UPB_UTILS_H +#endif // GRPC_SRC_CORE_XDS_GRPC_UPB_UTILS_H diff --git a/src/core/ext/xds/xds_audit_logger_registry.cc b/src/core/xds/grpc/xds_audit_logger_registry.cc similarity index 97% rename from src/core/ext/xds/xds_audit_logger_registry.cc rename to src/core/xds/grpc/xds_audit_logger_registry.cc index ac76cac13d0..328849808ce 100644 --- a/src/core/ext/xds/xds_audit_logger_registry.cc +++ b/src/core/xds/grpc/xds_audit_logger_registry.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_audit_logger_registry.h" +#include "src/core/xds/grpc/xds_audit_logger_registry.h" #include #include @@ -28,10 +28,10 @@ #include -#include "src/core/ext/xds/xds_common_types.h" #include "src/core/lib/gprpp/match.h" #include "src/core/lib/gprpp/validation_errors.h" #include "src/core/lib/security/authorization/audit_logging.h" +#include "src/core/xds/grpc/xds_common_types.h" namespace grpc_core { diff --git a/src/core/ext/xds/xds_audit_logger_registry.h b/src/core/xds/grpc/xds_audit_logger_registry.h similarity index 89% rename from src/core/ext/xds/xds_audit_logger_registry.h rename to src/core/xds/grpc/xds_audit_logger_registry.h index c9b0b6f4cb5..ba9ad888fec 100644 --- a/src/core/ext/xds/xds_audit_logger_registry.h +++ b/src/core/xds/grpc/xds_audit_logger_registry.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_AUDIT_LOGGER_REGISTRY_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_AUDIT_LOGGER_REGISTRY_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_AUDIT_LOGGER_REGISTRY_H +#define GRPC_SRC_CORE_XDS_GRPC_XDS_AUDIT_LOGGER_REGISTRY_H #include #include @@ -25,9 +25,9 @@ #include -#include "src/core/ext/xds/xds_resource_type.h" #include "src/core/lib/gprpp/validation_errors.h" #include "src/core/lib/json/json.h" +#include "src/core/xds/xds_client/xds_resource_type.h" namespace grpc_core { @@ -65,4 +65,4 @@ class XdsAuditLoggerRegistry final { } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_AUDIT_LOGGER_REGISTRY_H +#endif // GRPC_SRC_CORE_XDS_GRPC_XDS_AUDIT_LOGGER_REGISTRY_H diff --git a/src/core/ext/xds/xds_bootstrap_grpc.cc b/src/core/xds/grpc/xds_bootstrap_grpc.cc similarity index 99% rename from src/core/ext/xds/xds_bootstrap_grpc.cc rename to src/core/xds/grpc/xds_bootstrap_grpc.cc index b5b0642cfa7..ec1f44a3386 100644 --- a/src/core/ext/xds/xds_bootstrap_grpc.cc +++ b/src/core/xds/grpc/xds_bootstrap_grpc.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_bootstrap_grpc.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" #include diff --git a/src/core/ext/xds/xds_bootstrap_grpc.h b/src/core/xds/grpc/xds_bootstrap_grpc.h similarity index 92% rename from src/core/ext/xds/xds_bootstrap_grpc.h rename to src/core/xds/grpc/xds_bootstrap_grpc.h index 7134cac22ee..a4a41b4e50e 100644 --- a/src/core/ext/xds/xds_bootstrap_grpc.h +++ b/src/core/xds/grpc/xds_bootstrap_grpc.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_BOOTSTRAP_GRPC_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_BOOTSTRAP_GRPC_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_BOOTSTRAP_GRPC_H +#define GRPC_SRC_CORE_XDS_GRPC_XDS_BOOTSTRAP_GRPC_H #include #include @@ -29,18 +29,18 @@ #include -#include "src/core/ext/xds/certificate_provider_store.h" -#include "src/core/ext/xds/xds_audit_logger_registry.h" -#include "src/core/ext/xds/xds_bootstrap.h" -#include "src/core/ext/xds/xds_cluster_specifier_plugin.h" -#include "src/core/ext/xds/xds_http_filters.h" -#include "src/core/ext/xds/xds_lb_policy_registry.h" #include "src/core/lib/gprpp/ref_counted_ptr.h" #include "src/core/lib/gprpp/validation_errors.h" #include "src/core/lib/json/json.h" #include "src/core/lib/json/json_args.h" #include "src/core/lib/json/json_object_loader.h" #include "src/core/lib/security/credentials/channel_creds_registry.h" +#include "src/core/xds/grpc/certificate_provider_store.h" +#include "src/core/xds/grpc/xds_audit_logger_registry.h" +#include "src/core/xds/grpc/xds_cluster_specifier_plugin.h" +#include "src/core/xds/grpc/xds_http_filters.h" +#include "src/core/xds/grpc/xds_lb_policy_registry.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" namespace grpc_core { @@ -194,4 +194,4 @@ class GrpcXdsBootstrap final : public XdsBootstrap { } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_BOOTSTRAP_GRPC_H +#endif // GRPC_SRC_CORE_XDS_GRPC_XDS_BOOTSTRAP_GRPC_H diff --git a/src/core/ext/xds/xds_certificate_provider.cc b/src/core/xds/grpc/xds_certificate_provider.cc similarity index 99% rename from src/core/ext/xds/xds_certificate_provider.cc rename to src/core/xds/grpc/xds_certificate_provider.cc index 95e4be8ab3f..58ce2da4446 100644 --- a/src/core/ext/xds/xds_certificate_provider.cc +++ b/src/core/xds/grpc/xds_certificate_provider.cc @@ -16,7 +16,7 @@ // // -#include "src/core/ext/xds/xds_certificate_provider.h" +#include "src/core/xds/grpc/xds_certificate_provider.h" #include diff --git a/src/core/ext/xds/xds_certificate_provider.h b/src/core/xds/grpc/xds_certificate_provider.h similarity index 95% rename from src/core/ext/xds/xds_certificate_provider.h rename to src/core/xds/grpc/xds_certificate_provider.h index d5afc6dfcb0..482ff449313 100644 --- a/src/core/ext/xds/xds_certificate_provider.h +++ b/src/core/xds/grpc/xds_certificate_provider.h @@ -16,8 +16,8 @@ // // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_CERTIFICATE_PROVIDER_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_CERTIFICATE_PROVIDER_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_CERTIFICATE_PROVIDER_H +#define GRPC_SRC_CORE_XDS_GRPC_XDS_CERTIFICATE_PROVIDER_H #include #include @@ -112,4 +112,4 @@ class XdsCertificateProvider final : public grpc_tls_certificate_provider { } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_CERTIFICATE_PROVIDER_H +#endif // GRPC_SRC_CORE_XDS_GRPC_XDS_CERTIFICATE_PROVIDER_H diff --git a/src/core/ext/xds/xds_client_grpc.cc b/src/core/xds/grpc/xds_client_grpc.cc similarity index 97% rename from src/core/ext/xds/xds_client_grpc.cc rename to src/core/xds/grpc/xds_client_grpc.cc index 5adfe3f25b1..4408f96e2b6 100644 --- a/src/core/ext/xds/xds_client_grpc.cc +++ b/src/core/xds/grpc/xds_client_grpc.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_client_grpc.h" +#include "src/core/xds/grpc/xds_client_grpc.h" #include #include @@ -39,14 +39,6 @@ #include #include -#include "src/core/ext/xds/upb_utils.h" -#include "src/core/ext/xds/xds_api.h" -#include "src/core/ext/xds/xds_bootstrap.h" -#include "src/core/ext/xds/xds_bootstrap_grpc.h" -#include "src/core/ext/xds/xds_channel_args.h" -#include "src/core/ext/xds/xds_client.h" -#include "src/core/ext/xds/xds_transport.h" -#include "src/core/ext/xds/xds_transport_grpc.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/metrics.h" #include "src/core/lib/debug/trace.h" @@ -63,6 +55,14 @@ #include "src/core/lib/slice/slice.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/lib/transport/error_utils.h" +#include "src/core/xds/grpc/upb_utils.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/grpc/xds_transport_grpc.h" +#include "src/core/xds/xds_client/xds_api.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" +#include "src/core/xds/xds_client/xds_channel_args.h" +#include "src/core/xds/xds_client/xds_client.h" +#include "src/core/xds/xds_client/xds_transport.h" // If gRPC is built with -DGRPC_XDS_USER_AGENT_NAME_SUFFIX="...", that string // will be appended to the user agent name reported to the xDS server. diff --git a/src/core/ext/xds/xds_client_grpc.h b/src/core/xds/grpc/xds_client_grpc.h similarity index 91% rename from src/core/ext/xds/xds_client_grpc.h rename to src/core/xds/grpc/xds_client_grpc.h index 0aa17bf50c0..0ed5c327e17 100644 --- a/src/core/ext/xds/xds_client_grpc.h +++ b/src/core/xds/grpc/xds_client_grpc.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_CLIENT_GRPC_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_CLIENT_GRPC_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_CLIENT_GRPC_H +#define GRPC_SRC_CORE_XDS_GRPC_XDS_CLIENT_GRPC_H #include @@ -25,10 +25,6 @@ #include #include -#include "src/core/ext/xds/certificate_provider_store.h" -#include "src/core/ext/xds/xds_bootstrap_grpc.h" -#include "src/core/ext/xds/xds_client.h" -#include "src/core/ext/xds/xds_transport.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/metrics.h" #include "src/core/lib/gpr/useful.h" @@ -36,6 +32,10 @@ #include "src/core/lib/gprpp/ref_counted_ptr.h" #include "src/core/lib/iomgr/iomgr_fwd.h" #include "src/core/resolver/endpoint_addresses.h" +#include "src/core/xds/grpc/certificate_provider_store.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/xds_client/xds_client.h" +#include "src/core/xds/xds_client/xds_transport.h" namespace grpc_core { @@ -106,4 +106,4 @@ void SetXdsFallbackBootstrapConfig(const char* config); } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_CLIENT_GRPC_H +#endif // GRPC_SRC_CORE_XDS_GRPC_XDS_CLIENT_GRPC_H diff --git a/src/core/ext/xds/xds_cluster.cc b/src/core/xds/grpc/xds_cluster.cc similarity index 99% rename from src/core/ext/xds/xds_cluster.cc rename to src/core/xds/grpc/xds_cluster.cc index 4991abe8794..b136ffa16c7 100644 --- a/src/core/ext/xds/xds_cluster.cc +++ b/src/core/xds/grpc/xds_cluster.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_cluster.h" +#include "src/core/xds/grpc/xds_cluster.h" #include @@ -56,11 +56,6 @@ #include #include -#include "src/core/ext/xds/upb_utils.h" -#include "src/core/ext/xds/xds_client.h" -#include "src/core/ext/xds/xds_common_types.h" -#include "src/core/ext/xds/xds_lb_policy_registry.h" -#include "src/core/ext/xds/xds_resource_type.h" #include "src/core/lib/config/core_configuration.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/gprpp/host_port.h" @@ -71,6 +66,11 @@ #include "src/core/lib/json/json_writer.h" #include "src/core/lib/matchers/matchers.h" #include "src/core/load_balancing/lb_policy_registry.h" +#include "src/core/xds/grpc/upb_utils.h" +#include "src/core/xds/grpc/xds_common_types.h" +#include "src/core/xds/grpc/xds_lb_policy_registry.h" +#include "src/core/xds/xds_client/xds_client.h" +#include "src/core/xds/xds_client/xds_resource_type.h" namespace grpc_core { diff --git a/src/core/ext/xds/xds_cluster.h b/src/core/xds/grpc/xds_cluster.h similarity index 90% rename from src/core/ext/xds/xds_cluster.h rename to src/core/xds/grpc/xds_cluster.h index 2780da27b83..d680dbdb43e 100644 --- a/src/core/ext/xds/xds_cluster.h +++ b/src/core/xds/grpc/xds_cluster.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_CLUSTER_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_CLUSTER_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_CLUSTER_H +#define GRPC_SRC_CORE_XDS_GRPC_XDS_CLUSTER_H #include @@ -35,15 +35,15 @@ #include #include -#include "src/core/ext/xds/xds_bootstrap.h" -#include "src/core/ext/xds/xds_bootstrap_grpc.h" -#include "src/core/ext/xds/xds_client.h" -#include "src/core/ext/xds/xds_common_types.h" -#include "src/core/ext/xds/xds_health_status.h" -#include "src/core/ext/xds/xds_resource_type.h" -#include "src/core/ext/xds/xds_resource_type_impl.h" #include "src/core/lib/json/json.h" #include "src/core/load_balancing/outlier_detection/outlier_detection.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/grpc/xds_common_types.h" +#include "src/core/xds/grpc/xds_health_status.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" +#include "src/core/xds/xds_client/xds_client.h" +#include "src/core/xds/xds_client/xds_resource_type.h" +#include "src/core/xds/xds_client/xds_resource_type_impl.h" namespace grpc_core { @@ -141,4 +141,4 @@ class XdsClusterResourceType } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_CLUSTER_H +#endif // GRPC_SRC_CORE_XDS_GRPC_XDS_CLUSTER_H diff --git a/src/core/ext/xds/xds_cluster_specifier_plugin.cc b/src/core/xds/grpc/xds_cluster_specifier_plugin.cc similarity index 98% rename from src/core/ext/xds/xds_cluster_specifier_plugin.cc rename to src/core/xds/grpc/xds_cluster_specifier_plugin.cc index fbf23e2f80e..9b6dfb5ca7d 100644 --- a/src/core/ext/xds/xds_cluster_specifier_plugin.cc +++ b/src/core/xds/grpc/xds_cluster_specifier_plugin.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_cluster_specifier_plugin.h" +#include "src/core/xds/grpc/xds_cluster_specifier_plugin.h" #include diff --git a/src/core/ext/xds/xds_cluster_specifier_plugin.h b/src/core/xds/grpc/xds_cluster_specifier_plugin.h similarity index 92% rename from src/core/ext/xds/xds_cluster_specifier_plugin.h rename to src/core/xds/grpc/xds_cluster_specifier_plugin.h index acc0041cdc9..0d54b6f39e4 100644 --- a/src/core/ext/xds/xds_cluster_specifier_plugin.h +++ b/src/core/xds/grpc/xds_cluster_specifier_plugin.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_CLUSTER_SPECIFIER_PLUGIN_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_CLUSTER_SPECIFIER_PLUGIN_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_CLUSTER_SPECIFIER_PLUGIN_H +#define GRPC_SRC_CORE_XDS_GRPC_XDS_CLUSTER_SPECIFIER_PLUGIN_H #include #include @@ -27,9 +27,9 @@ #include -#include "src/core/ext/xds/xds_common_types.h" #include "src/core/lib/gprpp/validation_errors.h" #include "src/core/lib/json/json.h" +#include "src/core/xds/grpc/xds_common_types.h" namespace grpc_core { @@ -94,4 +94,4 @@ class XdsClusterSpecifierPluginRegistry final { } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_CLUSTER_SPECIFIER_PLUGIN_H +#endif // GRPC_SRC_CORE_XDS_GRPC_XDS_CLUSTER_SPECIFIER_PLUGIN_H diff --git a/src/core/ext/xds/xds_common_types.cc b/src/core/xds/grpc/xds_common_types.cc similarity index 99% rename from src/core/ext/xds/xds_common_types.cc rename to src/core/xds/grpc/xds_common_types.cc index aac36bb4f5e..b20cf73d746 100644 --- a/src/core/ext/xds/xds_common_types.cc +++ b/src/core/xds/grpc/xds_common_types.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_common_types.h" +#include "src/core/xds/grpc/xds_common_types.h" #include #include @@ -44,10 +44,10 @@ #include #include -#include "src/core/ext/xds/upb_utils.h" -#include "src/core/ext/xds/xds_bootstrap_grpc.h" -#include "src/core/ext/xds/xds_client.h" #include "src/core/lib/json/json_reader.h" +#include "src/core/xds/grpc/upb_utils.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/xds_client/xds_client.h" namespace grpc_core { diff --git a/src/core/ext/xds/xds_common_types.h b/src/core/xds/grpc/xds_common_types.h similarity index 94% rename from src/core/ext/xds/xds_common_types.h rename to src/core/xds/grpc/xds_common_types.h index 038c24de897..1a93e166208 100644 --- a/src/core/ext/xds/xds_common_types.h +++ b/src/core/xds/grpc/xds_common_types.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_COMMON_TYPES_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_COMMON_TYPES_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_COMMON_TYPES_H +#define GRPC_SRC_CORE_XDS_GRPC_XDS_COMMON_TYPES_H #include #include @@ -29,11 +29,11 @@ #include -#include "src/core/ext/xds/xds_resource_type.h" #include "src/core/lib/gprpp/time.h" #include "src/core/lib/gprpp/validation_errors.h" #include "src/core/lib/json/json.h" #include "src/core/lib/matchers/matchers.h" +#include "src/core/xds/xds_client/xds_resource_type.h" namespace grpc_core { @@ -105,4 +105,4 @@ absl::optional ExtractXdsExtension( } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_COMMON_TYPES_H +#endif // GRPC_SRC_CORE_XDS_GRPC_XDS_COMMON_TYPES_H diff --git a/src/core/ext/xds/xds_enabled_server.h b/src/core/xds/grpc/xds_enabled_server.h similarity index 82% rename from src/core/ext/xds/xds_enabled_server.h rename to src/core/xds/grpc/xds_enabled_server.h index ea6edffa6ae..c48ebe9ebdc 100644 --- a/src/core/ext/xds/xds_enabled_server.h +++ b/src/core/xds/grpc/xds_enabled_server.h @@ -14,11 +14,11 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_ENABLED_SERVER_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_ENABLED_SERVER_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_ENABLED_SERVER_H +#define GRPC_SRC_CORE_XDS_GRPC_XDS_ENABLED_SERVER_H // EXPERIMENTAL. Bool-valued channel arg used as an indicator that a server is // xds enabled. #define GRPC_ARG_XDS_ENABLED_SERVER "grpc.experimental.xds_enabled_server" -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_ENABLED_SERVER_H +#endif // GRPC_SRC_CORE_XDS_GRPC_XDS_ENABLED_SERVER_H diff --git a/src/core/ext/xds/xds_endpoint.cc b/src/core/xds/grpc/xds_endpoint.cc similarity index 99% rename from src/core/ext/xds/xds_endpoint.cc rename to src/core/xds/grpc/xds_endpoint.cc index c33d8ddc99b..78cd9a05613 100644 --- a/src/core/ext/xds/xds_endpoint.cc +++ b/src/core/xds/grpc/xds_endpoint.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_endpoint.h" +#include "src/core/xds/grpc/xds_endpoint.h" #include #include @@ -43,9 +43,6 @@ #include #include -#include "src/core/ext/xds/upb_utils.h" -#include "src/core/ext/xds/xds_health_status.h" -#include "src/core/ext/xds/xds_resource_type.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/channel/channel_args.h" @@ -54,6 +51,9 @@ #include "src/core/lib/gprpp/env.h" #include "src/core/lib/gprpp/validation_errors.h" #include "src/core/lib/iomgr/resolved_address.h" +#include "src/core/xds/grpc/upb_utils.h" +#include "src/core/xds/grpc/xds_health_status.h" +#include "src/core/xds/xds_client/xds_resource_type.h" // IWYU pragma: no_include "absl/meta/type_traits.h" diff --git a/src/core/ext/xds/xds_endpoint.h b/src/core/xds/grpc/xds_endpoint.h similarity index 92% rename from src/core/ext/xds/xds_endpoint.h rename to src/core/xds/grpc/xds_endpoint.h index d5d9c1106ee..43de2349901 100644 --- a/src/core/ext/xds/xds_endpoint.h +++ b/src/core/xds/grpc/xds_endpoint.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_ENDPOINT_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_ENDPOINT_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_ENDPOINT_H +#define GRPC_SRC_CORE_XDS_GRPC_XDS_ENDPOINT_H #include @@ -33,14 +33,14 @@ #include -#include "src/core/ext/xds/xds_client.h" -#include "src/core/ext/xds/xds_client_stats.h" -#include "src/core/ext/xds/xds_resource_type.h" -#include "src/core/ext/xds/xds_resource_type_impl.h" #include "src/core/lib/gprpp/ref_counted.h" #include "src/core/lib/gprpp/ref_counted_ptr.h" #include "src/core/lib/gprpp/sync.h" #include "src/core/resolver/endpoint_addresses.h" +#include "src/core/xds/xds_client/xds_client.h" +#include "src/core/xds/xds_client/xds_client_stats.h" +#include "src/core/xds/xds_client/xds_resource_type.h" +#include "src/core/xds/xds_client/xds_resource_type_impl.h" namespace grpc_core { @@ -147,4 +147,4 @@ class XdsEndpointResourceType final } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_ENDPOINT_H +#endif // GRPC_SRC_CORE_XDS_GRPC_XDS_ENDPOINT_H diff --git a/src/core/ext/xds/xds_health_status.cc b/src/core/xds/grpc/xds_health_status.cc similarity index 97% rename from src/core/ext/xds/xds_health_status.cc rename to src/core/xds/grpc/xds_health_status.cc index 5df84147b40..6f137656e3c 100644 --- a/src/core/ext/xds/xds_health_status.cc +++ b/src/core/xds/grpc/xds_health_status.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_health_status.h" +#include "src/core/xds/grpc/xds_health_status.h" #include diff --git a/src/core/ext/xds/xds_health_status.h b/src/core/xds/grpc/xds_health_status.h similarity index 93% rename from src/core/ext/xds/xds_health_status.h rename to src/core/xds/grpc/xds_health_status.h index 593aa681b71..a0be5ecb443 100644 --- a/src/core/ext/xds/xds_health_status.h +++ b/src/core/xds/grpc/xds_health_status.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_HEALTH_STATUS_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_HEALTH_STATUS_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_HEALTH_STATUS_H +#define GRPC_SRC_CORE_XDS_GRPC_XDS_HEALTH_STATUS_H #include @@ -88,4 +88,4 @@ class XdsHealthStatusSet final { } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_HEALTH_STATUS_H +#endif // GRPC_SRC_CORE_XDS_GRPC_XDS_HEALTH_STATUS_H diff --git a/src/core/ext/xds/xds_http_fault_filter.cc b/src/core/xds/grpc/xds_http_fault_filter.cc similarity index 98% rename from src/core/ext/xds/xds_http_fault_filter.cc rename to src/core/xds/grpc/xds_http_fault_filter.cc index 74fb67b3075..d6aabcefb6d 100644 --- a/src/core/ext/xds/xds_http_fault_filter.cc +++ b/src/core/xds/grpc/xds_http_fault_filter.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_http_fault_filter.h" +#include "src/core/xds/grpc/xds_http_fault_filter.h" #include @@ -37,8 +37,6 @@ #include "src/core/ext/filters/fault_injection/fault_injection_filter.h" #include "src/core/ext/filters/fault_injection/fault_injection_service_config_parser.h" -#include "src/core/ext/xds/xds_common_types.h" -#include "src/core/ext/xds/xds_http_filters.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/status_util.h" #include "src/core/lib/gprpp/time.h" @@ -46,6 +44,8 @@ #include "src/core/lib/json/json.h" #include "src/core/lib/json/json_writer.h" #include "src/core/lib/transport/status_conversion.h" +#include "src/core/xds/grpc/xds_common_types.h" +#include "src/core/xds/grpc/xds_http_filters.h" namespace grpc_core { diff --git a/src/core/ext/xds/xds_http_fault_filter.h b/src/core/xds/grpc/xds_http_fault_filter.h similarity index 86% rename from src/core/ext/xds/xds_http_fault_filter.h rename to src/core/xds/grpc/xds_http_fault_filter.h index 23373f2e84d..cd6dfd78691 100644 --- a/src/core/ext/xds/xds_http_fault_filter.h +++ b/src/core/xds/grpc/xds_http_fault_filter.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_HTTP_FAULT_FILTER_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_HTTP_FAULT_FILTER_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_HTTP_FAULT_FILTER_H +#define GRPC_SRC_CORE_XDS_GRPC_XDS_HTTP_FAULT_FILTER_H #include "absl/status/statusor.h" #include "absl/strings/string_view.h" @@ -24,12 +24,12 @@ #include -#include "src/core/ext/xds/xds_common_types.h" -#include "src/core/ext/xds/xds_http_filters.h" -#include "src/core/ext/xds/xds_resource_type.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/gprpp/validation_errors.h" +#include "src/core/xds/grpc/xds_common_types.h" +#include "src/core/xds/grpc/xds_http_filters.h" +#include "src/core/xds/xds_client/xds_resource_type.h" namespace grpc_core { @@ -55,4 +55,4 @@ class XdsHttpFaultFilter final : public XdsHttpFilterImpl { } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_HTTP_FAULT_FILTER_H +#endif // GRPC_SRC_CORE_XDS_GRPC_XDS_HTTP_FAULT_FILTER_H diff --git a/src/core/ext/xds/xds_http_filters.cc b/src/core/xds/grpc/xds_http_filters.cc similarity index 94% rename from src/core/ext/xds/xds_http_filters.cc rename to src/core/xds/grpc/xds_http_filters.cc index 03e0a5e9f6d..0b0f9e7c0af 100644 --- a/src/core/ext/xds/xds_http_filters.cc +++ b/src/core/xds/grpc/xds_http_filters.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_http_filters.h" +#include "src/core/xds/grpc/xds_http_filters.h" #include #include @@ -28,9 +28,9 @@ #include #include -#include "src/core/ext/xds/xds_http_fault_filter.h" -#include "src/core/ext/xds/xds_http_rbac_filter.h" -#include "src/core/ext/xds/xds_http_stateful_session_filter.h" +#include "src/core/xds/grpc/xds_http_fault_filter.h" +#include "src/core/xds/grpc/xds_http_rbac_filter.h" +#include "src/core/xds/grpc/xds_http_stateful_session_filter.h" namespace grpc_core { diff --git a/src/core/ext/xds/xds_http_filters.h b/src/core/xds/grpc/xds_http_filters.h similarity index 96% rename from src/core/ext/xds/xds_http_filters.h rename to src/core/xds/grpc/xds_http_filters.h index db673cdf6af..46f9c0dc968 100644 --- a/src/core/ext/xds/xds_http_filters.h +++ b/src/core/xds/grpc/xds_http_filters.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_HTTP_FILTERS_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_HTTP_FILTERS_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_HTTP_FILTERS_H +#define GRPC_SRC_CORE_XDS_GRPC_XDS_HTTP_FILTERS_H #include #include @@ -32,13 +32,13 @@ #include -#include "src/core/ext/xds/xds_common_types.h" -#include "src/core/ext/xds/xds_resource_type.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/gprpp/validation_errors.h" #include "src/core/lib/json/json.h" #include "src/core/lib/json/json_writer.h" +#include "src/core/xds/grpc/xds_common_types.h" +#include "src/core/xds/xds_client/xds_resource_type.h" namespace grpc_core { @@ -179,4 +179,4 @@ class XdsHttpFilterRegistry final { } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_HTTP_FILTERS_H +#endif // GRPC_SRC_CORE_XDS_GRPC_XDS_HTTP_FILTERS_H diff --git a/src/core/ext/xds/xds_http_rbac_filter.cc b/src/core/xds/grpc/xds_http_rbac_filter.cc similarity index 99% rename from src/core/ext/xds/xds_http_rbac_filter.cc rename to src/core/xds/grpc/xds_http_rbac_filter.cc index 6ecdf1f23d6..c0560f09e9e 100644 --- a/src/core/ext/xds/xds_http_rbac_filter.cc +++ b/src/core/xds/grpc/xds_http_rbac_filter.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_http_rbac_filter.h" +#include "src/core/xds/grpc/xds_http_rbac_filter.h" #include #include @@ -45,15 +45,15 @@ #include "src/core/ext/filters/rbac/rbac_filter.h" #include "src/core/ext/filters/rbac/rbac_service_config_parser.h" -#include "src/core/ext/xds/upb_utils.h" -#include "src/core/ext/xds/xds_audit_logger_registry.h" -#include "src/core/ext/xds/xds_bootstrap_grpc.h" -#include "src/core/ext/xds/xds_client.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/gpr/string.h" #include "src/core/lib/gprpp/env.h" #include "src/core/lib/json/json.h" #include "src/core/lib/json/json_writer.h" +#include "src/core/xds/grpc/upb_utils.h" +#include "src/core/xds/grpc/xds_audit_logger_registry.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/xds_client/xds_client.h" namespace grpc_core { diff --git a/src/core/ext/xds/xds_http_rbac_filter.h b/src/core/xds/grpc/xds_http_rbac_filter.h similarity index 86% rename from src/core/ext/xds/xds_http_rbac_filter.h rename to src/core/xds/grpc/xds_http_rbac_filter.h index e4ba45ed45d..f95fc5d8693 100644 --- a/src/core/ext/xds/xds_http_rbac_filter.h +++ b/src/core/xds/grpc/xds_http_rbac_filter.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_HTTP_RBAC_FILTER_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_HTTP_RBAC_FILTER_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_HTTP_RBAC_FILTER_H +#define GRPC_SRC_CORE_XDS_GRPC_XDS_HTTP_RBAC_FILTER_H #include "absl/status/statusor.h" #include "absl/strings/string_view.h" @@ -24,12 +24,12 @@ #include -#include "src/core/ext/xds/xds_common_types.h" -#include "src/core/ext/xds/xds_http_filters.h" -#include "src/core/ext/xds/xds_resource_type.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/gprpp/validation_errors.h" +#include "src/core/xds/grpc/xds_common_types.h" +#include "src/core/xds/grpc/xds_http_filters.h" +#include "src/core/xds/xds_client/xds_resource_type.h" namespace grpc_core { @@ -55,4 +55,4 @@ class XdsHttpRbacFilter final : public XdsHttpFilterImpl { } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_HTTP_RBAC_FILTER_H +#endif // GRPC_SRC_CORE_XDS_GRPC_XDS_HTTP_RBAC_FILTER_H diff --git a/src/core/ext/xds/xds_http_stateful_session_filter.cc b/src/core/xds/grpc/xds_http_stateful_session_filter.cc similarity index 97% rename from src/core/ext/xds/xds_http_stateful_session_filter.cc rename to src/core/xds/grpc/xds_http_stateful_session_filter.cc index 8df2d5bc978..279129342a8 100644 --- a/src/core/ext/xds/xds_http_stateful_session_filter.cc +++ b/src/core/xds/grpc/xds_http_stateful_session_filter.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_http_stateful_session_filter.h" +#include "src/core/xds/grpc/xds_http_stateful_session_filter.h" #include #include @@ -34,14 +34,14 @@ #include "src/core/ext/filters/stateful_session/stateful_session_filter.h" #include "src/core/ext/filters/stateful_session/stateful_session_service_config_parser.h" -#include "src/core/ext/xds/upb_utils.h" -#include "src/core/ext/xds/xds_common_types.h" -#include "src/core/ext/xds/xds_http_filters.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/gprpp/time.h" #include "src/core/lib/gprpp/validation_errors.h" #include "src/core/lib/json/json.h" #include "src/core/lib/json/json_writer.h" +#include "src/core/xds/grpc/upb_utils.h" +#include "src/core/xds/grpc/xds_common_types.h" +#include "src/core/xds/grpc/xds_http_filters.h" namespace grpc_core { diff --git a/src/core/ext/xds/xds_http_stateful_session_filter.h b/src/core/xds/grpc/xds_http_stateful_session_filter.h similarity index 85% rename from src/core/ext/xds/xds_http_stateful_session_filter.h rename to src/core/xds/grpc/xds_http_stateful_session_filter.h index e1f69c4e1ac..b734b0fb135 100644 --- a/src/core/ext/xds/xds_http_stateful_session_filter.h +++ b/src/core/xds/grpc/xds_http_stateful_session_filter.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_HTTP_STATEFUL_SESSION_FILTER_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_HTTP_STATEFUL_SESSION_FILTER_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_HTTP_STATEFUL_SESSION_FILTER_H +#define GRPC_SRC_CORE_XDS_GRPC_XDS_HTTP_STATEFUL_SESSION_FILTER_H #include "absl/status/statusor.h" #include "absl/strings/string_view.h" @@ -24,12 +24,12 @@ #include -#include "src/core/ext/xds/xds_common_types.h" -#include "src/core/ext/xds/xds_http_filters.h" -#include "src/core/ext/xds/xds_resource_type.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/gprpp/validation_errors.h" +#include "src/core/xds/grpc/xds_common_types.h" +#include "src/core/xds/grpc/xds_http_filters.h" +#include "src/core/xds/xds_client/xds_resource_type.h" namespace grpc_core { @@ -55,4 +55,4 @@ class XdsHttpStatefulSessionFilter final : public XdsHttpFilterImpl { } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_HTTP_STATEFUL_SESSION_FILTER_H +#endif // GRPC_SRC_CORE_XDS_GRPC_XDS_HTTP_STATEFUL_SESSION_FILTER_H diff --git a/src/core/ext/xds/xds_lb_policy_registry.cc b/src/core/xds/grpc/xds_lb_policy_registry.cc similarity index 99% rename from src/core/ext/xds/xds_lb_policy_registry.cc rename to src/core/xds/grpc/xds_lb_policy_registry.cc index a49e203349d..fa55b1997c5 100644 --- a/src/core/ext/xds/xds_lb_policy_registry.cc +++ b/src/core/xds/grpc/xds_lb_policy_registry.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_lb_policy_registry.h" +#include "src/core/xds/grpc/xds_lb_policy_registry.h" #include #include @@ -35,11 +35,11 @@ #include #include -#include "src/core/ext/xds/xds_common_types.h" #include "src/core/lib/config/core_configuration.h" #include "src/core/lib/gprpp/time.h" #include "src/core/lib/gprpp/validation_errors.h" #include "src/core/load_balancing/lb_policy_registry.h" +#include "src/core/xds/grpc/xds_common_types.h" namespace grpc_core { diff --git a/src/core/ext/xds/xds_lb_policy_registry.h b/src/core/xds/grpc/xds_lb_policy_registry.h similarity index 91% rename from src/core/ext/xds/xds_lb_policy_registry.h rename to src/core/xds/grpc/xds_lb_policy_registry.h index b7e03923fd4..54fbf825eb3 100644 --- a/src/core/ext/xds/xds_lb_policy_registry.h +++ b/src/core/xds/grpc/xds_lb_policy_registry.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_LB_POLICY_REGISTRY_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_LB_POLICY_REGISTRY_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_LB_POLICY_REGISTRY_H +#define GRPC_SRC_CORE_XDS_GRPC_XDS_LB_POLICY_REGISTRY_H #include #include @@ -25,9 +25,9 @@ #include -#include "src/core/ext/xds/xds_resource_type.h" #include "src/core/lib/gprpp/validation_errors.h" #include "src/core/lib/json/json.h" +#include "src/core/xds/xds_client/xds_resource_type.h" namespace grpc_core { @@ -68,4 +68,4 @@ class XdsLbPolicyRegistry final { } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_LB_POLICY_REGISTRY_H +#endif // GRPC_SRC_CORE_XDS_GRPC_XDS_LB_POLICY_REGISTRY_H diff --git a/src/core/ext/xds/xds_listener.cc b/src/core/xds/grpc/xds_listener.cc similarity index 99% rename from src/core/ext/xds/xds_listener.cc rename to src/core/xds/grpc/xds_listener.cc index fa0a05aa35f..c071fd9882c 100644 --- a/src/core/ext/xds/xds_listener.cc +++ b/src/core/xds/grpc/xds_listener.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_listener.h" +#include "src/core/xds/grpc/xds_listener.h" #include @@ -47,9 +47,6 @@ #include #include -#include "src/core/ext/xds/upb_utils.h" -#include "src/core/ext/xds/xds_common_types.h" -#include "src/core/ext/xds/xds_resource_type.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/debug/trace.h" @@ -58,6 +55,9 @@ #include "src/core/lib/gprpp/validation_errors.h" #include "src/core/lib/iomgr/sockaddr.h" #include "src/core/lib/matchers/matchers.h" +#include "src/core/xds/grpc/upb_utils.h" +#include "src/core/xds/grpc/xds_common_types.h" +#include "src/core/xds/xds_client/xds_resource_type.h" namespace grpc_core { diff --git a/src/core/ext/xds/xds_listener.h b/src/core/xds/grpc/xds_listener.h similarity index 93% rename from src/core/ext/xds/xds_listener.h rename to src/core/xds/grpc/xds_listener.h index d0440c8b19b..ce5d1ca11a6 100644 --- a/src/core/ext/xds/xds_listener.h +++ b/src/core/xds/grpc/xds_listener.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_LISTENER_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_LISTENER_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_LISTENER_H +#define GRPC_SRC_CORE_XDS_GRPC_XDS_LISTENER_H #include #include @@ -36,15 +36,15 @@ #include -#include "src/core/ext/xds/xds_bootstrap_grpc.h" -#include "src/core/ext/xds/xds_client.h" -#include "src/core/ext/xds/xds_common_types.h" -#include "src/core/ext/xds/xds_http_filters.h" -#include "src/core/ext/xds/xds_resource_type.h" -#include "src/core/ext/xds/xds_resource_type_impl.h" -#include "src/core/ext/xds/xds_route_config.h" #include "src/core/lib/gprpp/time.h" #include "src/core/lib/iomgr/resolved_address.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/grpc/xds_common_types.h" +#include "src/core/xds/grpc/xds_http_filters.h" +#include "src/core/xds/grpc/xds_route_config.h" +#include "src/core/xds/xds_client/xds_client.h" +#include "src/core/xds/xds_client/xds_resource_type.h" +#include "src/core/xds/xds_client/xds_resource_type_impl.h" namespace grpc_core { @@ -233,4 +233,4 @@ class XdsListenerResourceType final } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_LISTENER_H +#endif // GRPC_SRC_CORE_XDS_GRPC_XDS_LISTENER_H diff --git a/src/core/ext/xds/xds_route_config.cc b/src/core/xds/grpc/xds_route_config.cc similarity index 99% rename from src/core/ext/xds/xds_route_config.cc rename to src/core/xds/grpc/xds_route_config.cc index 259106c53ba..b03a539f628 100644 --- a/src/core/ext/xds/xds_route_config.cc +++ b/src/core/xds/grpc/xds_route_config.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_route_config.h" +#include "src/core/xds/grpc/xds_route_config.h" #include #include @@ -58,12 +58,6 @@ #include #include -#include "src/core/ext/xds/upb_utils.h" -#include "src/core/ext/xds/xds_cluster_specifier_plugin.h" -#include "src/core/ext/xds/xds_common_types.h" -#include "src/core/ext/xds/xds_http_filters.h" -#include "src/core/ext/xds/xds_resource_type.h" -#include "src/core/ext/xds/xds_routing.h" #include "src/core/lib/channel/status_util.h" #include "src/core/lib/config/core_configuration.h" #include "src/core/lib/debug/trace.h" @@ -76,6 +70,12 @@ #include "src/core/lib/json/json_writer.h" #include "src/core/lib/matchers/matchers.h" #include "src/core/load_balancing/lb_policy_registry.h" +#include "src/core/xds/grpc/upb_utils.h" +#include "src/core/xds/grpc/xds_cluster_specifier_plugin.h" +#include "src/core/xds/grpc/xds_common_types.h" +#include "src/core/xds/grpc/xds_http_filters.h" +#include "src/core/xds/grpc/xds_routing.h" +#include "src/core/xds/xds_client/xds_resource_type.h" namespace grpc_core { diff --git a/src/core/ext/xds/xds_route_config.h b/src/core/xds/grpc/xds_route_config.h similarity index 94% rename from src/core/ext/xds/xds_route_config.h rename to src/core/xds/grpc/xds_route_config.h index b70c7334dbb..f6d802aa91e 100644 --- a/src/core/ext/xds/xds_route_config.h +++ b/src/core/xds/grpc/xds_route_config.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_ROUTE_CONFIG_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_ROUTE_CONFIG_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_ROUTE_CONFIG_H +#define GRPC_SRC_CORE_XDS_GRPC_XDS_ROUTE_CONFIG_H #include @@ -35,16 +35,16 @@ #include -#include "src/core/ext/xds/xds_bootstrap_grpc.h" -#include "src/core/ext/xds/xds_client.h" -#include "src/core/ext/xds/xds_cluster_specifier_plugin.h" -#include "src/core/ext/xds/xds_http_filters.h" -#include "src/core/ext/xds/xds_resource_type.h" -#include "src/core/ext/xds/xds_resource_type_impl.h" #include "src/core/lib/channel/status_util.h" #include "src/core/lib/gprpp/time.h" #include "src/core/lib/gprpp/validation_errors.h" #include "src/core/lib/matchers/matchers.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/grpc/xds_cluster_specifier_plugin.h" +#include "src/core/xds/grpc/xds_http_filters.h" +#include "src/core/xds/xds_client/xds_client.h" +#include "src/core/xds/xds_client/xds_resource_type.h" +#include "src/core/xds/xds_client/xds_resource_type_impl.h" namespace grpc_core { @@ -250,4 +250,4 @@ class XdsRouteConfigResourceType final } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_ROUTE_CONFIG_H +#endif // GRPC_SRC_CORE_XDS_GRPC_XDS_ROUTE_CONFIG_H diff --git a/src/core/ext/xds/xds_routing.cc b/src/core/xds/grpc/xds_routing.cc similarity index 99% rename from src/core/ext/xds/xds_routing.cc rename to src/core/xds/grpc/xds_routing.cc index 4345b4b4e2e..eadbe762286 100644 --- a/src/core/ext/xds/xds_routing.cc +++ b/src/core/xds/grpc/xds_routing.cc @@ -16,7 +16,7 @@ // // -#include "src/core/ext/xds/xds_routing.h" +#include "src/core/xds/grpc/xds_routing.h" #include #include @@ -34,9 +34,9 @@ #include #include -#include "src/core/ext/xds/xds_http_filters.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/matchers/matchers.h" +#include "src/core/xds/grpc/xds_http_filters.h" namespace grpc_core { diff --git a/src/core/ext/xds/xds_routing.h b/src/core/xds/grpc/xds_routing.h similarity index 92% rename from src/core/ext/xds/xds_routing.h rename to src/core/xds/grpc/xds_routing.h index 618045c5505..e0e4d46c43d 100644 --- a/src/core/ext/xds/xds_routing.h +++ b/src/core/xds/grpc/xds_routing.h @@ -16,8 +16,8 @@ // // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_ROUTING_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_ROUTING_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_ROUTING_H +#define GRPC_SRC_CORE_XDS_GRPC_XDS_ROUTING_H #include @@ -31,11 +31,11 @@ #include -#include "src/core/ext/xds/xds_http_filters.h" -#include "src/core/ext/xds/xds_listener.h" -#include "src/core/ext/xds/xds_route_config.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/transport/metadata_batch.h" +#include "src/core/xds/grpc/xds_http_filters.h" +#include "src/core/xds/grpc/xds_listener.h" +#include "src/core/xds/grpc/xds_route_config.h" namespace grpc_core { @@ -103,4 +103,4 @@ class XdsRouting final { } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_ROUTING_H +#endif // GRPC_SRC_CORE_XDS_GRPC_XDS_ROUTING_H diff --git a/src/core/ext/xds/xds_transport_grpc.cc b/src/core/xds/grpc/xds_transport_grpc.cc similarity index 98% rename from src/core/ext/xds/xds_transport_grpc.cc rename to src/core/xds/grpc/xds_transport_grpc.cc index 15f80762f65..3f2716bcdd0 100644 --- a/src/core/ext/xds/xds_transport_grpc.cc +++ b/src/core/xds/grpc/xds_transport_grpc.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_transport_grpc.h" +#include "src/core/xds/grpc/xds_transport_grpc.h" #include @@ -38,8 +38,6 @@ #include #include "src/core/client_channel/client_channel_filter.h" -#include "src/core/ext/xds/xds_bootstrap.h" -#include "src/core/ext/xds/xds_bootstrap_grpc.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/channel/channel_stack.h" @@ -61,6 +59,8 @@ #include "src/core/lib/surface/init_internally.h" #include "src/core/lib/surface/lame_client.h" #include "src/core/lib/transport/connectivity_state.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" namespace grpc_core { diff --git a/src/core/ext/xds/xds_transport_grpc.h b/src/core/xds/grpc/xds_transport_grpc.h similarity index 93% rename from src/core/ext/xds/xds_transport_grpc.h rename to src/core/xds/grpc/xds_transport_grpc.h index a23b7641d95..d0c08aa3cd9 100644 --- a/src/core/ext/xds/xds_transport_grpc.h +++ b/src/core/xds/grpc/xds_transport_grpc.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_TRANSPORT_GRPC_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_TRANSPORT_GRPC_H +#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_TRANSPORT_GRPC_H +#define GRPC_SRC_CORE_XDS_GRPC_XDS_TRANSPORT_GRPC_H #include #include @@ -28,8 +28,6 @@ #include #include -#include "src/core/ext/xds/xds_bootstrap.h" -#include "src/core/ext/xds/xds_transport.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/gprpp/orphanable.h" #include "src/core/lib/gprpp/ref_counted_ptr.h" @@ -37,6 +35,8 @@ #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/iomgr_fwd.h" #include "src/core/lib/surface/channel.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" +#include "src/core/xds/xds_client/xds_transport.h" namespace grpc_core { @@ -135,4 +135,4 @@ class GrpcXdsTransportFactory::GrpcXdsTransport::GrpcStreamingCall final } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_TRANSPORT_GRPC_H +#endif // GRPC_SRC_CORE_XDS_GRPC_XDS_TRANSPORT_GRPC_H diff --git a/src/core/ext/xds/xds_api.cc b/src/core/xds/xds_client/xds_api.cc similarity index 99% rename from src/core/ext/xds/xds_api.cc rename to src/core/xds/xds_client/xds_api.cc index 4d4f5a1de1a..15bd601d753 100644 --- a/src/core/ext/xds/xds_api.cc +++ b/src/core/xds/xds_client/xds_api.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_api.h" +#include "src/core/xds/xds_client/xds_api.h" #include #include @@ -47,9 +47,9 @@ #include #include -#include "src/core/ext/xds/upb_utils.h" -#include "src/core/ext/xds/xds_client.h" #include "src/core/lib/json/json.h" +#include "src/core/xds/grpc/upb_utils.h" +#include "src/core/xds/xds_client/xds_client.h" // IWYU pragma: no_include "upb/msg_internal.h" diff --git a/src/core/ext/xds/xds_api.h b/src/core/xds/xds_client/xds_api.h similarity index 96% rename from src/core/ext/xds/xds_api.h rename to src/core/xds/xds_client/xds_api.h index 25b47fb1ed6..990d9ed7718 100644 --- a/src/core/ext/xds/xds_api.h +++ b/src/core/xds/xds_client/xds_api.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_API_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_API_H +#ifndef GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_API_H +#define GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_API_H #include @@ -34,11 +34,11 @@ #include -#include "src/core/ext/xds/xds_bootstrap.h" -#include "src/core/ext/xds/xds_client_stats.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/gprpp/ref_counted_ptr.h" #include "src/core/lib/gprpp/time.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" +#include "src/core/xds/xds_client/xds_client_stats.h" namespace grpc_core { @@ -186,4 +186,4 @@ class XdsApi final { } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_API_H +#endif // GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_API_H diff --git a/src/core/ext/xds/xds_bootstrap.cc b/src/core/xds/xds_client/xds_bootstrap.cc similarity index 95% rename from src/core/ext/xds/xds_bootstrap.cc rename to src/core/xds/xds_client/xds_bootstrap.cc index 11c318d2e8c..1a979727780 100644 --- a/src/core/ext/xds/xds_bootstrap.cc +++ b/src/core/xds/xds_client/xds_bootstrap.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_bootstrap.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" #include "absl/types/optional.h" diff --git a/src/core/ext/xds/xds_bootstrap.h b/src/core/xds/xds_client/xds_bootstrap.h similarity index 93% rename from src/core/ext/xds/xds_bootstrap.h rename to src/core/xds/xds_client/xds_bootstrap.h index 23a826d6eb0..2d94961ec9b 100644 --- a/src/core/ext/xds/xds_bootstrap.h +++ b/src/core/xds/xds_client/xds_bootstrap.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_BOOTSTRAP_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_BOOTSTRAP_H +#ifndef GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_BOOTSTRAP_H +#define GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_BOOTSTRAP_H #include @@ -85,4 +85,4 @@ class XdsBootstrap { } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_BOOTSTRAP_H +#endif // GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_BOOTSTRAP_H diff --git a/src/core/ext/xds/xds_channel_args.h b/src/core/xds/xds_client/xds_channel_args.h similarity index 86% rename from src/core/ext/xds/xds_channel_args.h rename to src/core/xds/xds_client/xds_channel_args.h index dfecd44cba0..10729c5c19f 100644 --- a/src/core/ext/xds/xds_channel_args.h +++ b/src/core/xds/xds_client/xds_channel_args.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_CHANNEL_ARGS_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_CHANNEL_ARGS_H +#ifndef GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_CHANNEL_ARGS_H +#define GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_CHANNEL_ARGS_H // Specifies channel args for the xDS client. // Used only when GRPC_ARG_TEST_ONLY_DO_NOT_USE_IN_PROD_XDS_BOOTSTRAP_CONFIG @@ -29,4 +29,4 @@ #define GRPC_ARG_XDS_RESOURCE_DOES_NOT_EXIST_TIMEOUT_MS \ "grpc.xds_resource_does_not_exist_timeout_ms" -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_CHANNEL_ARGS_H +#endif // GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_CHANNEL_ARGS_H diff --git a/src/core/ext/xds/xds_client.cc b/src/core/xds/xds_client/xds_client.cc similarity index 99% rename from src/core/ext/xds/xds_client.cc rename to src/core/xds/xds_client/xds_client.cc index 3c04939ec10..a5f0c44300b 100644 --- a/src/core/ext/xds/xds_client.cc +++ b/src/core/xds/xds_client/xds_client.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_client.h" +#include "src/core/xds/xds_client/xds_client.h" #include #include @@ -46,10 +46,6 @@ #include #include -#include "src/core/ext/xds/upb_utils.h" -#include "src/core/ext/xds/xds_api.h" -#include "src/core/ext/xds/xds_bootstrap.h" -#include "src/core/ext/xds/xds_client_stats.h" #include "src/core/lib/backoff/backoff.h" #include "src/core/lib/gprpp/debug_location.h" #include "src/core/lib/gprpp/orphanable.h" @@ -57,6 +53,10 @@ #include "src/core/lib/gprpp/sync.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/uri/uri_parser.h" +#include "src/core/xds/grpc/upb_utils.h" +#include "src/core/xds/xds_client/xds_api.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" +#include "src/core/xds/xds_client/xds_client_stats.h" #define GRPC_XDS_INITIAL_CONNECT_BACKOFF_SECONDS 1 #define GRPC_XDS_RECONNECT_BACKOFF_MULTIPLIER 1.6 diff --git a/src/core/ext/xds/xds_client.h b/src/core/xds/xds_client/xds_client.h similarity index 96% rename from src/core/ext/xds/xds_client.h rename to src/core/xds/xds_client/xds_client.h index 2dc1acb3b2f..a16fe6ed5f2 100644 --- a/src/core/ext/xds/xds_client.h +++ b/src/core/xds/xds_client/xds_client.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_CLIENT_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_CLIENT_H +#ifndef GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_CLIENT_H +#define GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_CLIENT_H #include #include @@ -33,12 +33,6 @@ #include #include -#include "src/core/ext/xds/xds_api.h" -#include "src/core/ext/xds/xds_bootstrap.h" -#include "src/core/ext/xds/xds_client_stats.h" -#include "src/core/ext/xds/xds_metrics.h" -#include "src/core/ext/xds/xds_resource_type.h" -#include "src/core/ext/xds/xds_transport.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/gprpp/dual_ref_counted.h" #include "src/core/lib/gprpp/orphanable.h" @@ -48,6 +42,12 @@ #include "src/core/lib/gprpp/time.h" #include "src/core/lib/gprpp/work_serializer.h" #include "src/core/lib/uri/uri_parser.h" +#include "src/core/xds/xds_client/xds_api.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" +#include "src/core/xds/xds_client/xds_client_stats.h" +#include "src/core/xds/xds_client/xds_metrics.h" +#include "src/core/xds/xds_client/xds_resource_type.h" +#include "src/core/xds/xds_client/xds_transport.h" namespace grpc_core { @@ -387,4 +387,4 @@ class XdsClient : public DualRefCounted { } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_CLIENT_H +#endif // GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_CLIENT_H diff --git a/src/core/ext/xds/xds_client_stats.cc b/src/core/xds/xds_client/xds_client_stats.cc similarity index 98% rename from src/core/ext/xds/xds_client_stats.cc rename to src/core/xds/xds_client/xds_client_stats.cc index 2fb29968228..fa1cfe1087e 100644 --- a/src/core/ext/xds/xds_client_stats.cc +++ b/src/core/xds/xds_client/xds_client_stats.cc @@ -16,14 +16,14 @@ // // -#include "src/core/ext/xds/xds_client_stats.h" +#include "src/core/xds/xds_client/xds_client_stats.h" #include #include -#include "src/core/ext/xds/xds_client.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/gprpp/debug_location.h" +#include "src/core/xds/xds_client/xds_client.h" namespace grpc_core { diff --git a/src/core/ext/xds/xds_client_stats.h b/src/core/xds/xds_client/xds_client_stats.h similarity index 97% rename from src/core/ext/xds/xds_client_stats.h rename to src/core/xds/xds_client/xds_client_stats.h index 7aa3c0112bb..b8822ba1b3c 100644 --- a/src/core/ext/xds/xds_client_stats.h +++ b/src/core/xds/xds_client/xds_client_stats.h @@ -16,8 +16,8 @@ // // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_CLIENT_STATS_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_CLIENT_STATS_H +#ifndef GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_CLIENT_STATS_H +#define GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_CLIENT_STATS_H #include #include @@ -31,7 +31,6 @@ #include -#include "src/core/ext/xds/xds_bootstrap.h" #include "src/core/lib/channel/call_tracer.h" #include "src/core/lib/gpr/useful.h" #include "src/core/lib/gprpp/per_cpu.h" @@ -39,6 +38,7 @@ #include "src/core/lib/gprpp/ref_counted_ptr.h" #include "src/core/lib/gprpp/sync.h" #include "src/core/resolver/endpoint_addresses.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" namespace grpc_core { @@ -255,4 +255,4 @@ class XdsClusterLocalityStats final } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_CLIENT_STATS_H +#endif // GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_CLIENT_STATS_H diff --git a/src/core/ext/xds/xds_metrics.h b/src/core/xds/xds_client/xds_metrics.h similarity index 88% rename from src/core/ext/xds/xds_metrics.h rename to src/core/xds/xds_client/xds_metrics.h index 2f11761f7e6..5262e02e084 100644 --- a/src/core/ext/xds/xds_metrics.h +++ b/src/core/xds/xds_client/xds_metrics.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_METRICS_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_METRICS_H +#ifndef GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_METRICS_H +#define GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_METRICS_H #include "absl/strings/string_view.h" @@ -38,4 +38,4 @@ class XdsMetricsReporter { } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_METRICS_H +#endif // GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_METRICS_H diff --git a/src/core/ext/xds/xds_resource_type.h b/src/core/xds/xds_client/xds_resource_type.h similarity index 93% rename from src/core/ext/xds/xds_resource_type.h rename to src/core/xds/xds_client/xds_resource_type.h index e4a8c2d9440..dade8ce0f83 100644 --- a/src/core/ext/xds/xds_resource_type.h +++ b/src/core/xds/xds_client/xds_resource_type.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_RESOURCE_TYPE_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_RESOURCE_TYPE_H +#ifndef GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_RESOURCE_TYPE_H +#define GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_RESOURCE_TYPE_H #include #include @@ -27,8 +27,8 @@ #include -#include "src/core/ext/xds/xds_bootstrap.h" #include "src/core/lib/debug/trace.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" namespace grpc_core { @@ -95,4 +95,4 @@ class XdsResourceType { } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_RESOURCE_TYPE_H +#endif // GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_RESOURCE_TYPE_H diff --git a/src/core/ext/xds/xds_resource_type_impl.h b/src/core/xds/xds_client/xds_resource_type_impl.h similarity index 91% rename from src/core/ext/xds/xds_resource_type_impl.h rename to src/core/xds/xds_client/xds_resource_type_impl.h index 49cc43ea45a..dd47ccb0b09 100644 --- a/src/core/ext/xds/xds_resource_type_impl.h +++ b/src/core/xds/xds_client/xds_resource_type_impl.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_RESOURCE_TYPE_IMPL_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_RESOURCE_TYPE_IMPL_H +#ifndef GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_RESOURCE_TYPE_IMPL_H +#define GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_RESOURCE_TYPE_IMPL_H #include #include @@ -23,9 +23,9 @@ #include -#include "src/core/ext/xds/xds_client.h" -#include "src/core/ext/xds/xds_resource_type.h" #include "src/core/lib/gprpp/ref_counted_ptr.h" +#include "src/core/xds/xds_client/xds_client.h" +#include "src/core/xds/xds_client/xds_resource_type.h" namespace grpc_core { @@ -85,4 +85,4 @@ class XdsResourceTypeImpl : public XdsResourceType { } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_RESOURCE_TYPE_IMPL_H +#endif // GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_RESOURCE_TYPE_IMPL_H diff --git a/src/core/ext/xds/xds_transport.h b/src/core/xds/xds_client/xds_transport.h similarity index 93% rename from src/core/ext/xds/xds_transport.h rename to src/core/xds/xds_client/xds_transport.h index 751af812038..43b19d63035 100644 --- a/src/core/ext/xds/xds_transport.h +++ b/src/core/xds/xds_client/xds_transport.h @@ -14,8 +14,8 @@ // limitations under the License. // -#ifndef GRPC_SRC_CORE_EXT_XDS_XDS_TRANSPORT_H -#define GRPC_SRC_CORE_EXT_XDS_XDS_TRANSPORT_H +#ifndef GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_TRANSPORT_H +#define GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_TRANSPORT_H #include #include @@ -26,8 +26,8 @@ #include -#include "src/core/ext/xds/xds_bootstrap.h" #include "src/core/lib/gprpp/orphanable.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" namespace grpc_core { @@ -86,4 +86,4 @@ class XdsTransportFactory : public InternallyRefCounted { } // namespace grpc_core -#endif // GRPC_SRC_CORE_EXT_XDS_XDS_TRANSPORT_H +#endif // GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_TRANSPORT_H diff --git a/src/cpp/ext/csm/csm_observability.cc b/src/cpp/ext/csm/csm_observability.cc index 1f9d04bd7df..751a3f52418 100644 --- a/src/cpp/ext/csm/csm_observability.cc +++ b/src/cpp/ext/csm/csm_observability.cc @@ -34,9 +34,9 @@ #include #include -#include "src/core/ext/xds/xds_enabled_server.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/uri/uri_parser.h" +#include "src/core/xds/grpc/xds_enabled_server.h" #include "src/cpp/ext/csm/metadata_exchange.h" #include "src/cpp/ext/otel/otel_plugin.h" diff --git a/src/cpp/server/xds_server_builder.cc b/src/cpp/server/xds_server_builder.cc index 37dc6e2259b..d2c47a40168 100644 --- a/src/cpp/server/xds_server_builder.cc +++ b/src/cpp/server/xds_server_builder.cc @@ -22,7 +22,7 @@ #include #include -#include "src/core/ext/xds/xds_enabled_server.h" +#include "src/core/xds/grpc/xds_enabled_server.h" namespace grpc { diff --git a/src/python/grpcio/grpc_core_dependencies.py b/src/python/grpcio/grpc_core_dependencies.py index ba757f7cd54..377dac99484 100644 --- a/src/python/grpcio/grpc_core_dependencies.py +++ b/src/python/grpcio/grpc_core_dependencies.py @@ -403,30 +403,6 @@ CORE_SOURCE_FILES = [ 'src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.c', 'src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.c', 'src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.c', - 'src/core/ext/xds/certificate_provider_store.cc', - 'src/core/ext/xds/file_watcher_certificate_provider_factory.cc', - 'src/core/ext/xds/xds_api.cc', - 'src/core/ext/xds/xds_audit_logger_registry.cc', - 'src/core/ext/xds/xds_bootstrap.cc', - 'src/core/ext/xds/xds_bootstrap_grpc.cc', - 'src/core/ext/xds/xds_certificate_provider.cc', - 'src/core/ext/xds/xds_client.cc', - 'src/core/ext/xds/xds_client_grpc.cc', - 'src/core/ext/xds/xds_client_stats.cc', - 'src/core/ext/xds/xds_cluster.cc', - 'src/core/ext/xds/xds_cluster_specifier_plugin.cc', - 'src/core/ext/xds/xds_common_types.cc', - 'src/core/ext/xds/xds_endpoint.cc', - 'src/core/ext/xds/xds_health_status.cc', - 'src/core/ext/xds/xds_http_fault_filter.cc', - 'src/core/ext/xds/xds_http_filters.cc', - 'src/core/ext/xds/xds_http_rbac_filter.cc', - 'src/core/ext/xds/xds_http_stateful_session_filter.cc', - 'src/core/ext/xds/xds_lb_policy_registry.cc', - 'src/core/ext/xds/xds_listener.cc', - 'src/core/ext/xds/xds_route_config.cc', - 'src/core/ext/xds/xds_routing.cc', - 'src/core/ext/xds/xds_transport_grpc.cc', 'src/core/handshaker/endpoint_info/endpoint_info_handshaker.cc', 'src/core/handshaker/handshaker.cc', 'src/core/handshaker/handshaker_registry.cc', @@ -857,6 +833,30 @@ CORE_SOURCE_FILES = [ 'src/core/tsi/ssl_transport_security_utils.cc', 'src/core/tsi/transport_security.cc', 'src/core/tsi/transport_security_grpc.cc', + 'src/core/xds/grpc/certificate_provider_store.cc', + 'src/core/xds/grpc/file_watcher_certificate_provider_factory.cc', + 'src/core/xds/grpc/xds_audit_logger_registry.cc', + 'src/core/xds/grpc/xds_bootstrap_grpc.cc', + 'src/core/xds/grpc/xds_certificate_provider.cc', + 'src/core/xds/grpc/xds_client_grpc.cc', + 'src/core/xds/grpc/xds_cluster.cc', + 'src/core/xds/grpc/xds_cluster_specifier_plugin.cc', + 'src/core/xds/grpc/xds_common_types.cc', + 'src/core/xds/grpc/xds_endpoint.cc', + 'src/core/xds/grpc/xds_health_status.cc', + 'src/core/xds/grpc/xds_http_fault_filter.cc', + 'src/core/xds/grpc/xds_http_filters.cc', + 'src/core/xds/grpc/xds_http_rbac_filter.cc', + 'src/core/xds/grpc/xds_http_stateful_session_filter.cc', + 'src/core/xds/grpc/xds_lb_policy_registry.cc', + 'src/core/xds/grpc/xds_listener.cc', + 'src/core/xds/grpc/xds_route_config.cc', + 'src/core/xds/grpc/xds_routing.cc', + 'src/core/xds/grpc/xds_transport_grpc.cc', + 'src/core/xds/xds_client/xds_api.cc', + 'src/core/xds/xds_client/xds_bootstrap.cc', + 'src/core/xds/xds_client/xds_client.cc', + 'src/core/xds/xds_client/xds_client_stats.cc', 'third_party/abseil-cpp/absl/base/internal/cycleclock.cc', 'third_party/abseil-cpp/absl/base/internal/low_level_alloc.cc', 'third_party/abseil-cpp/absl/base/internal/raw_logging.cc', diff --git a/test/core/load_balancing/xds_override_host_lb_config_parser_test.cc b/test/core/load_balancing/xds_override_host_lb_config_parser_test.cc index 5e08a1c531a..175c41aedbd 100644 --- a/test/core/load_balancing/xds_override_host_lb_config_parser_test.cc +++ b/test/core/load_balancing/xds_override_host_lb_config_parser_test.cc @@ -23,12 +23,12 @@ #include #include "src/core/client_channel/client_channel_service_config.h" -#include "src/core/ext/xds/xds_health_status.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/gprpp/ref_counted_ptr.h" #include "src/core/load_balancing/xds/xds_override_host.h" #include "src/core/service_config/service_config.h" #include "src/core/service_config/service_config_impl.h" +#include "src/core/xds/grpc/xds_health_status.h" #include "test/core/test_util/test_config.h" namespace grpc_core { diff --git a/test/core/load_balancing/xds_override_host_test.cc b/test/core/load_balancing/xds_override_host_test.cc index 68765e030e3..0e8f11cc46e 100644 --- a/test/core/load_balancing/xds_override_host_test.cc +++ b/test/core/load_balancing/xds_override_host_test.cc @@ -38,7 +38,6 @@ #include #include "src/core/ext/filters/stateful_session/stateful_session_filter.h" -#include "src/core/ext/xds/xds_health_status.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/gprpp/debug_location.h" #include "src/core/lib/gprpp/ref_counted_ptr.h" @@ -46,6 +45,7 @@ #include "src/core/load_balancing/lb_policy.h" #include "src/core/resolver/endpoint_addresses.h" #include "src/core/resolver/xds/xds_dependency_manager.h" +#include "src/core/xds/grpc/xds_health_status.h" #include "test/core/load_balancing/lb_policy_test_lib.h" #include "test/core/test_util/test_config.h" diff --git a/test/core/memory_usage/server.cc b/test/core/memory_usage/server.cc index 7aeaceb1e00..60f6ed4cada 100644 --- a/test/core/memory_usage/server.cc +++ b/test/core/memory_usage/server.cc @@ -47,9 +47,9 @@ #include #include -#include "src/core/ext/xds/xds_enabled_server.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/gprpp/host_port.h" +#include "src/core/xds/grpc/xds_enabled_server.h" #include "test/core/end2end/data/ssl_test_data.h" #include "test/core/memory_usage/memstats.h" #include "test/core/test_util/port.h" diff --git a/test/core/xds/certificate_provider_store_test.cc b/test/core/xds/certificate_provider_store_test.cc index 7b52331377b..adcd41f3833 100644 --- a/test/core/xds/certificate_provider_store_test.cc +++ b/test/core/xds/certificate_provider_store_test.cc @@ -16,7 +16,7 @@ // // -#include "src/core/ext/xds/certificate_provider_store.h" +#include "src/core/xds/grpc/certificate_provider_store.h" #include #include diff --git a/test/core/xds/file_watcher_certificate_provider_factory_test.cc b/test/core/xds/file_watcher_certificate_provider_factory_test.cc index 9ac0d9ffafc..609c43015b9 100644 --- a/test/core/xds/file_watcher_certificate_provider_factory_test.cc +++ b/test/core/xds/file_watcher_certificate_provider_factory_test.cc @@ -16,7 +16,7 @@ // // -#include "src/core/ext/xds/file_watcher_certificate_provider_factory.h" +#include "src/core/xds/grpc/file_watcher_certificate_provider_factory.h" #include diff --git a/test/core/xds/xds_audit_logger_registry_test.cc b/test/core/xds/xds_audit_logger_registry_test.cc index 5963f83782d..071e9c11ecc 100644 --- a/test/core/xds/xds_audit_logger_registry_test.cc +++ b/test/core/xds/xds_audit_logger_registry_test.cc @@ -16,7 +16,7 @@ // // -#include "src/core/ext/xds/xds_audit_logger_registry.h" +#include "src/core/xds/grpc/xds_audit_logger_registry.h" #include #include @@ -36,11 +36,11 @@ #include #include -#include "src/core/ext/xds/xds_bootstrap_grpc.h" #include "src/core/lib/gprpp/crash.h" #include "src/core/lib/json/json.h" #include "src/core/lib/json/json_writer.h" #include "src/core/lib/security/authorization/audit_logging.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" #include "src/proto/grpc/testing/xds/v3/audit_logger_stream.pb.h" #include "src/proto/grpc/testing/xds/v3/extension.pb.h" #include "src/proto/grpc/testing/xds/v3/rbac.pb.h" diff --git a/test/core/xds/xds_bootstrap_test.cc b/test/core/xds/xds_bootstrap_test.cc index d2b8cb4973f..1145be71343 100644 --- a/test/core/xds/xds_bootstrap_test.cc +++ b/test/core/xds/xds_bootstrap_test.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_bootstrap.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" #include @@ -35,8 +35,6 @@ #include #include -#include "src/core/ext/xds/certificate_provider_store.h" -#include "src/core/ext/xds/xds_bootstrap_grpc.h" #include "src/core/lib/config/core_configuration.h" #include "src/core/lib/gpr/tmpfile.h" #include "src/core/lib/gprpp/env.h" @@ -49,6 +47,8 @@ #include "src/core/lib/security/certificate_provider/certificate_provider_factory.h" #include "src/core/lib/security/credentials/channel_creds_registry.h" #include "src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.h" +#include "src/core/xds/grpc/certificate_provider_store.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" #include "test/core/test_util/scoped_env_var.h" #include "test/core/test_util/test_config.h" diff --git a/test/core/xds/xds_certificate_provider_test.cc b/test/core/xds/xds_certificate_provider_test.cc index eb33276bd65..caf950f74c4 100644 --- a/test/core/xds/xds_certificate_provider_test.cc +++ b/test/core/xds/xds_certificate_provider_test.cc @@ -16,7 +16,7 @@ // // -#include "src/core/ext/xds/xds_certificate_provider.h" +#include "src/core/xds/grpc/xds_certificate_provider.h" #include "absl/status/status.h" #include "absl/types/optional.h" diff --git a/test/core/xds/xds_client_fuzzer.cc b/test/core/xds/xds_client_fuzzer.cc index 5b9dc709969..4653d545713 100644 --- a/test/core/xds/xds_client_fuzzer.cc +++ b/test/core/xds/xds_client_fuzzer.cc @@ -30,16 +30,16 @@ #include #include -#include "src/core/ext/xds/xds_bootstrap.h" -#include "src/core/ext/xds/xds_bootstrap_grpc.h" -#include "src/core/ext/xds/xds_client.h" -#include "src/core/ext/xds/xds_cluster.h" -#include "src/core/ext/xds/xds_endpoint.h" -#include "src/core/ext/xds/xds_listener.h" -#include "src/core/ext/xds/xds_route_config.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/gprpp/orphanable.h" #include "src/core/lib/gprpp/ref_counted_ptr.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/grpc/xds_cluster.h" +#include "src/core/xds/grpc/xds_endpoint.h" +#include "src/core/xds/grpc/xds_listener.h" +#include "src/core/xds/grpc/xds_route_config.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" +#include "src/core/xds/xds_client/xds_client.h" #include "src/libfuzzer/libfuzzer_macro.h" #include "src/proto/grpc/testing/xds/v3/discovery.pb.h" #include "test/core/xds/xds_client_fuzzer.pb.h" diff --git a/test/core/xds/xds_client_test.cc b/test/core/xds/xds_client_test.cc index bc4959cc5c4..033b00e8a3f 100644 --- a/test/core/xds/xds_client_test.cc +++ b/test/core/xds/xds_client_test.cc @@ -18,7 +18,7 @@ // - tests for DumpClientConfigBinary() // - tests for load-reporting APIs? (or maybe move those out of XdsClient?) -#include "src/core/ext/xds/xds_client.h" +#include "src/core/xds/xds_client/xds_client.h" #include @@ -47,8 +47,6 @@ #include #include -#include "src/core/ext/xds/xds_bootstrap.h" -#include "src/core/ext/xds/xds_resource_type_impl.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/gprpp/debug_location.h" #include "src/core/lib/gprpp/match.h" @@ -58,6 +56,8 @@ #include "src/core/lib/json/json_object_loader.h" #include "src/core/lib/json/json_reader.h" #include "src/core/lib/json/json_writer.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" +#include "src/core/xds/xds_client/xds_resource_type_impl.h" #include "src/proto/grpc/testing/xds/v3/base.pb.h" #include "src/proto/grpc/testing/xds/v3/discovery.pb.h" #include "test/core/test_util/scoped_env_var.h" diff --git a/test/core/xds/xds_client_test_peer.h b/test/core/xds/xds_client_test_peer.h index c05baa3ac00..9c3bfa61f41 100644 --- a/test/core/xds/xds_client_test_peer.h +++ b/test/core/xds/xds_client_test_peer.h @@ -24,7 +24,7 @@ #include -#include "src/core/ext/xds/xds_client.h" +#include "src/core/xds/xds_client/xds_client.h" namespace grpc_core { namespace testing { diff --git a/test/core/xds/xds_cluster_resource_type_test.cc b/test/core/xds/xds_cluster_resource_type_test.cc index 5f4e68a79a4..e8959c173b7 100644 --- a/test/core/xds/xds_cluster_resource_type_test.cc +++ b/test/core/xds/xds_cluster_resource_type_test.cc @@ -35,13 +35,6 @@ #include -#include "src/core/ext/xds/xds_bootstrap.h" -#include "src/core/ext/xds/xds_bootstrap_grpc.h" -#include "src/core/ext/xds/xds_client.h" -#include "src/core/ext/xds/xds_cluster.h" -#include "src/core/ext/xds/xds_common_types.h" -#include "src/core/ext/xds/xds_health_status.h" -#include "src/core/ext/xds/xds_resource_type.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/gprpp/crash.h" #include "src/core/lib/gprpp/ref_counted_ptr.h" @@ -50,6 +43,13 @@ #include "src/core/lib/json/json.h" #include "src/core/lib/json/json_writer.h" #include "src/core/load_balancing/outlier_detection/outlier_detection.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/grpc/xds_cluster.h" +#include "src/core/xds/grpc/xds_common_types.h" +#include "src/core/xds/grpc/xds_health_status.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" +#include "src/core/xds/xds_client/xds_client.h" +#include "src/core/xds/xds_client/xds_resource_type.h" #include "src/proto/grpc/testing/xds/v3/address.pb.h" #include "src/proto/grpc/testing/xds/v3/aggregate_cluster.pb.h" #include "src/proto/grpc/testing/xds/v3/base.pb.h" diff --git a/test/core/xds/xds_common_types_test.cc b/test/core/xds/xds_common_types_test.cc index 6a301de4897..3453143f69c 100644 --- a/test/core/xds/xds_common_types_test.cc +++ b/test/core/xds/xds_common_types_test.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_common_types.h" +#include "src/core/xds/grpc/xds_common_types.h" #include #include @@ -38,11 +38,6 @@ #include -#include "src/core/ext/xds/upb_utils.h" -#include "src/core/ext/xds/xds_bootstrap.h" -#include "src/core/ext/xds/xds_bootstrap_grpc.h" -#include "src/core/ext/xds/xds_client.h" -#include "src/core/ext/xds/xds_resource_type.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/gprpp/crash.h" #include "src/core/lib/gprpp/ref_counted_ptr.h" @@ -50,6 +45,11 @@ #include "src/core/lib/gprpp/validation_errors.h" #include "src/core/lib/json/json_writer.h" #include "src/core/lib/matchers/matchers.h" +#include "src/core/xds/grpc/upb_utils.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" +#include "src/core/xds/xds_client/xds_client.h" +#include "src/core/xds/xds_client/xds_resource_type.h" #include "src/proto/grpc/testing/xds/v3/regex.pb.h" #include "src/proto/grpc/testing/xds/v3/string.pb.h" #include "src/proto/grpc/testing/xds/v3/tls.pb.h" diff --git a/test/core/xds/xds_endpoint_resource_type_test.cc b/test/core/xds/xds_endpoint_resource_type_test.cc index 9ef4ac32b6f..31596773e43 100644 --- a/test/core/xds/xds_endpoint_resource_type_test.cc +++ b/test/core/xds/xds_endpoint_resource_type_test.cc @@ -35,13 +35,6 @@ #include -#include "src/core/ext/xds/xds_bootstrap.h" -#include "src/core/ext/xds/xds_bootstrap_grpc.h" -#include "src/core/ext/xds/xds_client.h" -#include "src/core/ext/xds/xds_client_stats.h" -#include "src/core/ext/xds/xds_endpoint.h" -#include "src/core/ext/xds/xds_health_status.h" -#include "src/core/ext/xds/xds_resource_type.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" @@ -50,6 +43,13 @@ #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/resolved_address.h" #include "src/core/resolver/endpoint_addresses.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/grpc/xds_endpoint.h" +#include "src/core/xds/grpc/xds_health_status.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" +#include "src/core/xds/xds_client/xds_client.h" +#include "src/core/xds/xds_client/xds_client_stats.h" +#include "src/core/xds/xds_client/xds_resource_type.h" #include "src/proto/grpc/testing/xds/v3/address.pb.h" #include "src/proto/grpc/testing/xds/v3/base.pb.h" #include "src/proto/grpc/testing/xds/v3/endpoint.pb.h" diff --git a/test/core/xds/xds_http_filters_test.cc b/test/core/xds/xds_http_filters_test.cc index 4f93f7f5f4b..0a8bb43e41f 100644 --- a/test/core/xds/xds_http_filters_test.cc +++ b/test/core/xds/xds_http_filters_test.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "src/core/ext/xds/xds_http_filters.h" +#include "src/core/xds/grpc/xds_http_filters.h" #include #include @@ -45,12 +45,12 @@ #include "src/core/ext/filters/rbac/rbac_service_config_parser.h" #include "src/core/ext/filters/stateful_session/stateful_session_filter.h" #include "src/core/ext/filters/stateful_session/stateful_session_service_config_parser.h" -#include "src/core/ext/xds/xds_bootstrap_grpc.h" -#include "src/core/ext/xds/xds_client.h" #include "src/core/lib/gprpp/crash.h" #include "src/core/lib/gprpp/ref_counted_ptr.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/json/json_writer.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/xds_client/xds_client.h" #include "src/proto/grpc/testing/xds/v3/address.pb.h" #include "src/proto/grpc/testing/xds/v3/cookie.pb.h" #include "src/proto/grpc/testing/xds/v3/extension.pb.h" diff --git a/test/core/xds/xds_lb_policy_registry_test.cc b/test/core/xds/xds_lb_policy_registry_test.cc index 539040984c8..9f95574947e 100644 --- a/test/core/xds/xds_lb_policy_registry_test.cc +++ b/test/core/xds/xds_lb_policy_registry_test.cc @@ -16,7 +16,7 @@ // // -#include "src/core/ext/xds/xds_lb_policy_registry.h" +#include "src/core/xds/grpc/xds_lb_policy_registry.h" #include @@ -34,7 +34,6 @@ #include -#include "src/core/ext/xds/xds_bootstrap_grpc.h" #include "src/core/lib/config/core_configuration.h" #include "src/core/lib/gprpp/crash.h" #include "src/core/lib/gprpp/orphanable.h" @@ -43,6 +42,7 @@ #include "src/core/lib/json/json_writer.h" #include "src/core/load_balancing/lb_policy.h" #include "src/core/load_balancing/lb_policy_factory.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" #include "src/proto/grpc/testing/xds/v3/client_side_weighted_round_robin.pb.h" #include "src/proto/grpc/testing/xds/v3/cluster.pb.h" #include "src/proto/grpc/testing/xds/v3/extension.pb.h" diff --git a/test/core/xds/xds_listener_resource_type_test.cc b/test/core/xds/xds_listener_resource_type_test.cc index 602660e2658..e48328284fd 100644 --- a/test/core/xds/xds_listener_resource_type_test.cc +++ b/test/core/xds/xds_listener_resource_type_test.cc @@ -38,12 +38,6 @@ #include -#include "src/core/ext/xds/xds_bootstrap.h" -#include "src/core/ext/xds/xds_bootstrap_grpc.h" -#include "src/core/ext/xds/xds_client.h" -#include "src/core/ext/xds/xds_common_types.h" -#include "src/core/ext/xds/xds_listener.h" -#include "src/core/ext/xds/xds_resource_type.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/gprpp/crash.h" @@ -52,6 +46,12 @@ #include "src/core/lib/iomgr/error.h" #include "src/core/lib/json/json.h" #include "src/core/lib/json/json_writer.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/grpc/xds_common_types.h" +#include "src/core/xds/grpc/xds_listener.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" +#include "src/core/xds/xds_client/xds_client.h" +#include "src/core/xds/xds_client/xds_resource_type.h" #include "src/proto/grpc/testing/xds/v3/address.pb.h" #include "src/proto/grpc/testing/xds/v3/base.pb.h" #include "src/proto/grpc/testing/xds/v3/config_source.pb.h" diff --git a/test/core/xds/xds_route_config_resource_type_test.cc b/test/core/xds/xds_route_config_resource_type_test.cc index 6e8734feb99..0585c5798e6 100644 --- a/test/core/xds/xds_route_config_resource_type_test.cc +++ b/test/core/xds/xds_route_config_resource_type_test.cc @@ -43,11 +43,6 @@ #include #include -#include "src/core/ext/xds/xds_bootstrap.h" -#include "src/core/ext/xds/xds_bootstrap_grpc.h" -#include "src/core/ext/xds/xds_client.h" -#include "src/core/ext/xds/xds_resource_type.h" -#include "src/core/ext/xds/xds_route_config.h" #include "src/core/lib/channel/status_util.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/gprpp/crash.h" @@ -56,6 +51,11 @@ #include "src/core/lib/iomgr/error.h" #include "src/core/lib/json/json_writer.h" #include "src/core/lib/matchers/matchers.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/grpc/xds_route_config.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" +#include "src/core/xds/xds_client/xds_client.h" +#include "src/core/xds/xds_client/xds_resource_type.h" #include "src/proto/grpc/lookup/v1/rls_config.pb.h" #include "src/proto/grpc/testing/xds/v3/base.pb.h" #include "src/proto/grpc/testing/xds/v3/extension.pb.h" diff --git a/test/core/xds/xds_transport_fake.cc b/test/core/xds/xds_transport_fake.cc index b495f2ffcb0..2475c07be33 100644 --- a/test/core/xds/xds_transport_fake.cc +++ b/test/core/xds/xds_transport_fake.cc @@ -29,11 +29,11 @@ #include #include -#include "src/core/ext/xds/xds_bootstrap.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/gprpp/orphanable.h" #include "src/core/lib/gprpp/ref_counted_ptr.h" #include "src/core/lib/iomgr/exec_ctx.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" #include "test/core/test_util/test_config.h" using grpc_event_engine::experimental::GetDefaultEventEngine; diff --git a/test/core/xds/xds_transport_fake.h b/test/core/xds/xds_transport_fake.h index b9cf7dc4ee6..54c75c92d86 100644 --- a/test/core/xds/xds_transport_fake.h +++ b/test/core/xds/xds_transport_fake.h @@ -34,12 +34,12 @@ #include -#include "src/core/ext/xds/xds_bootstrap.h" -#include "src/core/ext/xds/xds_transport.h" #include "src/core/lib/gprpp/orphanable.h" #include "src/core/lib/gprpp/ref_counted.h" #include "src/core/lib/gprpp/ref_counted_ptr.h" #include "src/core/lib/gprpp/sync.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" +#include "src/core/xds/xds_client/xds_transport.h" namespace grpc_core { diff --git a/test/cpp/end2end/xds/xds_end2end_test.cc b/test/cpp/end2end/xds/xds_end2end_test.cc index 876b68382f4..8e2d47e686e 100644 --- a/test/cpp/end2end/xds/xds_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_end2end_test.cc @@ -58,10 +58,6 @@ #include "src/core/client_channel/backup_poller.h" #include "src/core/ext/filters/http/client/http_client_filter.h" -#include "src/core/ext/xds/xds_api.h" -#include "src/core/ext/xds/xds_channel_args.h" -#include "src/core/ext/xds/xds_client.h" -#include "src/core/ext/xds/xds_listener.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/channel/channel_args.h" @@ -84,6 +80,10 @@ #include "src/core/load_balancing/xds/xds_channel_args.h" #include "src/core/resolver/endpoint_addresses.h" #include "src/core/resolver/fake/fake_resolver.h" +#include "src/core/xds/grpc/xds_listener.h" +#include "src/core/xds/xds_client/xds_api.h" +#include "src/core/xds/xds_client/xds_channel_args.h" +#include "src/core/xds/xds_client/xds_client.h" #include "src/cpp/client/secure_credentials.h" #include "src/cpp/server/secure_server_credentials.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" diff --git a/test/cpp/end2end/xds/xds_end2end_test_lib.cc b/test/cpp/end2end/xds/xds_end2end_test_lib.cc index 2946bfb5dde..2301e0d3fd3 100644 --- a/test/cpp/end2end/xds/xds_end2end_test_lib.cc +++ b/test/cpp/end2end/xds/xds_end2end_test_lib.cc @@ -37,11 +37,11 @@ #include #include "src/core/ext/filters/http/server/http_server_filter.h" -#include "src/core/ext/xds/xds_channel_args.h" -#include "src/core/ext/xds/xds_client_grpc.h" #include "src/core/lib/gpr/tmpfile.h" #include "src/core/lib/gprpp/env.h" #include "src/core/server/server.h" +#include "src/core/xds/grpc/xds_client_grpc.h" +#include "src/core/xds/xds_client/xds_channel_args.h" #include "src/proto/grpc/testing/xds/v3/router.grpc.pb.h" #include "test/core/test_util/resolve_localhost_ip46.h" #include "test/core/test_util/tls_utils.h" diff --git a/test/cpp/end2end/xds/xds_utils.cc b/test/cpp/end2end/xds/xds_utils.cc index 1f84b70e5a6..897300b230d 100644 --- a/test/cpp/end2end/xds/xds_utils.cc +++ b/test/cpp/end2end/xds/xds_utils.cc @@ -34,11 +34,11 @@ #include #include "src/core/ext/filters/http/server/http_server_filter.h" -#include "src/core/ext/xds/xds_channel_args.h" -#include "src/core/ext/xds/xds_client_grpc.h" #include "src/core/lib/gpr/tmpfile.h" #include "src/core/lib/gprpp/env.h" #include "src/core/server/server.h" +#include "src/core/xds/grpc/xds_client_grpc.h" +#include "src/core/xds/xds_client/xds_channel_args.h" #include "src/cpp/client/secure_credentials.h" #include "src/proto/grpc/testing/xds/v3/router.grpc.pb.h" #include "test/core/test_util/resolve_localhost_ip46.h" diff --git a/test/cpp/ext/csm/csm_observability_test.cc b/test/cpp/ext/csm/csm_observability_test.cc index 0b705ac15f4..c10aa96fa69 100644 --- a/test/cpp/ext/csm/csm_observability_test.cc +++ b/test/cpp/ext/csm/csm_observability_test.cc @@ -24,7 +24,7 @@ #include #include -#include "src/core/ext/xds/xds_enabled_server.h" +#include "src/core/xds/grpc/xds_enabled_server.h" #include "test/core/test_util/test_config.h" namespace grpc { diff --git a/tools/doxygen/Doxyfile.c++.internal b/tools/doxygen/Doxyfile.c++.internal index 435df91432a..fa81c90a05b 100644 --- a/tools/doxygen/Doxyfile.c++.internal +++ b/tools/doxygen/Doxyfile.c++.internal @@ -2063,61 +2063,6 @@ src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.c \ src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.h \ src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.c \ src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.h \ -src/core/ext/xds/certificate_provider_store.cc \ -src/core/ext/xds/certificate_provider_store.h \ -src/core/ext/xds/file_watcher_certificate_provider_factory.cc \ -src/core/ext/xds/file_watcher_certificate_provider_factory.h \ -src/core/ext/xds/upb_utils.h \ -src/core/ext/xds/xds_api.cc \ -src/core/ext/xds/xds_api.h \ -src/core/ext/xds/xds_audit_logger_registry.cc \ -src/core/ext/xds/xds_audit_logger_registry.h \ -src/core/ext/xds/xds_bootstrap.cc \ -src/core/ext/xds/xds_bootstrap.h \ -src/core/ext/xds/xds_bootstrap_grpc.cc \ -src/core/ext/xds/xds_bootstrap_grpc.h \ -src/core/ext/xds/xds_certificate_provider.cc \ -src/core/ext/xds/xds_certificate_provider.h \ -src/core/ext/xds/xds_channel_args.h \ -src/core/ext/xds/xds_client.cc \ -src/core/ext/xds/xds_client.h \ -src/core/ext/xds/xds_client_grpc.cc \ -src/core/ext/xds/xds_client_grpc.h \ -src/core/ext/xds/xds_client_stats.cc \ -src/core/ext/xds/xds_client_stats.h \ -src/core/ext/xds/xds_cluster.cc \ -src/core/ext/xds/xds_cluster.h \ -src/core/ext/xds/xds_cluster_specifier_plugin.cc \ -src/core/ext/xds/xds_cluster_specifier_plugin.h \ -src/core/ext/xds/xds_common_types.cc \ -src/core/ext/xds/xds_common_types.h \ -src/core/ext/xds/xds_enabled_server.h \ -src/core/ext/xds/xds_endpoint.cc \ -src/core/ext/xds/xds_endpoint.h \ -src/core/ext/xds/xds_health_status.cc \ -src/core/ext/xds/xds_health_status.h \ -src/core/ext/xds/xds_http_fault_filter.cc \ -src/core/ext/xds/xds_http_fault_filter.h \ -src/core/ext/xds/xds_http_filters.cc \ -src/core/ext/xds/xds_http_filters.h \ -src/core/ext/xds/xds_http_rbac_filter.cc \ -src/core/ext/xds/xds_http_rbac_filter.h \ -src/core/ext/xds/xds_http_stateful_session_filter.cc \ -src/core/ext/xds/xds_http_stateful_session_filter.h \ -src/core/ext/xds/xds_lb_policy_registry.cc \ -src/core/ext/xds/xds_lb_policy_registry.h \ -src/core/ext/xds/xds_listener.cc \ -src/core/ext/xds/xds_listener.h \ -src/core/ext/xds/xds_metrics.h \ -src/core/ext/xds/xds_resource_type.h \ -src/core/ext/xds/xds_resource_type_impl.h \ -src/core/ext/xds/xds_route_config.cc \ -src/core/ext/xds/xds_route_config.h \ -src/core/ext/xds/xds_routing.cc \ -src/core/ext/xds/xds_routing.h \ -src/core/ext/xds/xds_transport.h \ -src/core/ext/xds/xds_transport_grpc.cc \ -src/core/ext/xds/xds_transport_grpc.h \ src/core/handshaker/endpoint_info/endpoint_info_handshaker.cc \ src/core/handshaker/endpoint_info/endpoint_info_handshaker.h \ src/core/handshaker/handshaker.cc \ @@ -3007,6 +2952,61 @@ src/core/tsi/transport_security.h \ src/core/tsi/transport_security_grpc.cc \ src/core/tsi/transport_security_grpc.h \ src/core/tsi/transport_security_interface.h \ +src/core/xds/grpc/certificate_provider_store.cc \ +src/core/xds/grpc/certificate_provider_store.h \ +src/core/xds/grpc/file_watcher_certificate_provider_factory.cc \ +src/core/xds/grpc/file_watcher_certificate_provider_factory.h \ +src/core/xds/grpc/upb_utils.h \ +src/core/xds/grpc/xds_audit_logger_registry.cc \ +src/core/xds/grpc/xds_audit_logger_registry.h \ +src/core/xds/grpc/xds_bootstrap_grpc.cc \ +src/core/xds/grpc/xds_bootstrap_grpc.h \ +src/core/xds/grpc/xds_certificate_provider.cc \ +src/core/xds/grpc/xds_certificate_provider.h \ +src/core/xds/grpc/xds_client_grpc.cc \ +src/core/xds/grpc/xds_client_grpc.h \ +src/core/xds/grpc/xds_cluster.cc \ +src/core/xds/grpc/xds_cluster.h \ +src/core/xds/grpc/xds_cluster_specifier_plugin.cc \ +src/core/xds/grpc/xds_cluster_specifier_plugin.h \ +src/core/xds/grpc/xds_common_types.cc \ +src/core/xds/grpc/xds_common_types.h \ +src/core/xds/grpc/xds_enabled_server.h \ +src/core/xds/grpc/xds_endpoint.cc \ +src/core/xds/grpc/xds_endpoint.h \ +src/core/xds/grpc/xds_health_status.cc \ +src/core/xds/grpc/xds_health_status.h \ +src/core/xds/grpc/xds_http_fault_filter.cc \ +src/core/xds/grpc/xds_http_fault_filter.h \ +src/core/xds/grpc/xds_http_filters.cc \ +src/core/xds/grpc/xds_http_filters.h \ +src/core/xds/grpc/xds_http_rbac_filter.cc \ +src/core/xds/grpc/xds_http_rbac_filter.h \ +src/core/xds/grpc/xds_http_stateful_session_filter.cc \ +src/core/xds/grpc/xds_http_stateful_session_filter.h \ +src/core/xds/grpc/xds_lb_policy_registry.cc \ +src/core/xds/grpc/xds_lb_policy_registry.h \ +src/core/xds/grpc/xds_listener.cc \ +src/core/xds/grpc/xds_listener.h \ +src/core/xds/grpc/xds_route_config.cc \ +src/core/xds/grpc/xds_route_config.h \ +src/core/xds/grpc/xds_routing.cc \ +src/core/xds/grpc/xds_routing.h \ +src/core/xds/grpc/xds_transport_grpc.cc \ +src/core/xds/grpc/xds_transport_grpc.h \ +src/core/xds/xds_client/xds_api.cc \ +src/core/xds/xds_client/xds_api.h \ +src/core/xds/xds_client/xds_bootstrap.cc \ +src/core/xds/xds_client/xds_bootstrap.h \ +src/core/xds/xds_client/xds_channel_args.h \ +src/core/xds/xds_client/xds_client.cc \ +src/core/xds/xds_client/xds_client.h \ +src/core/xds/xds_client/xds_client_stats.cc \ +src/core/xds/xds_client/xds_client_stats.h \ +src/core/xds/xds_client/xds_metrics.h \ +src/core/xds/xds_client/xds_resource_type.h \ +src/core/xds/xds_client/xds_resource_type_impl.h \ +src/core/xds/xds_client/xds_transport.h \ src/cpp/README.md \ src/cpp/client/call_credentials.cc \ src/cpp/client/channel_cc.cc \ diff --git a/tools/doxygen/Doxyfile.core.internal b/tools/doxygen/Doxyfile.core.internal index 4026a7e0543..74fd1131517 100644 --- a/tools/doxygen/Doxyfile.core.internal +++ b/tools/doxygen/Doxyfile.core.internal @@ -1834,60 +1834,6 @@ src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.c \ src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.h \ src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.c \ src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.h \ -src/core/ext/xds/certificate_provider_store.cc \ -src/core/ext/xds/certificate_provider_store.h \ -src/core/ext/xds/file_watcher_certificate_provider_factory.cc \ -src/core/ext/xds/file_watcher_certificate_provider_factory.h \ -src/core/ext/xds/upb_utils.h \ -src/core/ext/xds/xds_api.cc \ -src/core/ext/xds/xds_api.h \ -src/core/ext/xds/xds_audit_logger_registry.cc \ -src/core/ext/xds/xds_audit_logger_registry.h \ -src/core/ext/xds/xds_bootstrap.cc \ -src/core/ext/xds/xds_bootstrap.h \ -src/core/ext/xds/xds_bootstrap_grpc.cc \ -src/core/ext/xds/xds_bootstrap_grpc.h \ -src/core/ext/xds/xds_certificate_provider.cc \ -src/core/ext/xds/xds_certificate_provider.h \ -src/core/ext/xds/xds_channel_args.h \ -src/core/ext/xds/xds_client.cc \ -src/core/ext/xds/xds_client.h \ -src/core/ext/xds/xds_client_grpc.cc \ -src/core/ext/xds/xds_client_grpc.h \ -src/core/ext/xds/xds_client_stats.cc \ -src/core/ext/xds/xds_client_stats.h \ -src/core/ext/xds/xds_cluster.cc \ -src/core/ext/xds/xds_cluster.h \ -src/core/ext/xds/xds_cluster_specifier_plugin.cc \ -src/core/ext/xds/xds_cluster_specifier_plugin.h \ -src/core/ext/xds/xds_common_types.cc \ -src/core/ext/xds/xds_common_types.h \ -src/core/ext/xds/xds_endpoint.cc \ -src/core/ext/xds/xds_endpoint.h \ -src/core/ext/xds/xds_health_status.cc \ -src/core/ext/xds/xds_health_status.h \ -src/core/ext/xds/xds_http_fault_filter.cc \ -src/core/ext/xds/xds_http_fault_filter.h \ -src/core/ext/xds/xds_http_filters.cc \ -src/core/ext/xds/xds_http_filters.h \ -src/core/ext/xds/xds_http_rbac_filter.cc \ -src/core/ext/xds/xds_http_rbac_filter.h \ -src/core/ext/xds/xds_http_stateful_session_filter.cc \ -src/core/ext/xds/xds_http_stateful_session_filter.h \ -src/core/ext/xds/xds_lb_policy_registry.cc \ -src/core/ext/xds/xds_lb_policy_registry.h \ -src/core/ext/xds/xds_listener.cc \ -src/core/ext/xds/xds_listener.h \ -src/core/ext/xds/xds_metrics.h \ -src/core/ext/xds/xds_resource_type.h \ -src/core/ext/xds/xds_resource_type_impl.h \ -src/core/ext/xds/xds_route_config.cc \ -src/core/ext/xds/xds_route_config.h \ -src/core/ext/xds/xds_routing.cc \ -src/core/ext/xds/xds_routing.h \ -src/core/ext/xds/xds_transport.h \ -src/core/ext/xds/xds_transport_grpc.cc \ -src/core/ext/xds/xds_transport_grpc.h \ src/core/handshaker/endpoint_info/endpoint_info_handshaker.cc \ src/core/handshaker/endpoint_info/endpoint_info_handshaker.h \ src/core/handshaker/handshaker.cc \ @@ -2789,6 +2735,60 @@ src/core/tsi/transport_security.h \ src/core/tsi/transport_security_grpc.cc \ src/core/tsi/transport_security_grpc.h \ src/core/tsi/transport_security_interface.h \ +src/core/xds/grpc/certificate_provider_store.cc \ +src/core/xds/grpc/certificate_provider_store.h \ +src/core/xds/grpc/file_watcher_certificate_provider_factory.cc \ +src/core/xds/grpc/file_watcher_certificate_provider_factory.h \ +src/core/xds/grpc/upb_utils.h \ +src/core/xds/grpc/xds_audit_logger_registry.cc \ +src/core/xds/grpc/xds_audit_logger_registry.h \ +src/core/xds/grpc/xds_bootstrap_grpc.cc \ +src/core/xds/grpc/xds_bootstrap_grpc.h \ +src/core/xds/grpc/xds_certificate_provider.cc \ +src/core/xds/grpc/xds_certificate_provider.h \ +src/core/xds/grpc/xds_client_grpc.cc \ +src/core/xds/grpc/xds_client_grpc.h \ +src/core/xds/grpc/xds_cluster.cc \ +src/core/xds/grpc/xds_cluster.h \ +src/core/xds/grpc/xds_cluster_specifier_plugin.cc \ +src/core/xds/grpc/xds_cluster_specifier_plugin.h \ +src/core/xds/grpc/xds_common_types.cc \ +src/core/xds/grpc/xds_common_types.h \ +src/core/xds/grpc/xds_endpoint.cc \ +src/core/xds/grpc/xds_endpoint.h \ +src/core/xds/grpc/xds_health_status.cc \ +src/core/xds/grpc/xds_health_status.h \ +src/core/xds/grpc/xds_http_fault_filter.cc \ +src/core/xds/grpc/xds_http_fault_filter.h \ +src/core/xds/grpc/xds_http_filters.cc \ +src/core/xds/grpc/xds_http_filters.h \ +src/core/xds/grpc/xds_http_rbac_filter.cc \ +src/core/xds/grpc/xds_http_rbac_filter.h \ +src/core/xds/grpc/xds_http_stateful_session_filter.cc \ +src/core/xds/grpc/xds_http_stateful_session_filter.h \ +src/core/xds/grpc/xds_lb_policy_registry.cc \ +src/core/xds/grpc/xds_lb_policy_registry.h \ +src/core/xds/grpc/xds_listener.cc \ +src/core/xds/grpc/xds_listener.h \ +src/core/xds/grpc/xds_route_config.cc \ +src/core/xds/grpc/xds_route_config.h \ +src/core/xds/grpc/xds_routing.cc \ +src/core/xds/grpc/xds_routing.h \ +src/core/xds/grpc/xds_transport_grpc.cc \ +src/core/xds/grpc/xds_transport_grpc.h \ +src/core/xds/xds_client/xds_api.cc \ +src/core/xds/xds_client/xds_api.h \ +src/core/xds/xds_client/xds_bootstrap.cc \ +src/core/xds/xds_client/xds_bootstrap.h \ +src/core/xds/xds_client/xds_channel_args.h \ +src/core/xds/xds_client/xds_client.cc \ +src/core/xds/xds_client/xds_client.h \ +src/core/xds/xds_client/xds_client_stats.cc \ +src/core/xds/xds_client/xds_client_stats.h \ +src/core/xds/xds_client/xds_metrics.h \ +src/core/xds/xds_client/xds_resource_type.h \ +src/core/xds/xds_client/xds_resource_type_impl.h \ +src/core/xds/xds_client/xds_transport.h \ third_party/upb/upb/generated_code_support.h \ third_party/xxhash/xxhash.h