eds.proto 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. syntax = "proto3";
  2. package envoy.service.endpoint.v3;
  3. import "envoy/service/discovery/v3/discovery.proto";
  4. import "google/api/annotations.proto";
  5. import "envoy/annotations/resource.proto";
  6. import "udpa/annotations/status.proto";
  7. import "udpa/annotations/versioning.proto";
  8. option java_package = "io.envoyproxy.envoy.service.endpoint.v3";
  9. option java_outer_classname = "EdsProto";
  10. option java_multiple_files = true;
  11. option go_package = "github.com/envoyproxy/go-control-plane/envoy/service/endpoint/v3;endpointv3";
  12. option java_generic_services = true;
  13. option (udpa.annotations.file_status).package_version_status = ACTIVE;
  14. // [#protodoc-title: EDS]
  15. // Endpoint discovery :ref:`architecture overview <arch_overview_service_discovery_types_eds>`
  16. service EndpointDiscoveryService {
  17. option (envoy.annotations.resource).type = "envoy.config.endpoint.v3.ClusterLoadAssignment";
  18. // The resource_names field in DiscoveryRequest specifies a list of clusters
  19. // to subscribe to updates for.
  20. rpc StreamEndpoints(stream discovery.v3.DiscoveryRequest)
  21. returns (stream discovery.v3.DiscoveryResponse) {
  22. }
  23. rpc DeltaEndpoints(stream discovery.v3.DeltaDiscoveryRequest)
  24. returns (stream discovery.v3.DeltaDiscoveryResponse) {
  25. }
  26. rpc FetchEndpoints(discovery.v3.DiscoveryRequest) returns (discovery.v3.DiscoveryResponse) {
  27. option (google.api.http).post = "/v3/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. option (udpa.annotations.versioning).previous_message_type = "envoy.api.v2.EdsDummy";
  35. }