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