...

Text file src/github.com/datawire/ambassador/v2/api/envoy/service/runtime/v3/rtds.proto

Documentation: github.com/datawire/ambassador/v2/api/envoy/service/runtime/v3

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

View as plain text