gitaly 14.2.0.pre.rc1 → 14.4.0.pre.rc43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ruby/proto/gitaly/blob_pb.rb +18 -0
- data/ruby/proto/gitaly/blob_services_pb.rb +10 -7
- data/ruby/proto/gitaly/cleanup_services_pb.rb +2 -2
- data/ruby/proto/gitaly/commit_services_pb.rb +24 -24
- data/ruby/proto/gitaly/conflicts_services_pb.rb +3 -3
- data/ruby/proto/gitaly/diff_services_pb.rb +7 -7
- data/ruby/proto/gitaly/errors_pb.rb +19 -0
- data/ruby/proto/gitaly/hook_pb.rb +8 -0
- data/ruby/proto/gitaly/hook_services_pb.rb +9 -6
- data/ruby/proto/gitaly/internal_services_pb.rb +2 -2
- data/ruby/proto/gitaly/namespace_services_pb.rb +5 -5
- data/ruby/proto/gitaly/objectpool_services_pb.rb +19 -9
- data/ruby/proto/gitaly/operations_pb.rb +7 -0
- data/ruby/proto/gitaly/operations_services_pb.rb +16 -16
- data/ruby/proto/gitaly/praefect_services_pb.rb +5 -5
- data/ruby/proto/gitaly/ref_pb.rb +39 -20
- data/ruby/proto/gitaly/ref_services_pb.rb +27 -21
- data/ruby/proto/gitaly/remote_pb.rb +0 -44
- data/ruby/proto/gitaly/remote_services_pb.rb +4 -7
- data/ruby/proto/gitaly/repository-service_pb.rb +24 -43
- data/ruby/proto/gitaly/repository-service_services_pb.rb +53 -44
- data/ruby/proto/gitaly/server_services_pb.rb +3 -3
- data/ruby/proto/gitaly/shared_pb.rb +5 -0
- data/ruby/proto/gitaly/smarthttp_pb.rb +9 -0
- data/ruby/proto/gitaly/smarthttp_services_pb.rb +7 -5
- data/ruby/proto/gitaly/ssh_services_pb.rb +4 -4
- data/ruby/proto/gitaly/transaction_services_pb.rb +3 -3
- data/ruby/proto/gitaly/version.rb +1 -1
- data/ruby/proto/gitaly/wiki_services_pb.rb +6 -6
- metadata +7 -6
data/ruby/proto/gitaly/ref_pb.rb
CHANGED
@@ -9,14 +9,6 @@ require 'blob_pb'
|
|
9
9
|
require 'google/protobuf/timestamp_pb'
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("ref.proto", :syntax => :proto3) do
|
12
|
-
add_message "gitaly.ListNewBlobsRequest" do
|
13
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
14
|
-
optional :commit_id, :string, 2
|
15
|
-
optional :limit, :uint32, 3
|
16
|
-
end
|
17
|
-
add_message "gitaly.ListNewBlobsResponse" do
|
18
|
-
repeated :new_blob_objects, :message, 1, "gitaly.NewBlobObject"
|
19
|
-
end
|
20
12
|
add_message "gitaly.FindDefaultBranchNameRequest" do
|
21
13
|
optional :repository, :message, 1, "gitaly.Repository"
|
22
14
|
end
|
@@ -35,14 +27,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
35
27
|
add_message "gitaly.FindAllTagNamesResponse" do
|
36
28
|
repeated :names, :bytes, 1
|
37
29
|
end
|
38
|
-
add_message "gitaly.FindRefNameRequest" do
|
39
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
40
|
-
optional :commit_id, :string, 2
|
41
|
-
optional :prefix, :bytes, 3
|
42
|
-
end
|
43
|
-
add_message "gitaly.FindRefNameResponse" do
|
44
|
-
optional :name, :bytes, 1
|
45
|
-
end
|
46
30
|
add_message "gitaly.FindLocalBranchesRequest" do
|
47
31
|
optional :repository, :message, 1, "gitaly.Repository"
|
48
32
|
optional :sort_by, :enum, 2, "gitaly.FindLocalBranchesRequest.SortBy"
|
@@ -91,6 +75,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
91
75
|
end
|
92
76
|
add_message "gitaly.FindAllTagsRequest" do
|
93
77
|
optional :repository, :message, 1, "gitaly.Repository"
|
78
|
+
optional :sort_by, :message, 2, "gitaly.FindAllTagsRequest.SortBy"
|
79
|
+
optional :pagination_params, :message, 3, "gitaly.PaginationParameter"
|
80
|
+
end
|
81
|
+
add_message "gitaly.FindAllTagsRequest.SortBy" do
|
82
|
+
optional :key, :enum, 1, "gitaly.FindAllTagsRequest.SortBy.Key"
|
83
|
+
optional :direction, :enum, 2, "gitaly.SortDirection"
|
84
|
+
end
|
85
|
+
add_enum "gitaly.FindAllTagsRequest.SortBy.Key" do
|
86
|
+
value :REFNAME, 0
|
87
|
+
value :CREATORDATE, 1
|
94
88
|
end
|
95
89
|
add_message "gitaly.FindAllTagsResponse" do
|
96
90
|
repeated :tags, :message, 1, "gitaly.Tag"
|
@@ -194,20 +188,38 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
194
188
|
end
|
195
189
|
add_message "gitaly.PackRefsResponse" do
|
196
190
|
end
|
191
|
+
add_message "gitaly.ListRefsRequest" do
|
192
|
+
optional :repository, :message, 1, "gitaly.Repository"
|
193
|
+
repeated :patterns, :bytes, 2
|
194
|
+
optional :head, :bool, 3
|
195
|
+
end
|
196
|
+
add_message "gitaly.ListRefsResponse" do
|
197
|
+
repeated :references, :message, 1, "gitaly.ListRefsResponse.Reference"
|
198
|
+
end
|
199
|
+
add_message "gitaly.ListRefsResponse.Reference" do
|
200
|
+
optional :name, :bytes, 1
|
201
|
+
optional :target, :string, 2
|
202
|
+
end
|
203
|
+
add_message "gitaly.FindRefsByOIDRequest" do
|
204
|
+
optional :repository, :message, 1, "gitaly.Repository"
|
205
|
+
optional :oid, :string, 2
|
206
|
+
repeated :ref_patterns, :string, 3
|
207
|
+
optional :sort_field, :string, 4
|
208
|
+
optional :limit, :uint32, 5
|
209
|
+
end
|
210
|
+
add_message "gitaly.FindRefsByOIDResponse" do
|
211
|
+
repeated :refs, :string, 1
|
212
|
+
end
|
197
213
|
end
|
198
214
|
end
|
199
215
|
|
200
216
|
module Gitaly
|
201
|
-
ListNewBlobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListNewBlobsRequest").msgclass
|
202
|
-
ListNewBlobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListNewBlobsResponse").msgclass
|
203
217
|
FindDefaultBranchNameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindDefaultBranchNameRequest").msgclass
|
204
218
|
FindDefaultBranchNameResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindDefaultBranchNameResponse").msgclass
|
205
219
|
FindAllBranchNamesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllBranchNamesRequest").msgclass
|
206
220
|
FindAllBranchNamesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllBranchNamesResponse").msgclass
|
207
221
|
FindAllTagNamesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllTagNamesRequest").msgclass
|
208
222
|
FindAllTagNamesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllTagNamesResponse").msgclass
|
209
|
-
FindRefNameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRefNameRequest").msgclass
|
210
|
-
FindRefNameResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRefNameResponse").msgclass
|
211
223
|
FindLocalBranchesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindLocalBranchesRequest").msgclass
|
212
224
|
FindLocalBranchesRequest::SortBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindLocalBranchesRequest.SortBy").enummodule
|
213
225
|
FindLocalBranchesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindLocalBranchesResponse").msgclass
|
@@ -219,6 +231,8 @@ module Gitaly
|
|
219
231
|
FindTagRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindTagRequest").msgclass
|
220
232
|
FindTagResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindTagResponse").msgclass
|
221
233
|
FindAllTagsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllTagsRequest").msgclass
|
234
|
+
FindAllTagsRequest::SortBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllTagsRequest.SortBy").msgclass
|
235
|
+
FindAllTagsRequest::SortBy::Key = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllTagsRequest.SortBy.Key").enummodule
|
222
236
|
FindAllTagsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllTagsResponse").msgclass
|
223
237
|
RefExistsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RefExistsRequest").msgclass
|
224
238
|
RefExistsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RefExistsResponse").msgclass
|
@@ -246,4 +260,9 @@ module Gitaly
|
|
246
260
|
FindAllRemoteBranchesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllRemoteBranchesResponse").msgclass
|
247
261
|
PackRefsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackRefsRequest").msgclass
|
248
262
|
PackRefsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackRefsResponse").msgclass
|
263
|
+
ListRefsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsRequest").msgclass
|
264
|
+
ListRefsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsResponse").msgclass
|
265
|
+
ListRefsResponse::Reference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsResponse.Reference").msgclass
|
266
|
+
FindRefsByOIDRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRefsByOIDRequest").msgclass
|
267
|
+
FindRefsByOIDResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRefsByOIDResponse").msgclass
|
249
268
|
end
|
@@ -8,40 +8,46 @@ module Gitaly
|
|
8
8
|
module RefService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include
|
11
|
+
include GRPC::GenericService
|
12
12
|
|
13
13
|
self.marshal_class_method = :encode
|
14
14
|
self.unmarshal_class_method = :decode
|
15
15
|
self.service_name = 'gitaly.RefService'
|
16
16
|
|
17
|
-
rpc :FindDefaultBranchName,
|
18
|
-
rpc :FindAllBranchNames,
|
19
|
-
rpc :FindAllTagNames,
|
20
|
-
# Find a Ref matching the given constraints. Response may be empty.
|
21
|
-
rpc :FindRefName, ::Gitaly::FindRefNameRequest, ::Gitaly::FindRefNameResponse
|
17
|
+
rpc :FindDefaultBranchName, Gitaly::FindDefaultBranchNameRequest, Gitaly::FindDefaultBranchNameResponse
|
18
|
+
rpc :FindAllBranchNames, Gitaly::FindAllBranchNamesRequest, stream(Gitaly::FindAllBranchNamesResponse)
|
19
|
+
rpc :FindAllTagNames, Gitaly::FindAllTagNamesRequest, stream(Gitaly::FindAllTagNamesResponse)
|
22
20
|
# Return a stream so we can divide the response in chunks of branches
|
23
|
-
rpc :FindLocalBranches,
|
24
|
-
rpc :FindAllBranches,
|
25
|
-
|
26
|
-
rpc :
|
27
|
-
rpc :
|
28
|
-
rpc :
|
21
|
+
rpc :FindLocalBranches, Gitaly::FindLocalBranchesRequest, stream(Gitaly::FindLocalBranchesResponse)
|
22
|
+
rpc :FindAllBranches, Gitaly::FindAllBranchesRequest, stream(Gitaly::FindAllBranchesResponse)
|
23
|
+
# Returns a stream of tags repository has.
|
24
|
+
rpc :FindAllTags, Gitaly::FindAllTagsRequest, stream(Gitaly::FindAllTagsResponse)
|
25
|
+
rpc :FindTag, Gitaly::FindTagRequest, Gitaly::FindTagResponse
|
26
|
+
rpc :FindAllRemoteBranches, Gitaly::FindAllRemoteBranchesRequest, stream(Gitaly::FindAllRemoteBranchesResponse)
|
27
|
+
rpc :RefExists, Gitaly::RefExistsRequest, Gitaly::RefExistsResponse
|
29
28
|
# FindBranch finds a branch by its unqualified name (like "master") and
|
30
29
|
# returns the commit it currently points to.
|
31
|
-
rpc :FindBranch,
|
32
|
-
rpc :DeleteRefs,
|
33
|
-
rpc :ListBranchNamesContainingCommit,
|
34
|
-
rpc :ListTagNamesContainingCommit,
|
30
|
+
rpc :FindBranch, Gitaly::FindBranchRequest, Gitaly::FindBranchResponse
|
31
|
+
rpc :DeleteRefs, Gitaly::DeleteRefsRequest, Gitaly::DeleteRefsResponse
|
32
|
+
rpc :ListBranchNamesContainingCommit, Gitaly::ListBranchNamesContainingCommitRequest, stream(Gitaly::ListBranchNamesContainingCommitResponse)
|
33
|
+
rpc :ListTagNamesContainingCommit, Gitaly::ListTagNamesContainingCommitRequest, stream(Gitaly::ListTagNamesContainingCommitResponse)
|
35
34
|
# GetTagSignatures returns signatures for annotated tags resolved from a set of revisions. Revisions
|
36
35
|
# which don't resolve to an annotated tag are silently discarded. Revisions which cannot be resolved
|
37
36
|
# result in an error. Tags which are annotated but not signed will return a TagSignature response
|
38
37
|
# which has no signature, but its unsigned contents will still be returned.
|
39
|
-
rpc :GetTagSignatures,
|
40
|
-
rpc :GetTagMessages,
|
38
|
+
rpc :GetTagSignatures, Gitaly::GetTagSignaturesRequest, stream(Gitaly::GetTagSignaturesResponse)
|
39
|
+
rpc :GetTagMessages, Gitaly::GetTagMessagesRequest, stream(Gitaly::GetTagMessagesResponse)
|
41
40
|
# Returns commits that are only reachable from the ref passed
|
42
|
-
rpc :ListNewCommits,
|
43
|
-
rpc :
|
44
|
-
|
41
|
+
rpc :ListNewCommits, Gitaly::ListNewCommitsRequest, stream(Gitaly::ListNewCommitsResponse)
|
42
|
+
rpc :PackRefs, Gitaly::PackRefsRequest, Gitaly::PackRefsResponse
|
43
|
+
# ListRefs returns a stream of all references in the repository. By default, pseudo-revisions like HEAD
|
44
|
+
# will not be returned by this RPC. Any symbolic references will be resolved to the object ID it is
|
45
|
+
# pointing at.
|
46
|
+
rpc :ListRefs, Gitaly::ListRefsRequest, stream(Gitaly::ListRefsResponse)
|
47
|
+
# FindRefsByOID returns an array of fully qualified reference names that point to an object ID.
|
48
|
+
# It returns nothing if the object ID doesn't exist, or doesn't point to
|
49
|
+
# any branches or tags. Prefixes can be also be used as the object ID.
|
50
|
+
rpc :FindRefsByOID, Gitaly::FindRefsByOIDRequest, Gitaly::FindRefsByOIDResponse
|
45
51
|
end
|
46
52
|
|
47
53
|
Stub = Service.rpc_stub_class
|
@@ -7,31 +7,8 @@ require 'lint_pb'
|
|
7
7
|
require 'shared_pb'
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("remote.proto", :syntax => :proto3) do
|
10
|
-
add_message "gitaly.AddRemoteRequest" do
|
11
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
12
|
-
optional :name, :string, 2
|
13
|
-
optional :url, :string, 3
|
14
|
-
repeated :mirror_refmaps, :string, 5
|
15
|
-
end
|
16
|
-
add_message "gitaly.AddRemoteResponse" do
|
17
|
-
end
|
18
|
-
add_message "gitaly.RemoveRemoteRequest" do
|
19
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
20
|
-
optional :name, :string, 2
|
21
|
-
end
|
22
|
-
add_message "gitaly.RemoveRemoteResponse" do
|
23
|
-
optional :result, :bool, 1
|
24
|
-
end
|
25
|
-
add_message "gitaly.FetchInternalRemoteRequest" do
|
26
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
27
|
-
optional :remote_repository, :message, 2, "gitaly.Repository"
|
28
|
-
end
|
29
|
-
add_message "gitaly.FetchInternalRemoteResponse" do
|
30
|
-
optional :result, :bool, 1
|
31
|
-
end
|
32
10
|
add_message "gitaly.UpdateRemoteMirrorRequest" do
|
33
11
|
optional :repository, :message, 1, "gitaly.Repository"
|
34
|
-
optional :ref_name, :string, 2
|
35
12
|
optional :remote, :message, 7, "gitaly.UpdateRemoteMirrorRequest.Remote"
|
36
13
|
repeated :only_branches_matching, :bytes, 3
|
37
14
|
optional :ssh_key, :string, 4
|
@@ -54,34 +31,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
54
31
|
end
|
55
32
|
add_message "gitaly.FindRemoteRootRefRequest" do
|
56
33
|
optional :repository, :message, 1, "gitaly.Repository"
|
57
|
-
optional :remote, :string, 2
|
58
34
|
optional :remote_url, :string, 3
|
59
35
|
optional :http_authorization_header, :string, 4
|
60
36
|
end
|
61
37
|
add_message "gitaly.FindRemoteRootRefResponse" do
|
62
38
|
optional :ref, :string, 1
|
63
39
|
end
|
64
|
-
add_message "gitaly.ListRemotesRequest" do
|
65
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
66
|
-
end
|
67
|
-
add_message "gitaly.ListRemotesResponse" do
|
68
|
-
repeated :remotes, :message, 1, "gitaly.ListRemotesResponse.Remote"
|
69
|
-
end
|
70
|
-
add_message "gitaly.ListRemotesResponse.Remote" do
|
71
|
-
optional :name, :string, 1
|
72
|
-
optional :fetch_url, :string, 2
|
73
|
-
optional :push_url, :string, 3
|
74
|
-
end
|
75
40
|
end
|
76
41
|
end
|
77
42
|
|
78
43
|
module Gitaly
|
79
|
-
AddRemoteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.AddRemoteRequest").msgclass
|
80
|
-
AddRemoteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.AddRemoteResponse").msgclass
|
81
|
-
RemoveRemoteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RemoveRemoteRequest").msgclass
|
82
|
-
RemoveRemoteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RemoveRemoteResponse").msgclass
|
83
|
-
FetchInternalRemoteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchInternalRemoteRequest").msgclass
|
84
|
-
FetchInternalRemoteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchInternalRemoteResponse").msgclass
|
85
44
|
UpdateRemoteMirrorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UpdateRemoteMirrorRequest").msgclass
|
86
45
|
UpdateRemoteMirrorRequest::Remote = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UpdateRemoteMirrorRequest.Remote").msgclass
|
87
46
|
UpdateRemoteMirrorResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UpdateRemoteMirrorResponse").msgclass
|
@@ -89,7 +48,4 @@ module Gitaly
|
|
89
48
|
FindRemoteRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRemoteRepositoryResponse").msgclass
|
90
49
|
FindRemoteRootRefRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRemoteRootRefRequest").msgclass
|
91
50
|
FindRemoteRootRefResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRemoteRootRefResponse").msgclass
|
92
|
-
ListRemotesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRemotesRequest").msgclass
|
93
|
-
ListRemotesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRemotesResponse").msgclass
|
94
|
-
ListRemotesResponse::Remote = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRemotesResponse.Remote").msgclass
|
95
51
|
end
|
@@ -8,28 +8,25 @@ module Gitaly
|
|
8
8
|
module RemoteService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include
|
11
|
+
include GRPC::GenericService
|
12
12
|
|
13
13
|
self.marshal_class_method = :encode
|
14
14
|
self.unmarshal_class_method = :decode
|
15
15
|
self.service_name = 'gitaly.RemoteService'
|
16
16
|
|
17
|
-
rpc :AddRemote, ::Gitaly::AddRemoteRequest, ::Gitaly::AddRemoteResponse
|
18
|
-
rpc :FetchInternalRemote, ::Gitaly::FetchInternalRemoteRequest, ::Gitaly::FetchInternalRemoteResponse
|
19
|
-
rpc :RemoveRemote, ::Gitaly::RemoveRemoteRequest, ::Gitaly::RemoveRemoteResponse
|
20
17
|
# UpdateRemoteMirror compares the references in the target repository and its remote mirror
|
21
18
|
# repository. Any differences in the references are then addressed by pushing the differing
|
22
19
|
# references to the mirror. Created and modified references are updated, removed references are
|
23
20
|
# deleted from the mirror. UpdateRemoteMirror updates all tags. Branches are updated if they match
|
24
21
|
# the patterns specified in the requests.
|
25
|
-
rpc :UpdateRemoteMirror, stream(
|
26
|
-
rpc :FindRemoteRepository,
|
22
|
+
rpc :UpdateRemoteMirror, stream(Gitaly::UpdateRemoteMirrorRequest), Gitaly::UpdateRemoteMirrorResponse
|
23
|
+
rpc :FindRemoteRepository, Gitaly::FindRemoteRepositoryRequest, Gitaly::FindRemoteRepositoryResponse
|
27
24
|
# FindRemoteRootRef tries to find the root reference of a remote
|
28
25
|
# repository. The root reference is the default branch as pointed to by
|
29
26
|
# the remotes HEAD reference. Returns an InvalidArgument error if the
|
30
27
|
# specified remote does not exist and a NotFound error in case no HEAD
|
31
28
|
# branch was found.
|
32
|
-
rpc :FindRemoteRootRef,
|
29
|
+
rpc :FindRemoteRootRef, Gitaly::FindRemoteRootRefRequest, Gitaly::FindRemoteRootRefResponse
|
33
30
|
end
|
34
31
|
|
35
32
|
Stub = Service.rpc_stub_class
|
@@ -62,9 +62,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
62
62
|
end
|
63
63
|
add_message "gitaly.ApplyGitattributesResponse" do
|
64
64
|
end
|
65
|
+
add_message "gitaly.FetchBundleRequest" do
|
66
|
+
optional :repository, :message, 1, "gitaly.Repository"
|
67
|
+
optional :data, :bytes, 2
|
68
|
+
end
|
69
|
+
add_message "gitaly.FetchBundleResponse" do
|
70
|
+
end
|
65
71
|
add_message "gitaly.FetchRemoteRequest" do
|
66
72
|
optional :repository, :message, 1, "gitaly.Repository"
|
67
|
-
optional :remote, :string, 2
|
68
73
|
optional :force, :bool, 3
|
69
74
|
optional :no_tags, :bool, 4
|
70
75
|
optional :timeout, :int32, 5
|
@@ -144,20 +149,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
144
149
|
end
|
145
150
|
add_message "gitaly.CreateForkResponse" do
|
146
151
|
end
|
147
|
-
add_message "gitaly.IsRebaseInProgressRequest" do
|
148
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
149
|
-
optional :rebase_id, :string, 2
|
150
|
-
end
|
151
|
-
add_message "gitaly.IsRebaseInProgressResponse" do
|
152
|
-
optional :in_progress, :bool, 1
|
153
|
-
end
|
154
|
-
add_message "gitaly.IsSquashInProgressRequest" do
|
155
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
156
|
-
optional :squash_id, :string, 2
|
157
|
-
end
|
158
|
-
add_message "gitaly.IsSquashInProgressResponse" do
|
159
|
-
optional :in_progress, :bool, 1
|
160
|
-
end
|
161
152
|
add_message "gitaly.CreateRepositoryFromURLRequest" do
|
162
153
|
optional :repository, :message, 1, "gitaly.Repository"
|
163
154
|
optional :url, :string, 2
|
@@ -170,31 +161,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
170
161
|
add_message "gitaly.CreateBundleResponse" do
|
171
162
|
optional :data, :bytes, 1
|
172
163
|
end
|
173
|
-
add_message "gitaly.
|
164
|
+
add_message "gitaly.CreateBundleFromRefListRequest" do
|
174
165
|
optional :repository, :message, 1, "gitaly.Repository"
|
166
|
+
repeated :patterns, :bytes, 2
|
175
167
|
end
|
176
|
-
add_message "gitaly.
|
168
|
+
add_message "gitaly.CreateBundleFromRefListResponse" do
|
177
169
|
optional :data, :bytes, 1
|
178
170
|
end
|
179
|
-
add_message "gitaly.
|
180
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
181
|
-
repeated :entries, :message, 2, "gitaly.SetConfigRequest.Entry"
|
182
|
-
end
|
183
|
-
add_message "gitaly.SetConfigRequest.Entry" do
|
184
|
-
optional :key, :string, 1
|
185
|
-
oneof :value do
|
186
|
-
optional :value_str, :string, 2
|
187
|
-
optional :value_int32, :int32, 3
|
188
|
-
optional :value_bool, :bool, 4
|
189
|
-
end
|
190
|
-
end
|
191
|
-
add_message "gitaly.SetConfigResponse" do
|
192
|
-
end
|
193
|
-
add_message "gitaly.DeleteConfigRequest" do
|
171
|
+
add_message "gitaly.GetConfigRequest" do
|
194
172
|
optional :repository, :message, 1, "gitaly.Repository"
|
195
|
-
repeated :keys, :string, 2
|
196
173
|
end
|
197
|
-
add_message "gitaly.
|
174
|
+
add_message "gitaly.GetConfigResponse" do
|
175
|
+
optional :data, :bytes, 1
|
198
176
|
end
|
199
177
|
add_message "gitaly.RestoreCustomHooksRequest" do
|
200
178
|
optional :repository, :message, 1, "gitaly.Repository"
|
@@ -341,6 +319,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
341
319
|
end
|
342
320
|
add_message "gitaly.OptimizeRepositoryResponse" do
|
343
321
|
end
|
322
|
+
add_message "gitaly.SetFullPathRequest" do
|
323
|
+
optional :repository, :message, 1, "gitaly.Repository"
|
324
|
+
optional :path, :string, 2
|
325
|
+
end
|
326
|
+
add_message "gitaly.SetFullPathResponse" do
|
327
|
+
end
|
344
328
|
end
|
345
329
|
end
|
346
330
|
|
@@ -364,6 +348,8 @@ module Gitaly
|
|
364
348
|
RepositorySizeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositorySizeResponse").msgclass
|
365
349
|
ApplyGitattributesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ApplyGitattributesRequest").msgclass
|
366
350
|
ApplyGitattributesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ApplyGitattributesResponse").msgclass
|
351
|
+
FetchBundleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchBundleRequest").msgclass
|
352
|
+
FetchBundleResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchBundleResponse").msgclass
|
367
353
|
FetchRemoteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchRemoteRequest").msgclass
|
368
354
|
FetchRemoteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchRemoteResponse").msgclass
|
369
355
|
CreateRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateRepositoryRequest").msgclass
|
@@ -383,21 +369,14 @@ module Gitaly
|
|
383
369
|
FindMergeBaseResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindMergeBaseResponse").msgclass
|
384
370
|
CreateForkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateForkRequest").msgclass
|
385
371
|
CreateForkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateForkResponse").msgclass
|
386
|
-
IsRebaseInProgressRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.IsRebaseInProgressRequest").msgclass
|
387
|
-
IsRebaseInProgressResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.IsRebaseInProgressResponse").msgclass
|
388
|
-
IsSquashInProgressRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.IsSquashInProgressRequest").msgclass
|
389
|
-
IsSquashInProgressResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.IsSquashInProgressResponse").msgclass
|
390
372
|
CreateRepositoryFromURLRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateRepositoryFromURLRequest").msgclass
|
391
373
|
CreateRepositoryFromURLResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateRepositoryFromURLResponse").msgclass
|
392
374
|
CreateBundleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateBundleRequest").msgclass
|
393
375
|
CreateBundleResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateBundleResponse").msgclass
|
376
|
+
CreateBundleFromRefListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateBundleFromRefListRequest").msgclass
|
377
|
+
CreateBundleFromRefListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateBundleFromRefListResponse").msgclass
|
394
378
|
GetConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetConfigRequest").msgclass
|
395
379
|
GetConfigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetConfigResponse").msgclass
|
396
|
-
SetConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetConfigRequest").msgclass
|
397
|
-
SetConfigRequest::Entry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetConfigRequest.Entry").msgclass
|
398
|
-
SetConfigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetConfigResponse").msgclass
|
399
|
-
DeleteConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DeleteConfigRequest").msgclass
|
400
|
-
DeleteConfigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DeleteConfigResponse").msgclass
|
401
380
|
RestoreCustomHooksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RestoreCustomHooksRequest").msgclass
|
402
381
|
RestoreCustomHooksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RestoreCustomHooksResponse").msgclass
|
403
382
|
BackupCustomHooksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.BackupCustomHooksRequest").msgclass
|
@@ -437,4 +416,6 @@ module Gitaly
|
|
437
416
|
ReplicateRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReplicateRepositoryResponse").msgclass
|
438
417
|
OptimizeRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OptimizeRepositoryRequest").msgclass
|
439
418
|
OptimizeRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OptimizeRepositoryResponse").msgclass
|
419
|
+
SetFullPathRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetFullPathRequest").msgclass
|
420
|
+
SetFullPathResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetFullPathResponse").msgclass
|
440
421
|
end
|
@@ -8,64 +8,73 @@ module Gitaly
|
|
8
8
|
module RepositoryService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include
|
11
|
+
include GRPC::GenericService
|
12
12
|
|
13
13
|
self.marshal_class_method = :encode
|
14
14
|
self.unmarshal_class_method = :decode
|
15
15
|
self.service_name = 'gitaly.RepositoryService'
|
16
16
|
|
17
|
-
rpc :RepositoryExists,
|
18
|
-
rpc :RepackIncremental,
|
19
|
-
rpc :RepackFull,
|
20
|
-
rpc :MidxRepack,
|
21
|
-
rpc :GarbageCollect,
|
22
|
-
rpc :WriteCommitGraph,
|
23
|
-
rpc :RepositorySize,
|
24
|
-
rpc :ApplyGitattributes,
|
17
|
+
rpc :RepositoryExists, Gitaly::RepositoryExistsRequest, Gitaly::RepositoryExistsResponse
|
18
|
+
rpc :RepackIncremental, Gitaly::RepackIncrementalRequest, Gitaly::RepackIncrementalResponse
|
19
|
+
rpc :RepackFull, Gitaly::RepackFullRequest, Gitaly::RepackFullResponse
|
20
|
+
rpc :MidxRepack, Gitaly::MidxRepackRequest, Gitaly::MidxRepackResponse
|
21
|
+
rpc :GarbageCollect, Gitaly::GarbageCollectRequest, Gitaly::GarbageCollectResponse
|
22
|
+
rpc :WriteCommitGraph, Gitaly::WriteCommitGraphRequest, Gitaly::WriteCommitGraphResponse
|
23
|
+
rpc :RepositorySize, Gitaly::RepositorySizeRequest, Gitaly::RepositorySizeResponse
|
24
|
+
rpc :ApplyGitattributes, Gitaly::ApplyGitattributesRequest, Gitaly::ApplyGitattributesResponse
|
25
25
|
# FetchRemote fetches references from a remote repository into the local
|
26
26
|
# repository.
|
27
|
-
rpc :FetchRemote,
|
28
|
-
rpc :CreateRepository,
|
29
|
-
rpc :GetArchive,
|
30
|
-
rpc :HasLocalBranches,
|
27
|
+
rpc :FetchRemote, Gitaly::FetchRemoteRequest, Gitaly::FetchRemoteResponse
|
28
|
+
rpc :CreateRepository, Gitaly::CreateRepositoryRequest, Gitaly::CreateRepositoryResponse
|
29
|
+
rpc :GetArchive, Gitaly::GetArchiveRequest, stream(Gitaly::GetArchiveResponse)
|
30
|
+
rpc :HasLocalBranches, Gitaly::HasLocalBranchesRequest, Gitaly::HasLocalBranchesResponse
|
31
31
|
# FetchSourceBranch fetches a branch from a second (potentially remote)
|
32
32
|
# repository into the given repository.
|
33
|
-
rpc :FetchSourceBranch,
|
34
|
-
rpc :Fsck,
|
35
|
-
rpc :WriteRef,
|
36
|
-
rpc :FindMergeBase,
|
37
|
-
rpc :CreateFork,
|
38
|
-
rpc :
|
39
|
-
|
40
|
-
rpc :
|
41
|
-
|
42
|
-
|
33
|
+
rpc :FetchSourceBranch, Gitaly::FetchSourceBranchRequest, Gitaly::FetchSourceBranchResponse
|
34
|
+
rpc :Fsck, Gitaly::FsckRequest, Gitaly::FsckResponse
|
35
|
+
rpc :WriteRef, Gitaly::WriteRefRequest, Gitaly::WriteRefResponse
|
36
|
+
rpc :FindMergeBase, Gitaly::FindMergeBaseRequest, Gitaly::FindMergeBaseResponse
|
37
|
+
rpc :CreateFork, Gitaly::CreateForkRequest, Gitaly::CreateForkResponse
|
38
|
+
rpc :CreateRepositoryFromURL, Gitaly::CreateRepositoryFromURLRequest, Gitaly::CreateRepositoryFromURLResponse
|
39
|
+
# CreateBundle creates a bundle from all refs
|
40
|
+
rpc :CreateBundle, Gitaly::CreateBundleRequest, stream(Gitaly::CreateBundleResponse)
|
41
|
+
# CreateBundleFromRefList creates a bundle from a stream of ref patterns.
|
42
|
+
# When the bundle would be empty the FailedPrecondition error code is returned.
|
43
|
+
rpc :CreateBundleFromRefList, stream(Gitaly::CreateBundleFromRefListRequest), stream(Gitaly::CreateBundleFromRefListResponse)
|
44
|
+
# FetchBundle fetches references from a bundle into the local repository.
|
45
|
+
# Refs will be mirrored to the target repository with the refspec
|
46
|
+
# "+refs/*:refs/*" and refs that do not exist in the bundle will be removed.
|
47
|
+
rpc :FetchBundle, stream(Gitaly::FetchBundleRequest), Gitaly::FetchBundleResponse
|
48
|
+
rpc :CreateRepositoryFromBundle, stream(Gitaly::CreateRepositoryFromBundleRequest), Gitaly::CreateRepositoryFromBundleResponse
|
43
49
|
# GetConfig reads the target repository's gitconfig and streams its contents
|
44
50
|
# back. Returns a NotFound error in case no gitconfig was found.
|
45
|
-
rpc :GetConfig,
|
46
|
-
rpc :
|
47
|
-
rpc :
|
48
|
-
rpc :
|
49
|
-
rpc :
|
50
|
-
rpc :
|
51
|
-
rpc :
|
52
|
-
rpc :
|
53
|
-
rpc :
|
54
|
-
rpc :
|
55
|
-
rpc :
|
56
|
-
rpc :
|
57
|
-
rpc :
|
58
|
-
rpc :
|
59
|
-
rpc :
|
60
|
-
rpc :CloneFromPool, ::Gitaly::CloneFromPoolRequest, ::Gitaly::CloneFromPoolResponse
|
61
|
-
rpc :CloneFromPoolInternal, ::Gitaly::CloneFromPoolInternalRequest, ::Gitaly::CloneFromPoolInternalResponse
|
51
|
+
rpc :GetConfig, Gitaly::GetConfigRequest, stream(Gitaly::GetConfigResponse)
|
52
|
+
rpc :FindLicense, Gitaly::FindLicenseRequest, Gitaly::FindLicenseResponse
|
53
|
+
rpc :GetInfoAttributes, Gitaly::GetInfoAttributesRequest, stream(Gitaly::GetInfoAttributesResponse)
|
54
|
+
rpc :CalculateChecksum, Gitaly::CalculateChecksumRequest, Gitaly::CalculateChecksumResponse
|
55
|
+
rpc :Cleanup, Gitaly::CleanupRequest, Gitaly::CleanupResponse
|
56
|
+
rpc :GetSnapshot, Gitaly::GetSnapshotRequest, stream(Gitaly::GetSnapshotResponse)
|
57
|
+
rpc :CreateRepositoryFromSnapshot, Gitaly::CreateRepositoryFromSnapshotRequest, Gitaly::CreateRepositoryFromSnapshotResponse
|
58
|
+
rpc :GetRawChanges, Gitaly::GetRawChangesRequest, stream(Gitaly::GetRawChangesResponse)
|
59
|
+
rpc :SearchFilesByContent, Gitaly::SearchFilesByContentRequest, stream(Gitaly::SearchFilesByContentResponse)
|
60
|
+
rpc :SearchFilesByName, Gitaly::SearchFilesByNameRequest, stream(Gitaly::SearchFilesByNameResponse)
|
61
|
+
rpc :RestoreCustomHooks, stream(Gitaly::RestoreCustomHooksRequest), Gitaly::RestoreCustomHooksResponse
|
62
|
+
rpc :BackupCustomHooks, Gitaly::BackupCustomHooksRequest, stream(Gitaly::BackupCustomHooksResponse)
|
63
|
+
rpc :GetObjectDirectorySize, Gitaly::GetObjectDirectorySizeRequest, Gitaly::GetObjectDirectorySizeResponse
|
64
|
+
rpc :CloneFromPool, Gitaly::CloneFromPoolRequest, Gitaly::CloneFromPoolResponse
|
65
|
+
rpc :CloneFromPoolInternal, Gitaly::CloneFromPoolInternalRequest, Gitaly::CloneFromPoolInternalResponse
|
62
66
|
# RemoveRepository will move the repository to `+gitaly/tmp/<relative_path>_removed` and
|
63
67
|
# eventually remove it. This ensures that even on networked filesystems the
|
64
68
|
# data is actually removed even if there's someone still handling the data.
|
65
|
-
rpc :RemoveRepository,
|
66
|
-
rpc :RenameRepository,
|
67
|
-
rpc :ReplicateRepository,
|
68
|
-
rpc :OptimizeRepository,
|
69
|
+
rpc :RemoveRepository, Gitaly::RemoveRepositoryRequest, Gitaly::RemoveRepositoryResponse
|
70
|
+
rpc :RenameRepository, Gitaly::RenameRepositoryRequest, Gitaly::RenameRepositoryResponse
|
71
|
+
rpc :ReplicateRepository, Gitaly::ReplicateRepositoryRequest, Gitaly::ReplicateRepositoryResponse
|
72
|
+
rpc :OptimizeRepository, Gitaly::OptimizeRepositoryRequest, Gitaly::OptimizeRepositoryResponse
|
73
|
+
# SetFullPath writes the "gitlab.fullpath" configuration into the
|
74
|
+
# repository's gitconfig. This is mainly to help debugging purposes in case
|
75
|
+
# an admin inspects the repository's gitconfig such that he can easily see
|
76
|
+
# what the repository name is.
|
77
|
+
rpc :SetFullPath, Gitaly::SetFullPathRequest, Gitaly::SetFullPathResponse
|
69
78
|
end
|
70
79
|
|
71
80
|
Stub = Service.rpc_stub_class
|
@@ -8,14 +8,14 @@ module Gitaly
|
|
8
8
|
module ServerService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include
|
11
|
+
include GRPC::GenericService
|
12
12
|
|
13
13
|
self.marshal_class_method = :encode
|
14
14
|
self.unmarshal_class_method = :decode
|
15
15
|
self.service_name = 'gitaly.ServerService'
|
16
16
|
|
17
|
-
rpc :ServerInfo,
|
18
|
-
rpc :DiskStatistics,
|
17
|
+
rpc :ServerInfo, Gitaly::ServerInfoRequest, Gitaly::ServerInfoResponse
|
18
|
+
rpc :DiskStatistics, Gitaly::DiskStatisticsRequest, Gitaly::DiskStatisticsResponse
|
19
19
|
end
|
20
20
|
|
21
21
|
Stub = Service.rpc_stub_class
|
@@ -85,6 +85,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
85
85
|
value :PGP, 1
|
86
86
|
value :X509, 2
|
87
87
|
end
|
88
|
+
add_enum "gitaly.SortDirection" do
|
89
|
+
value :ASCENDING, 0
|
90
|
+
value :DESCENDING, 1
|
91
|
+
end
|
88
92
|
end
|
89
93
|
end
|
90
94
|
|
@@ -103,4 +107,5 @@ module Gitaly
|
|
103
107
|
GlobalOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GlobalOptions").msgclass
|
104
108
|
ObjectType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ObjectType").enummodule
|
105
109
|
SignatureType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SignatureType").enummodule
|
110
|
+
SortDirection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SortDirection").enummodule
|
106
111
|
end
|
@@ -24,6 +24,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
24
24
|
add_message "gitaly.PostUploadPackResponse" do
|
25
25
|
optional :data, :bytes, 1
|
26
26
|
end
|
27
|
+
add_message "gitaly.PostUploadPackWithSidechannelRequest" do
|
28
|
+
optional :repository, :message, 1, "gitaly.Repository"
|
29
|
+
repeated :git_config_options, :string, 2
|
30
|
+
optional :git_protocol, :string, 3
|
31
|
+
end
|
32
|
+
add_message "gitaly.PostUploadPackWithSidechannelResponse" do
|
33
|
+
end
|
27
34
|
add_message "gitaly.PostReceivePackRequest" do
|
28
35
|
optional :repository, :message, 1, "gitaly.Repository"
|
29
36
|
optional :data, :bytes, 2
|
@@ -44,6 +51,8 @@ module Gitaly
|
|
44
51
|
InfoRefsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.InfoRefsResponse").msgclass
|
45
52
|
PostUploadPackRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostUploadPackRequest").msgclass
|
46
53
|
PostUploadPackResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostUploadPackResponse").msgclass
|
54
|
+
PostUploadPackWithSidechannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostUploadPackWithSidechannelRequest").msgclass
|
55
|
+
PostUploadPackWithSidechannelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostUploadPackWithSidechannelResponse").msgclass
|
47
56
|
PostReceivePackRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostReceivePackRequest").msgclass
|
48
57
|
PostReceivePackResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostReceivePackResponse").msgclass
|
49
58
|
end
|
@@ -8,7 +8,7 @@ module Gitaly
|
|
8
8
|
module SmartHTTPService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include
|
11
|
+
include GRPC::GenericService
|
12
12
|
|
13
13
|
self.marshal_class_method = :encode
|
14
14
|
self.unmarshal_class_method = :decode
|
@@ -17,15 +17,17 @@ module Gitaly
|
|
17
17
|
# The response body for GET /info/refs?service=git-upload-pack
|
18
18
|
# Will be invoked when the user executes a `git fetch`, meaning the server
|
19
19
|
# will upload the packs to that user. The user doesn't upload new objects.
|
20
|
-
rpc :InfoRefsUploadPack,
|
20
|
+
rpc :InfoRefsUploadPack, Gitaly::InfoRefsRequest, stream(Gitaly::InfoRefsResponse)
|
21
21
|
# The response body for GET /info/refs?service=git-receive-pack
|
22
22
|
# Will be invoked when the user executes a `git push`, but only advertises
|
23
23
|
# references to the user.
|
24
|
-
rpc :InfoRefsReceivePack,
|
24
|
+
rpc :InfoRefsReceivePack, Gitaly::InfoRefsRequest, stream(Gitaly::InfoRefsResponse)
|
25
25
|
# Request and response body for POST /upload-pack
|
26
|
-
rpc :PostUploadPack, stream(
|
26
|
+
rpc :PostUploadPack, stream(Gitaly::PostUploadPackRequest), stream(Gitaly::PostUploadPackResponse)
|
27
|
+
# Request and response body for POST /upload-pack using sidechannel protocol
|
28
|
+
rpc :PostUploadPackWithSidechannel, Gitaly::PostUploadPackWithSidechannelRequest, Gitaly::PostUploadPackWithSidechannelResponse
|
27
29
|
# Request and response body for POST /receive-pack
|
28
|
-
rpc :PostReceivePack, stream(
|
30
|
+
rpc :PostReceivePack, stream(Gitaly::PostReceivePackRequest), stream(Gitaly::PostReceivePackResponse)
|
29
31
|
end
|
30
32
|
|
31
33
|
Stub = Service.rpc_stub_class
|