rtds.proto 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. syntax = "proto3";
  2. package envoy.service.discovery.v2;
  3. import "envoy/api/v2/discovery.proto";
  4. import "google/api/annotations.proto";
  5. import "google/protobuf/struct.proto";
  6. import "envoy/annotations/resource.proto";
  7. import "udpa/annotations/migrate.proto";
  8. import "udpa/annotations/status.proto";
  9. import "validate/validate.proto";
  10. option java_package = "io.envoyproxy.envoy.service.discovery.v2";
  11. option java_outer_classname = "RtdsProto";
  12. option java_multiple_files = true;
  13. option go_package = "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v2;discoveryv2";
  14. option java_generic_services = true;
  15. option (udpa.annotations.file_migrate).move_to_package = "envoy.service.runtime.v3";
  16. option (udpa.annotations.file_status).package_version_status = FROZEN;
  17. // [#protodoc-title: Runtime Discovery Service (RTDS)]
  18. // RTDS :ref:`configuration overview <config_runtime_rtds>`
  19. // Discovery service for Runtime resources.
  20. service RuntimeDiscoveryService {
  21. option (envoy.annotations.resource).type = "envoy.service.discovery.v2.Runtime";
  22. rpc StreamRuntime(stream api.v2.DiscoveryRequest) returns (stream api.v2.DiscoveryResponse) {
  23. }
  24. rpc DeltaRuntime(stream api.v2.DeltaDiscoveryRequest)
  25. returns (stream api.v2.DeltaDiscoveryResponse) {
  26. }
  27. rpc FetchRuntime(api.v2.DiscoveryRequest) returns (api.v2.DiscoveryResponse) {
  28. option (google.api.http).post = "/v2/discovery:runtime";
  29. option (google.api.http).body = "*";
  30. }
  31. }
  32. // [#not-implemented-hide:] Not configuration. Workaround c++ protobuf issue with importing
  33. // services: https://github.com/google/protobuf/issues/4221
  34. message RtdsDummy {
  35. }
  36. // RTDS resource type. This describes a layer in the runtime virtual filesystem.
  37. message Runtime {
  38. // Runtime resource name. This makes the Runtime a self-describing xDS
  39. // resource.
  40. string name = 1 [(validate.rules).string = {min_bytes: 1}];
  41. google.protobuf.Struct layer = 2;
  42. }