load("@envoy_api//bazel:api_build_system.bzl", "api_proto_library_internal", "api_proto_package") licenses(["notice"]) # Apache 2 # Friends of core API packages - filters, services, service configs. # Package //envoy/api/v2 contains xDS and discovery definitions that should # be in //envoy/service/discovery, but remain here for backwards compatibility. package_group( name = "friends", packages = [ "//envoy/admin/...", "//envoy/api/v2", "//envoy/config/...", "//envoy/data/...", "//envoy/service/...", ], ) api_proto_package( name = "v2", has_services = True, deps = [ "//envoy/api/v2/auth", "//envoy/api/v2/cluster", "//envoy/api/v2/core", "//envoy/api/v2/endpoint:pkg", "//envoy/api/v2/listener:pkg", "//envoy/api/v2/ratelimit:pkg", "//envoy/api/v2/route:pkg", "//envoy/config/listener/v2:pkg", "//envoy/type", ], ) api_proto_library_internal( name = "discovery", srcs = ["discovery.proto"], has_services = 1, visibility = [":friends"], deps = ["//envoy/api/v2/core:base"], ) api_proto_library_internal( name = "eds", srcs = ["eds.proto"], has_services = 1, visibility = [":friends"], deps = [ ":discovery", "//envoy/api/v2/core:address", "//envoy/api/v2/core:base", "//envoy/api/v2/core:health_check", "//envoy/api/v2/endpoint", "//envoy/type:percent", ], ) api_proto_library_internal( name = "cds", srcs = ["cds.proto"], has_services = 1, visibility = [":friends"], deps = [ ":discovery", ":eds", "//envoy/api/v2/auth:cert", "//envoy/api/v2/cluster:circuit_breaker", "//envoy/api/v2/cluster:filter", "//envoy/api/v2/cluster:outlier_detection", "//envoy/api/v2/core:address", "//envoy/api/v2/core:base", "//envoy/api/v2/core:config_source", "//envoy/api/v2/core:health_check", "//envoy/api/v2/core:protocol", "//envoy/api/v2/endpoint", "//envoy/type:percent", ], ) api_proto_library_internal( name = "lds", srcs = ["lds.proto"], has_services = 1, visibility = [":friends"], deps = [ ":discovery", "//envoy/api/v2/core:address", "//envoy/api/v2/core:base", "//envoy/api/v2/listener", "//envoy/api/v2/listener:udp_listener_config", "//envoy/config/listener/v2:api_listener", ], ) api_proto_library_internal( name = "rds", srcs = ["rds.proto"], has_services = 1, visibility = [":friends"], deps = [ ":discovery", "//envoy/api/v2/core:base", "//envoy/api/v2/core:config_source", "//envoy/api/v2/route", ], ) api_proto_library_internal( name = "srds", srcs = ["srds.proto"], has_services = 1, visibility = [":friends"], deps = [ ":discovery", "//envoy/api/v2/core:base", "//envoy/api/v2/route", ], )