| 1 |
syntax = "proto3"; |
| 2 |
|
| 3 |
package xds.core.v3; |
| 4 |
|
| 5 |
import "xds/annotations/v3/status.proto"; |
| 6 |
import "xds/core/v3/context_params.proto"; |
| 7 |
|
| 8 |
import "validate/validate.proto"; |
| 9 |
|
| 10 |
option java_outer_classname = "ResourceNameProto"; |
| 11 |
option java_multiple_files = true; |
| 12 |
option java_package = "com.github.xds.core.v3"; |
| 13 |
option go_package = "github.com/cncf/xds/go/xds/core/v3"; |
| 14 |
|
| 15 |
option (xds.annotations.v3.file_status).work_in_progress = true; |
| 16 |
|
| 17 |
// xDS resource name. This has a canonical xdstp:// URI representation: |
| 18 |
// |
| 19 |
// xdstp://{authority}/{type_url}/{id}?{context_params} |
| 20 |
// |
| 21 |
// where context_params take the form of URI query parameters. |
| 22 |
// |
| 23 |
// A xDS resource name fully identifies a network resource for transport |
| 24 |
// purposes. xDS resource names in this form appear only in discovery |
| 25 |
// request/response messages used with the xDS transport. |
| 26 |
message ResourceName { |
| 27 |
// Opaque identifier for the resource. Any '/' will not be escaped during URI |
| 28 |
// encoding and will form part of the URI path. |
| 29 |
string id = 1; |
| 30 |
|
| 31 |
// Logical authority for resource (not necessarily transport network address). |
| 32 |
// Authorities are opaque in the xDS API, data-plane load balancers will map |
| 33 |
// them to concrete network transports such as an xDS management server. |
| 34 |
string authority = 2; |
| 35 |
|
| 36 |
// Fully qualified resource type (as in type URL without types.googleapis.com/ |
| 37 |
// prefix). |
| 38 |
string resource_type = 3 [(validate.rules).string = {min_len: 1}]; |
| 39 |
|
| 40 |
// Additional parameters that can be used to select resource variants. |
| 41 |
ContextParams context = 4; |
| 42 |
} |