You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.6 KiB
48 lines
1.6 KiB
5 years ago
|
syntax = "proto3";
|
||
|
|
||
5 years ago
|
package envoy.service.endpoint.v3;
|
||
5 years ago
|
|
||
5 years ago
|
import "envoy/service/discovery/v3/discovery.proto";
|
||
5 years ago
|
|
||
|
import "google/api/annotations.proto";
|
||
5 years ago
|
import "google/protobuf/duration.proto";
|
||
|
import "google/protobuf/wrappers.proto";
|
||
5 years ago
|
|
||
5 years ago
|
import "udpa/annotations/versioning.proto";
|
||
5 years ago
|
|
||
5 years ago
|
import "envoy/annotations/resource.proto";
|
||
5 years ago
|
import "validate/validate.proto";
|
||
|
|
||
5 years ago
|
option java_package = "io.envoyproxy.envoy.service.endpoint.v3";
|
||
5 years ago
|
option java_outer_classname = "EdsProto";
|
||
|
option java_multiple_files = true;
|
||
|
option java_generic_services = true;
|
||
|
|
||
5 years ago
|
// [#protodoc-title: EDS]
|
||
|
// Endpoint discovery :ref:`architecture overview <arch_overview_service_discovery_types_eds>`
|
||
|
|
||
|
service EndpointDiscoveryService {
|
||
5 years ago
|
option (envoy.annotations.resource).type = "envoy.config.endpoint.v3.ClusterLoadAssignment";
|
||
5 years ago
|
|
||
5 years ago
|
// The resource_names field in DiscoveryRequest specifies a list of clusters
|
||
|
// to subscribe to updates for.
|
||
5 years ago
|
rpc StreamEndpoints(stream discovery.v3.DiscoveryRequest)
|
||
|
returns (stream discovery.v3.DiscoveryResponse) {
|
||
5 years ago
|
}
|
||
|
|
||
5 years ago
|
rpc DeltaEndpoints(stream discovery.v3.DeltaDiscoveryRequest)
|
||
|
returns (stream discovery.v3.DeltaDiscoveryResponse) {
|
||
5 years ago
|
}
|
||
|
|
||
5 years ago
|
rpc FetchEndpoints(discovery.v3.DiscoveryRequest) returns (discovery.v3.DiscoveryResponse) {
|
||
|
option (google.api.http).post = "/v3/discovery:endpoints";
|
||
5 years ago
|
option (google.api.http).body = "*";
|
||
5 years ago
|
}
|
||
|
}
|
||
|
|
||
5 years ago
|
// [#not-implemented-hide:] Not configuration. Workaround c++ protobuf issue with importing
|
||
|
// services: https://github.com/google/protobuf/issues/4221 and protoxform to upgrade the file.
|
||
|
message EdsDummy {
|
||
|
option (udpa.annotations.versioning).previous_message_type = "envoy.api.v2.EdsDummy";
|
||
5 years ago
|
}
|