eds.proto 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. syntax = "proto3";
  2. package envoy.api.v2;
  3. import "envoy/api/v2/discovery.proto";
  4. import "google/api/annotations.proto";
  5. import "envoy/annotations/resource.proto";
  6. import "udpa/annotations/migrate.proto";
  7. import "udpa/annotations/status.proto";
  8. import public "envoy/api/v2/endpoint.proto";
  9. option java_package = "io.envoyproxy.envoy.api.v2";
  10. option java_outer_classname = "EdsProto";
  11. option java_multiple_files = true;
  12. option go_package = "github.com/envoyproxy/go-control-plane/envoy/api/v2;apiv2";
  13. option java_generic_services = true;
  14. option (udpa.annotations.file_migrate).move_to_package = "envoy.service.endpoint.v3";
  15. option (udpa.annotations.file_status).package_version_status = FROZEN;
  16. // [#protodoc-title: EDS]
  17. // Endpoint discovery :ref:`architecture overview <arch_overview_service_discovery_types_eds>`
  18. service EndpointDiscoveryService {
  19. option (envoy.annotations.resource).type = "envoy.api.v2.ClusterLoadAssignment";
  20. // The resource_names field in DiscoveryRequest specifies a list of clusters
  21. // to subscribe to updates for.
  22. rpc StreamEndpoints(stream DiscoveryRequest) returns (stream DiscoveryResponse) {
  23. }
  24. rpc DeltaEndpoints(stream DeltaDiscoveryRequest) returns (stream DeltaDiscoveryResponse) {
  25. }
  26. rpc FetchEndpoints(DiscoveryRequest) returns (DiscoveryResponse) {
  27. option (google.api.http).post = "/v2/discovery:endpoints";
  28. option (google.api.http).body = "*";
  29. }
  30. }
  31. // [#not-implemented-hide:] Not configuration. Workaround c++ protobuf issue with importing
  32. // services: https://github.com/google/protobuf/issues/4221 and protoxform to upgrade the file.
  33. message EdsDummy {
  34. }