[READ ONLY MIRROR] Envoy REST/proto API definitions and documentation. (grpc依赖)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

203 lines
3.8 KiB

load("//bazel:api_build_system.bzl", "api_proto_library", "api_go_proto_library", "api_go_grpc_library")
licenses(["notice"]) # Apache 2
api_proto_library(
name = "address",
srcs = ["address.proto"],
)
api_go_proto_library(
name = "address",
proto = ":address",
)
api_proto_library(
name = "base",
srcs = ["base.proto"],
)
api_go_proto_library(
name = "base",
proto = ":base",
deps = [":address_go_proto"],
)
api_proto_library(
name = "health_check",
srcs = ["health_check.proto"],
deps = [":base"],
)
api_go_proto_library(
name = "health_check",
proto = ":health_check",
deps = [":base_go_proto"],
)
api_proto_library(
name = "config_source",
srcs = ["config_source.proto"],
deps = [
":base",
":grpc_service",
],
)
api_go_proto_library(
name = "config_source",
proto = ":config_source",
deps = [
":base_go_proto",
":grpc_service_go_proto",
],
)
api_proto_library(
name = "grpc_service",
srcs = ["grpc_service.proto"],
deps = [":base"],
)
api_go_proto_library(
name = "grpc_service",
proto = ":grpc_service",
deps = [":base_go_proto"],
)
api_proto_library(
name = "protocol",
srcs = ["protocol.proto"],
)
api_go_proto_library(
name = "protocol",
proto = ":protocol",
)
api_proto_library(
name = "discovery",
srcs = ["discovery.proto"],
deps = ["//envoy/api/v2:base"],
)
api_go_proto_library(
name = "discovery",
proto = ":discovery",
deps = ["//envoy/api/v2:base_go_proto"],
)
api_proto_library(
name = "eds",
srcs = ["eds.proto"],
has_services = 1,
deps = [
":address",
":base",
":discovery",
":health_check",
"//envoy/api/v2/endpoint",
],
)
api_go_grpc_library(
name = "eds",
proto = ":eds",
deps = [
":address_go_proto",
":base_go_proto",
":discovery_go_proto",
":health_check_go_proto",
"//envoy/api/v2/endpoint:endpoint_go_proto",
],
)
api_proto_library(
name = "cds",
srcs = ["cds.proto"],
has_services = 1,
deps = [
":address",
":base",
":config_source",
":discovery",
":health_check",
":protocol",
"//envoy/api/v2/auth:cert",
"//envoy/api/v2/cluster:circuit_breaker",
"//envoy/api/v2/cluster:outlier_detection",
],
)
api_go_grpc_library(
name = "cds",
proto = ":cds",
deps = [
":base_go_proto",
":config_source_go_proto",
":discovery_go_proto",
":health_check_go_proto",
":protocol_go_proto",
"//envoy/api/v2:address_go_proto",
"//envoy/api/v2/auth:cert_go_proto",
"//envoy/api/v2/cluster:circuit_breaker_go_proto",
"//envoy/api/v2/cluster:outlier_detection_go_proto",
],
)
api_proto_library(
name = "lds",
srcs = ["lds.proto"],
has_services = 1,
deps = [
":address",
":base",
":discovery",
"//envoy/api/v2/listener",
],
)
api_go_grpc_library(
name = "lds",
proto = ":lds",
deps = [
":address_go_proto",
":base_go_proto",
":discovery_go_proto",
"//envoy/api/v2/listener:listener_go_proto",
],
)
api_proto_library(
name = "rds",
srcs = ["rds.proto"],
has_services = 1,
deps = [
":base",
":discovery",
"//envoy/api/v2/route",
],
)
api_go_grpc_library(
name = "rds",
proto = ":rds",
deps = [
":base_go_proto",
":discovery_go_proto",
"//envoy/api/v2/route:route_go_proto",
],
)
proto_library(
name = "v2",
visibility = ["//envoy:__pkg__"],
deps = [
":cds",
":discovery",
":eds",
":lds",
":protocol",
":rds",
],
)