blob: f4fd61f3e10278da32b493a91e2c784d3b483949 (
plain)
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
syntax = "proto3";
package gitaly;
option go_package = "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb";
import "shared.proto";
service RemoteService {
rpc AddRemote(AddRemoteRequest) returns (AddRemoteResponse) {
option (op_type) = {
op: MUTATOR
};
}
rpc FetchInternalRemote(FetchInternalRemoteRequest) returns (FetchInternalRemoteResponse) {
option (op_type) = {
op: MUTATOR
};
}
rpc RemoveRemote(RemoveRemoteRequest) returns (RemoveRemoteResponse) {
option (op_type) = {
op: MUTATOR
};
}
rpc UpdateRemoteMirror(stream UpdateRemoteMirrorRequest) returns (UpdateRemoteMirrorResponse) {
option (op_type) = {
op: MUTATOR
};
}
rpc FindRemoteRepository(FindRemoteRepositoryRequest) returns (FindRemoteRepositoryResponse) {
option (op_type) = {
op: ACCESSOR
scope_level: SERVER
};
}
rpc FindRemoteRootRef(FindRemoteRootRefRequest) returns (FindRemoteRootRefResponse) {
option (op_type) = {
op: ACCESSOR
};
}
rpc ListRemotes(ListRemotesRequest) returns (stream ListRemotesResponse) {
option (op_type) = {
op: ACCESSOR
};
}
}
message AddRemoteRequest {
Repository repository = 1 [(target_repository)=true];
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 [(target_repository)=true];
string name = 2;
}
message RemoveRemoteResponse {
bool result = 1;
}
message FetchInternalRemoteRequest {
Repository repository = 1 [(target_repository)=true];
Repository remote_repository = 2;
}
message FetchInternalRemoteResponse {
bool result = 1;
}
message UpdateRemoteMirrorRequest {
Repository repository = 1 [(target_repository)=true];
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 [(target_repository)=true];
string remote = 2;
}
message FindRemoteRootRefResponse {
string ref = 1;
}
message ListRemotesRequest {
Repository repository = 1 [(target_repository)=true];
}
message ListRemotesResponse {
message Remote {
string name = 1;
string fetch_url = 2;
string push_url = 3;
}
repeated Remote remotes = 1;
}
|