1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
syntax = "proto3";
package gitaly;
import "shared.proto";
service RemoteService {
rpc AddRemote(AddRemoteRequest) returns (AddRemoteResponse) {}
rpc FetchInternalRemote(FetchInternalRemoteRequest) returns (FetchInternalRemoteResponse) {}
rpc RemoveRemote(RemoveRemoteRequest) returns (RemoveRemoteResponse) {}
rpc UpdateRemoteMirror(stream UpdateRemoteMirrorRequest) returns (UpdateRemoteMirrorResponse) {}
rpc FindRemoteRepository(FindRemoteRepositoryRequest) returns (FindRemoteRepositoryResponse) {}
rpc FindRemoteRootRef(FindRemoteRootRefRequest) returns (FindRemoteRootRefResponse) {}
}
message AddRemoteRequest {
Repository repository = 1;
string name = 2;
string url = 3;
// DEPRECATED: https://gitlab.com/gitlab-org/gitaly-proto/merge_requests/137
reserved 4;
reserved "mirror_refmap";
// If any, the remote is configured as a mirror with those mappings
repeated string mirror_refmaps = 5;
}
message AddRemoteResponse {}
message RemoveRemoteRequest {
Repository repository = 1;
string name = 2;
}
message RemoveRemoteResponse {
bool result = 1;
}
message FetchInternalRemoteRequest {
Repository repository = 1;
Repository remote_repository = 2;
}
message FetchInternalRemoteResponse {
bool result = 1;
}
message UpdateRemoteMirrorRequest {
Repository repository = 1;
string ref_name = 2;
repeated bytes only_branches_matching = 3;
string ssh_key = 4;
string known_hosts = 5;
}
message UpdateRemoteMirrorResponse {}
message FindRemoteRepositoryRequest {
string remote = 1;
}
// This migth throw a GRPC Unavailable code, to signal the request failure
// is transient.
message FindRemoteRepositoryResponse {
bool exists = 1;
}
message FindRemoteRootRefRequest {
Repository repository = 1;
string remote = 2;
}
message FindRemoteRootRefResponse {
string ref = 1;
}
|