cds.proto 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. syntax = "proto3";
  2. package envoy.service.cluster.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.cluster.v3";
  9. option java_outer_classname = "CdsProto";
  10. option java_multiple_files = true;
  11. option go_package = "github.com/envoyproxy/go-control-plane/envoy/service/cluster/v3;clusterv3";
  12. option java_generic_services = true;
  13. option (udpa.annotations.file_status).package_version_status = ACTIVE;
  14. // [#protodoc-title: CDS]
  15. // Return list of all clusters this proxy will load balance to.
  16. service ClusterDiscoveryService {
  17. option (envoy.annotations.resource).type = "envoy.config.cluster.v3.Cluster";
  18. rpc StreamClusters(stream discovery.v3.DiscoveryRequest)
  19. returns (stream discovery.v3.DiscoveryResponse) {
  20. }
  21. rpc DeltaClusters(stream discovery.v3.DeltaDiscoveryRequest)
  22. returns (stream discovery.v3.DeltaDiscoveryResponse) {
  23. }
  24. rpc FetchClusters(discovery.v3.DiscoveryRequest) returns (discovery.v3.DiscoveryResponse) {
  25. option (google.api.http).post = "/v3/discovery:clusters";
  26. option (google.api.http).body = "*";
  27. }
  28. }
  29. // [#not-implemented-hide:] Not configuration. Workaround c++ protobuf issue with importing
  30. // services: https://github.com/google/protobuf/issues/4221 and protoxform to upgrade the file.
  31. message CdsDummy {
  32. option (udpa.annotations.versioning).previous_message_type = "envoy.api.v2.CdsDummy";
  33. }