lds.proto 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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/listener.proto";
  9. option java_package = "io.envoyproxy.envoy.api.v2";
  10. option java_outer_classname = "LdsProto";
  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.listener.v3";
  15. option (udpa.annotations.file_status).package_version_status = FROZEN;
  16. // [#protodoc-title: Listener]
  17. // Listener :ref:`configuration overview <config_listeners>`
  18. // The Envoy instance initiates an RPC at startup to discover a list of
  19. // listeners. Updates are delivered via streaming from the LDS server and
  20. // consist of a complete update of all listeners. Existing connections will be
  21. // allowed to drain from listeners that are no longer present.
  22. service ListenerDiscoveryService {
  23. option (envoy.annotations.resource).type = "envoy.api.v2.Listener";
  24. rpc DeltaListeners(stream DeltaDiscoveryRequest) returns (stream DeltaDiscoveryResponse) {
  25. }
  26. rpc StreamListeners(stream DiscoveryRequest) returns (stream DiscoveryResponse) {
  27. }
  28. rpc FetchListeners(DiscoveryRequest) returns (DiscoveryResponse) {
  29. option (google.api.http).post = "/v2/discovery:listeners";
  30. option (google.api.http).body = "*";
  31. }
  32. }
  33. // [#not-implemented-hide:] Not configuration. Workaround c++ protobuf issue with importing
  34. // services: https://github.com/google/protobuf/issues/4221 and protoxform to upgrade the file.
  35. message LdsDummy {
  36. }