Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Nowotyński <maxmati4@gmail.com>2019-11-29 02:24:46 +0300
committerjramsay <maxmati4@gmail.com>2020-02-06 22:29:01 +0300
commiteef10e2217463c7c3582604ebdebae36679e43f4 (patch)
tree8781b89a8c0320449d17871fc0112364171e25f7 /proto/blob.proto
parentfc5321467ae7f2a9d39e81f3f700495292fd785e (diff)
Use field annotation for target and additional repository
Instead of setting OID in the RPC method use annotation in the field (`target_repository` and `additional_repository`). Having only this 2 annotations created a problem with messages that can be either target or additional repository (for example `ObjectPool`). Those are marked with `repository` annotation and `target_repository` and `additional_repository` are used in the parent messages. Signed-off-by: Mateusz Nowotyński <maxmati4@gmail.com> Signed-off-by: jramsay <maxmati4@gmail.com>
Diffstat (limited to 'proto/blob.proto')
-rw-r--r--proto/blob.proto15
1 files changed, 5 insertions, 10 deletions
diff --git a/proto/blob.proto b/proto/blob.proto
index 6497556d8..0071d814b 100644
--- a/proto/blob.proto
+++ b/proto/blob.proto
@@ -13,38 +13,33 @@ service BlobService {
rpc GetBlob(GetBlobRequest) returns (stream GetBlobResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
rpc GetBlobs(GetBlobsRequest) returns (stream GetBlobsResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
rpc GetLFSPointers(GetLFSPointersRequest) returns (stream GetLFSPointersResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
rpc GetNewLFSPointers(GetNewLFSPointersRequest) returns (stream GetNewLFSPointersResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
rpc GetAllLFSPointers(GetAllLFSPointersRequest) returns (stream GetAllLFSPointersResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
}
message GetBlobRequest {
- Repository repository = 1;
+ Repository repository = 1[(target_repository)=true];
// Object ID (SHA1) of the blob we want to get
string oid = 2;
// Maximum number of bytes we want to receive. Use '-1' to get the full blob no matter how big.
@@ -67,7 +62,7 @@ message GetBlobsRequest {
bytes path = 2;
}
- Repository repository = 1;
+ Repository repository = 1[(target_repository)=true];
// Revision/Path pairs of the blobs we want to get.
repeated RevisionPath revision_paths = 2;
// Maximum number of bytes we want to receive. Use '-1' to get the full blobs no matter how big.
@@ -102,7 +97,7 @@ message NewBlobObject {
message GetLFSPointersRequest {
- Repository repository = 1;
+ Repository repository = 1[(target_repository)=true];
repeated string blob_ids = 2;
}
@@ -112,7 +107,7 @@ message GetLFSPointersResponse {
message GetNewLFSPointersRequest {
- Repository repository = 1;
+ Repository repository = 1[(target_repository)=true];
bytes revision = 2;
int32 limit = 3;
// Note: When `not_in_all` is true, `not_in_refs` is ignored
@@ -125,7 +120,7 @@ message GetNewLFSPointersResponse {
}
message GetAllLFSPointersRequest {
- Repository repository = 1;
+ Repository repository = 1[(target_repository)=true];
reserved 2;
}