gitaly 14.6.0.pre.rc1 → 14.9.0.pre.rc1
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/commit_pb.rb +0 -11
- data/ruby/proto/gitaly/commit_services_pb.rb +2 -4
- data/ruby/proto/gitaly/errors_pb.rb +14 -0
- data/ruby/proto/gitaly/operations_pb.rb +8 -1
- data/ruby/proto/gitaly/operations_services_pb.rb +5 -1
- data/ruby/proto/gitaly/ref_pb.rb +13 -1
- data/ruby/proto/gitaly/ref_services_pb.rb +1 -0
- data/ruby/proto/gitaly/remote_pb.rb +2 -0
- data/ruby/proto/gitaly/repository-service_pb.rb +11 -2
- data/ruby/proto/gitaly/repository-service_services_pb.rb +24 -0
- data/ruby/proto/gitaly/server_pb.rb +9 -0
- data/ruby/proto/gitaly/server_services_pb.rb +3 -0
- data/ruby/proto/gitaly/shared_pb.rb +1 -0
- data/ruby/proto/gitaly/ssh_pb.rb +9 -0
- data/ruby/proto/gitaly/ssh_services_pb.rb +2 -0
- data/ruby/proto/gitaly/transaction_pb.rb +7 -0
- data/ruby/proto/gitaly/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8849bf7e6cf3aa84e34e76ae5a2206be954f362bd7256ce3dda4c95e84578974
|
4
|
+
data.tar.gz: 840f373c36368b6c396b28ebc351bca5092d0df3f59ebe0f5761c2686b8e3560
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f77e6b08169a56e2ee39246b35855a8c3150f5047893cb8b53b613c71206f1a7d2d66d35f31dbe113570cfd84e974d2eb949194c68157fde1d5b1e31b1eaf42b
|
7
|
+
data.tar.gz: 9be76a3e1763d86a878ad78483cb2d9388819cf3bafb0e325cfa4ad26549e8899318fa2f91a959f5337ccd0f77414c5fa9ae20261b7075699ab3cce71c48dabf
|
@@ -73,15 +73,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
73
73
|
value :TREE, 2
|
74
74
|
value :TAG, 3
|
75
75
|
end
|
76
|
-
add_message "gitaly.CommitsBetweenRequest" do
|
77
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
78
|
-
optional :from, :bytes, 2
|
79
|
-
optional :to, :bytes, 3
|
80
|
-
optional :pagination_params, :message, 4, "gitaly.PaginationParameter"
|
81
|
-
end
|
82
|
-
add_message "gitaly.CommitsBetweenResponse" do
|
83
|
-
repeated :commits, :message, 1, "gitaly.GitCommit"
|
84
|
-
end
|
85
76
|
add_message "gitaly.CountCommitsRequest" do
|
86
77
|
optional :repository, :message, 1, "gitaly.Repository"
|
87
78
|
optional :revision, :bytes, 2
|
@@ -317,8 +308,6 @@ module Gitaly
|
|
317
308
|
TreeEntryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.TreeEntryRequest").msgclass
|
318
309
|
TreeEntryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.TreeEntryResponse").msgclass
|
319
310
|
TreeEntryResponse::ObjectType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.TreeEntryResponse.ObjectType").enummodule
|
320
|
-
CommitsBetweenRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitsBetweenRequest").msgclass
|
321
|
-
CommitsBetweenResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitsBetweenResponse").msgclass
|
322
311
|
CountCommitsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CountCommitsRequest").msgclass
|
323
312
|
CountCommitsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CountCommitsResponse").msgclass
|
324
313
|
CountDivergingCommitsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CountDivergingCommitsRequest").msgclass
|
@@ -15,16 +15,14 @@ module Gitaly
|
|
15
15
|
self.service_name = 'gitaly.CommitService'
|
16
16
|
|
17
17
|
# ListCommits lists all commits reachable via a set of references by doing a
|
18
|
-
# graph walk. This deprecates FindAllCommits
|
19
|
-
# not yet supported)
|
20
|
-
# cause the RPC to fail.
|
18
|
+
# graph walk. This deprecates FindAllCommits and FindCommits (except Follow
|
19
|
+
# is not yet supported). Any unknown revisions will cause the RPC to fail.
|
21
20
|
rpc :ListCommits, ::Gitaly::ListCommitsRequest, stream(::Gitaly::ListCommitsResponse)
|
22
21
|
# ListAllCommits lists all commits present in the repository, including
|
23
22
|
# those not reachable by any reference.
|
24
23
|
rpc :ListAllCommits, ::Gitaly::ListAllCommitsRequest, stream(::Gitaly::ListAllCommitsResponse)
|
25
24
|
rpc :CommitIsAncestor, ::Gitaly::CommitIsAncestorRequest, ::Gitaly::CommitIsAncestorResponse
|
26
25
|
rpc :TreeEntry, ::Gitaly::TreeEntryRequest, stream(::Gitaly::TreeEntryResponse)
|
27
|
-
rpc :CommitsBetween, ::Gitaly::CommitsBetweenRequest, stream(::Gitaly::CommitsBetweenResponse)
|
28
26
|
rpc :CountCommits, ::Gitaly::CountCommitsRequest, ::Gitaly::CountCommitsResponse
|
29
27
|
rpc :CountDivergingCommits, ::Gitaly::CountDivergingCommitsRequest, ::Gitaly::CountDivergingCommitsResponse
|
30
28
|
rpc :GetTreeEntries, ::Gitaly::GetTreeEntriesRequest, stream(::Gitaly::GetTreeEntriesResponse)
|
@@ -11,9 +11,23 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
11
11
|
optional :user_id, :string, 3
|
12
12
|
optional :changes, :bytes, 4
|
13
13
|
end
|
14
|
+
add_message "gitaly.MergeConflictError" do
|
15
|
+
repeated :conflicting_files, :bytes, 1
|
16
|
+
end
|
17
|
+
add_message "gitaly.ReferenceUpdateError" do
|
18
|
+
optional :reference_name, :bytes, 1
|
19
|
+
optional :old_oid, :string, 2
|
20
|
+
optional :new_oid, :string, 3
|
21
|
+
end
|
22
|
+
add_message "gitaly.ResolveRevisionError" do
|
23
|
+
optional :revision, :bytes, 1
|
24
|
+
end
|
14
25
|
end
|
15
26
|
end
|
16
27
|
|
17
28
|
module Gitaly
|
18
29
|
AccessCheckError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.AccessCheckError").msgclass
|
30
|
+
MergeConflictError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MergeConflictError").msgclass
|
31
|
+
ReferenceUpdateError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceUpdateError").msgclass
|
32
|
+
ResolveRevisionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ResolveRevisionError").msgclass
|
19
33
|
end
|
@@ -75,6 +75,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
75
75
|
add_message "gitaly.UserMergeBranchError" do
|
76
76
|
oneof :error do
|
77
77
|
optional :access_check, :message, 1, "gitaly.AccessCheckError"
|
78
|
+
optional :reference_update, :message, 2, "gitaly.ReferenceUpdateError"
|
78
79
|
end
|
79
80
|
end
|
80
81
|
add_message "gitaly.UserMergeToRefRequest" do
|
@@ -227,7 +228,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
227
228
|
add_message "gitaly.UserSquashRequest" do
|
228
229
|
optional :repository, :message, 1, "gitaly.Repository"
|
229
230
|
optional :user, :message, 2, "gitaly.User"
|
230
|
-
optional :squash_id, :string, 3
|
231
231
|
optional :start_sha, :string, 5
|
232
232
|
optional :end_sha, :string, 6
|
233
233
|
optional :author, :message, 7, "gitaly.User"
|
@@ -238,6 +238,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
238
238
|
optional :squash_sha, :string, 1
|
239
239
|
optional :git_error, :string, 3
|
240
240
|
end
|
241
|
+
add_message "gitaly.UserSquashError" do
|
242
|
+
oneof :error do
|
243
|
+
optional :resolve_revision, :message, 1, "gitaly.ResolveRevisionError"
|
244
|
+
optional :rebase_conflict, :message, 2, "gitaly.MergeConflictError"
|
245
|
+
end
|
246
|
+
end
|
241
247
|
add_message "gitaly.UserApplyPatchRequest" do
|
242
248
|
oneof :user_apply_patch_request_payload do
|
243
249
|
optional :header, :message, 1, "gitaly.UserApplyPatchRequest.Header"
|
@@ -306,6 +312,7 @@ module Gitaly
|
|
306
312
|
UserRebaseConfirmableResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserRebaseConfirmableResponse").msgclass
|
307
313
|
UserSquashRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserSquashRequest").msgclass
|
308
314
|
UserSquashResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserSquashResponse").msgclass
|
315
|
+
UserSquashError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserSquashError").msgclass
|
309
316
|
UserApplyPatchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserApplyPatchRequest").msgclass
|
310
317
|
UserApplyPatchRequest::Header = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserApplyPatchRequest.Header").msgclass
|
311
318
|
UserApplyPatchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserApplyPatchResponse").msgclass
|
@@ -63,7 +63,11 @@ module Gitaly
|
|
63
63
|
rpc :UserRebaseConfirmable, stream(::Gitaly::UserRebaseConfirmableRequest), stream(::Gitaly::UserRebaseConfirmableResponse)
|
64
64
|
# UserRevert tries to perform a revert of a given commit onto a branch.
|
65
65
|
rpc :UserRevert, ::Gitaly::UserRevertRequest, ::Gitaly::UserRevertResponse
|
66
|
-
# UserSquash squashes a range of commits into a single commit.
|
66
|
+
# UserSquash squashes a range of commits into a single commit. If
|
67
|
+
# successful, it returns the object ID of the newly created squash commit.
|
68
|
+
# On error, it returns a gRPC error. Some specific errors will have an
|
69
|
+
# embedded UserSquashError such that clients can deduce what exactly has
|
70
|
+
# failed.
|
67
71
|
rpc :UserSquash, ::Gitaly::UserSquashRequest, ::Gitaly::UserSquashResponse
|
68
72
|
# UserApplyPatch applies patches to a given branch.
|
69
73
|
rpc :UserApplyPatch, stream(::Gitaly::UserApplyPatchRequest), ::Gitaly::UserApplyPatchResponse
|
data/ruby/proto/gitaly/ref_pb.rb
CHANGED
@@ -176,7 +176,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
176
176
|
end
|
177
177
|
add_message "gitaly.PackRefsRequest" do
|
178
178
|
optional :repository, :message, 1, "gitaly.Repository"
|
179
|
-
optional :all_refs, :bool, 2
|
180
179
|
end
|
181
180
|
add_message "gitaly.PackRefsResponse" do
|
182
181
|
end
|
@@ -184,6 +183,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
184
183
|
optional :repository, :message, 1, "gitaly.Repository"
|
185
184
|
repeated :patterns, :bytes, 2
|
186
185
|
optional :head, :bool, 3
|
186
|
+
optional :sort_by, :message, 4, "gitaly.ListRefsRequest.SortBy"
|
187
|
+
end
|
188
|
+
add_message "gitaly.ListRefsRequest.SortBy" do
|
189
|
+
optional :key, :enum, 1, "gitaly.ListRefsRequest.SortBy.Key"
|
190
|
+
optional :direction, :enum, 2, "gitaly.SortDirection"
|
191
|
+
end
|
192
|
+
add_enum "gitaly.ListRefsRequest.SortBy.Key" do
|
193
|
+
value :REFNAME, 0
|
194
|
+
value :CREATORDATE, 1
|
195
|
+
value :AUTHORDATE, 2
|
196
|
+
value :COMMITTERDATE, 3
|
187
197
|
end
|
188
198
|
add_message "gitaly.ListRefsResponse" do
|
189
199
|
repeated :references, :message, 1, "gitaly.ListRefsResponse.Reference"
|
@@ -251,6 +261,8 @@ module Gitaly
|
|
251
261
|
PackRefsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackRefsRequest").msgclass
|
252
262
|
PackRefsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackRefsResponse").msgclass
|
253
263
|
ListRefsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsRequest").msgclass
|
264
|
+
ListRefsRequest::SortBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsRequest.SortBy").msgclass
|
265
|
+
ListRefsRequest::SortBy::Key = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsRequest.SortBy.Key").enummodule
|
254
266
|
ListRefsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsResponse").msgclass
|
255
267
|
ListRefsResponse::Reference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsResponse.Reference").msgclass
|
256
268
|
FindRefsByOIDRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRefsByOIDRequest").msgclass
|
@@ -37,6 +37,7 @@ module Gitaly
|
|
37
37
|
# which has no signature, but its unsigned contents will still be returned.
|
38
38
|
rpc :GetTagSignatures, ::Gitaly::GetTagSignaturesRequest, stream(::Gitaly::GetTagSignaturesResponse)
|
39
39
|
rpc :GetTagMessages, ::Gitaly::GetTagMessagesRequest, stream(::Gitaly::GetTagMessagesResponse)
|
40
|
+
# PackRefs is deprecated in favor of OptimizeRepository.
|
40
41
|
rpc :PackRefs, ::Gitaly::PackRefsRequest, ::Gitaly::PackRefsResponse
|
41
42
|
# ListRefs returns a stream of all references in the repository. By default, pseudo-revisions like HEAD
|
42
43
|
# will not be returned by this RPC. Any symbolic references will be resolved to the object ID it is
|
@@ -18,6 +18,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
18
18
|
add_message "gitaly.UpdateRemoteMirrorRequest.Remote" do
|
19
19
|
optional :url, :string, 1
|
20
20
|
optional :http_authorization_header, :string, 2
|
21
|
+
optional :http_host, :string, 3
|
21
22
|
end
|
22
23
|
add_message "gitaly.UpdateRemoteMirrorResponse" do
|
23
24
|
repeated :divergent_refs, :bytes, 1
|
@@ -33,6 +34,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
33
34
|
optional :repository, :message, 1, "gitaly.Repository"
|
34
35
|
optional :remote_url, :string, 3
|
35
36
|
optional :http_authorization_header, :string, 4
|
37
|
+
optional :http_host, :string, 5
|
36
38
|
end
|
37
39
|
add_message "gitaly.FindRemoteRootRefResponse" do
|
38
40
|
optional :ref, :string, 1
|
@@ -153,6 +153,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
153
153
|
add_message "gitaly.CreateRepositoryFromURLRequest" do
|
154
154
|
optional :repository, :message, 1, "gitaly.Repository"
|
155
155
|
optional :url, :string, 2
|
156
|
+
optional :http_host, :string, 3
|
157
|
+
optional :http_authorization_header, :string, 4
|
156
158
|
end
|
157
159
|
add_message "gitaly.CreateRepositoryFromURLResponse" do
|
158
160
|
end
|
@@ -221,6 +223,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
221
223
|
optional :repository, :message, 1, "gitaly.Repository"
|
222
224
|
optional :http_url, :string, 2
|
223
225
|
optional :http_auth, :string, 3
|
226
|
+
optional :http_host, :string, 4
|
224
227
|
end
|
225
228
|
add_message "gitaly.CreateRepositoryFromSnapshotResponse" do
|
226
229
|
end
|
@@ -235,8 +238,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
235
238
|
add_message "gitaly.GetRawChangesResponse.RawChange" do
|
236
239
|
optional :blob_id, :string, 1
|
237
240
|
optional :size, :int64, 2
|
238
|
-
optional :new_path, :string, 3
|
239
|
-
optional :old_path, :string, 4
|
240
241
|
optional :operation, :enum, 5, "gitaly.GetRawChangesResponse.RawChange.Operation"
|
241
242
|
optional :raw_operation, :string, 6
|
242
243
|
optional :old_mode, :int32, 7
|
@@ -277,6 +278,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
277
278
|
optional :url, :string, 1
|
278
279
|
optional :http_authorization_header, :string, 3
|
279
280
|
repeated :mirror_refmaps, :string, 4
|
281
|
+
optional :http_host, :string, 5
|
280
282
|
end
|
281
283
|
add_message "gitaly.GetObjectDirectorySizeRequest" do
|
282
284
|
optional :repository, :message, 1, "gitaly.Repository"
|
@@ -306,6 +308,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
306
308
|
end
|
307
309
|
add_message "gitaly.OptimizeRepositoryResponse" do
|
308
310
|
end
|
311
|
+
add_message "gitaly.PruneUnreachableObjectsRequest" do
|
312
|
+
optional :repository, :message, 1, "gitaly.Repository"
|
313
|
+
end
|
314
|
+
add_message "gitaly.PruneUnreachableObjectsResponse" do
|
315
|
+
end
|
309
316
|
add_message "gitaly.SetFullPathRequest" do
|
310
317
|
optional :repository, :message, 1, "gitaly.Repository"
|
311
318
|
optional :path, :string, 2
|
@@ -399,6 +406,8 @@ module Gitaly
|
|
399
406
|
ReplicateRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReplicateRepositoryResponse").msgclass
|
400
407
|
OptimizeRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OptimizeRepositoryRequest").msgclass
|
401
408
|
OptimizeRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OptimizeRepositoryResponse").msgclass
|
409
|
+
PruneUnreachableObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PruneUnreachableObjectsRequest").msgclass
|
410
|
+
PruneUnreachableObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PruneUnreachableObjectsResponse").msgclass
|
402
411
|
SetFullPathRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetFullPathRequest").msgclass
|
403
412
|
SetFullPathResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetFullPathResponse").msgclass
|
404
413
|
end
|
@@ -15,10 +15,15 @@ module Gitaly
|
|
15
15
|
self.service_name = 'gitaly.RepositoryService'
|
16
16
|
|
17
17
|
rpc :RepositoryExists, ::Gitaly::RepositoryExistsRequest, ::Gitaly::RepositoryExistsResponse
|
18
|
+
# RepackIncremental is deprecated in favor of OptimizeRepository.
|
18
19
|
rpc :RepackIncremental, ::Gitaly::RepackIncrementalRequest, ::Gitaly::RepackIncrementalResponse
|
20
|
+
# RepackFull is deprecated in favor of OptimizeRepository.
|
19
21
|
rpc :RepackFull, ::Gitaly::RepackFullRequest, ::Gitaly::RepackFullResponse
|
22
|
+
# MidxRepack is deprecated in favor of OptimizeRepository.
|
20
23
|
rpc :MidxRepack, ::Gitaly::MidxRepackRequest, ::Gitaly::MidxRepackResponse
|
24
|
+
# GarbageCollect is deprecated in favor of OptimizeRepository.
|
21
25
|
rpc :GarbageCollect, ::Gitaly::GarbageCollectRequest, ::Gitaly::GarbageCollectResponse
|
26
|
+
# WriteCommitGraph is deprecated in favor of OptimizeRepository.
|
22
27
|
rpc :WriteCommitGraph, ::Gitaly::WriteCommitGraphRequest, ::Gitaly::WriteCommitGraphResponse
|
23
28
|
rpc :RepositorySize, ::Gitaly::RepositorySizeRequest, ::Gitaly::RepositorySizeResponse
|
24
29
|
rpc :ApplyGitattributes, ::Gitaly::ApplyGitattributesRequest, ::Gitaly::ApplyGitattributesResponse
|
@@ -52,6 +57,7 @@ module Gitaly
|
|
52
57
|
rpc :FindLicense, ::Gitaly::FindLicenseRequest, ::Gitaly::FindLicenseResponse
|
53
58
|
rpc :GetInfoAttributes, ::Gitaly::GetInfoAttributesRequest, stream(::Gitaly::GetInfoAttributesResponse)
|
54
59
|
rpc :CalculateChecksum, ::Gitaly::CalculateChecksumRequest, ::Gitaly::CalculateChecksumResponse
|
60
|
+
# Cleanup is deprecated in favor of OptimizeRepository.
|
55
61
|
rpc :Cleanup, ::Gitaly::CleanupRequest, ::Gitaly::CleanupResponse
|
56
62
|
rpc :GetSnapshot, ::Gitaly::GetSnapshotRequest, stream(::Gitaly::GetSnapshotResponse)
|
57
63
|
rpc :CreateRepositoryFromSnapshot, ::Gitaly::CreateRepositoryFromSnapshotRequest, ::Gitaly::CreateRepositoryFromSnapshotResponse
|
@@ -67,7 +73,25 @@ module Gitaly
|
|
67
73
|
rpc :RemoveRepository, ::Gitaly::RemoveRepositoryRequest, ::Gitaly::RemoveRepositoryResponse
|
68
74
|
rpc :RenameRepository, ::Gitaly::RenameRepositoryRequest, ::Gitaly::RenameRepositoryResponse
|
69
75
|
rpc :ReplicateRepository, ::Gitaly::ReplicateRepositoryRequest, ::Gitaly::ReplicateRepositoryResponse
|
76
|
+
# OptimizeRepository performs all maintenance tasks in a repository to keep
|
77
|
+
# it in an efficient state. It cleans up stale data, repacks objects,
|
78
|
+
# updates auxiliary caches like commit-graphs and packs references. The
|
79
|
+
# optimizations performed are based on heuristics and will adapt to the
|
80
|
+
# repository's size. This RPC call is designed as a black-box such that
|
81
|
+
# Gitaly has complete control of the on-disk state of repositories.
|
70
82
|
rpc :OptimizeRepository, ::Gitaly::OptimizeRepositoryRequest, ::Gitaly::OptimizeRepositoryResponse
|
83
|
+
# PruneUnreachableObjects will prune all objects which aren't reachable from
|
84
|
+
# the repository's current set of references. Because pruning can only
|
85
|
+
# happen for objects which aren't packed, you are required to first run
|
86
|
+
# OptimizeRepository to explode any unreachable objects into loose objects.
|
87
|
+
#
|
88
|
+
# Furthermore, this RPC call has a grace period of 30 minutes: any
|
89
|
+
# unreachable loose objects must not have been accessed or modified in the
|
90
|
+
# last 30 minutes. This is a hard requirement to avoid repository corruption.
|
91
|
+
#
|
92
|
+
# To make proper use of this RPC you thus need to call OptimizeRepository,
|
93
|
+
# wait 30 minutes, and then call PruneUnreachableObjects.
|
94
|
+
rpc :PruneUnreachableObjects, ::Gitaly::PruneUnreachableObjectsRequest, ::Gitaly::PruneUnreachableObjectsResponse
|
71
95
|
# SetFullPath writes the "gitlab.fullpath" configuration into the
|
72
96
|
# repository's gitconfig. This is mainly to help debugging purposes in case
|
73
97
|
# an admin inspects the repository's gitconfig such that he can easily see
|
@@ -31,6 +31,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
31
31
|
optional :available, :int64, 2
|
32
32
|
optional :used, :int64, 3
|
33
33
|
end
|
34
|
+
add_message "gitaly.ClockSyncedRequest" do
|
35
|
+
optional :ntp_host, :string, 1
|
36
|
+
optional :drift_threshold_millis, :int64, 2
|
37
|
+
end
|
38
|
+
add_message "gitaly.ClockSyncedResponse" do
|
39
|
+
optional :synced, :bool, 1
|
40
|
+
end
|
34
41
|
end
|
35
42
|
end
|
36
43
|
|
@@ -41,4 +48,6 @@ module Gitaly
|
|
41
48
|
DiskStatisticsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiskStatisticsRequest").msgclass
|
42
49
|
DiskStatisticsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiskStatisticsResponse").msgclass
|
43
50
|
DiskStatisticsResponse::StorageStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiskStatisticsResponse.StorageStatus").msgclass
|
51
|
+
ClockSyncedRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ClockSyncedRequest").msgclass
|
52
|
+
ClockSyncedResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ClockSyncedResponse").msgclass
|
44
53
|
end
|
@@ -16,6 +16,9 @@ module Gitaly
|
|
16
16
|
|
17
17
|
rpc :ServerInfo, ::Gitaly::ServerInfoRequest, ::Gitaly::ServerInfoResponse
|
18
18
|
rpc :DiskStatistics, ::Gitaly::DiskStatisticsRequest, ::Gitaly::DiskStatisticsResponse
|
19
|
+
# ClockSynced checks if machine clock is synced
|
20
|
+
# (the offset is less that the one passed in the request).
|
21
|
+
rpc :ClockSynced, ::Gitaly::ClockSyncedRequest, ::Gitaly::ClockSyncedResponse
|
19
22
|
end
|
20
23
|
|
21
24
|
Stub = Service.rpc_stub_class
|
data/ruby/proto/gitaly/ssh_pb.rb
CHANGED
@@ -18,6 +18,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
18
18
|
optional :stderr, :bytes, 2
|
19
19
|
optional :exit_status, :message, 3, "gitaly.ExitStatus"
|
20
20
|
end
|
21
|
+
add_message "gitaly.SSHUploadPackWithSidechannelRequest" do
|
22
|
+
optional :repository, :message, 1, "gitaly.Repository"
|
23
|
+
repeated :git_config_options, :string, 2
|
24
|
+
optional :git_protocol, :string, 3
|
25
|
+
end
|
26
|
+
add_message "gitaly.SSHUploadPackWithSidechannelResponse" do
|
27
|
+
end
|
21
28
|
add_message "gitaly.SSHReceivePackRequest" do
|
22
29
|
optional :repository, :message, 1, "gitaly.Repository"
|
23
30
|
optional :stdin, :bytes, 2
|
@@ -47,6 +54,8 @@ end
|
|
47
54
|
module Gitaly
|
48
55
|
SSHUploadPackRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHUploadPackRequest").msgclass
|
49
56
|
SSHUploadPackResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHUploadPackResponse").msgclass
|
57
|
+
SSHUploadPackWithSidechannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHUploadPackWithSidechannelRequest").msgclass
|
58
|
+
SSHUploadPackWithSidechannelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHUploadPackWithSidechannelResponse").msgclass
|
50
59
|
SSHReceivePackRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHReceivePackRequest").msgclass
|
51
60
|
SSHReceivePackResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHReceivePackResponse").msgclass
|
52
61
|
SSHUploadArchiveRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHUploadArchiveRequest").msgclass
|
@@ -16,6 +16,8 @@ module Gitaly
|
|
16
16
|
|
17
17
|
# To forward 'git upload-pack' to Gitaly for SSH sessions
|
18
18
|
rpc :SSHUploadPack, stream(::Gitaly::SSHUploadPackRequest), stream(::Gitaly::SSHUploadPackResponse)
|
19
|
+
# To forward 'git upload-pack' to Gitaly for SSH sessions, via sidechannels
|
20
|
+
rpc :SSHUploadPackWithSidechannel, ::Gitaly::SSHUploadPackWithSidechannelRequest, ::Gitaly::SSHUploadPackWithSidechannelResponse
|
19
21
|
# To forward 'git receive-pack' to Gitaly for SSH sessions
|
20
22
|
rpc :SSHReceivePack, stream(::Gitaly::SSHReceivePackRequest), stream(::Gitaly::SSHReceivePackResponse)
|
21
23
|
# To forward 'git upload-archive' to Gitaly for SSH sessions
|
@@ -12,6 +12,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
12
12
|
optional :transaction_id, :uint64, 2
|
13
13
|
optional :node, :string, 3
|
14
14
|
optional :reference_updates_hash, :bytes, 4
|
15
|
+
optional :phase, :enum, 5, "gitaly.VoteTransactionRequest.Phase"
|
16
|
+
end
|
17
|
+
add_enum "gitaly.VoteTransactionRequest.Phase" do
|
18
|
+
value :UNKNOWN_PHASE, 0
|
19
|
+
value :PREPARED_PHASE, 1
|
20
|
+
value :COMMITTED_PHASE, 2
|
15
21
|
end
|
16
22
|
add_message "gitaly.VoteTransactionResponse" do
|
17
23
|
optional :state, :enum, 1, "gitaly.VoteTransactionResponse.TransactionState"
|
@@ -32,6 +38,7 @@ end
|
|
32
38
|
|
33
39
|
module Gitaly
|
34
40
|
VoteTransactionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.VoteTransactionRequest").msgclass
|
41
|
+
VoteTransactionRequest::Phase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.VoteTransactionRequest.Phase").enummodule
|
35
42
|
VoteTransactionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.VoteTransactionResponse").msgclass
|
36
43
|
VoteTransactionResponse::TransactionState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.VoteTransactionResponse.TransactionState").enummodule
|
37
44
|
StopTransactionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.StopTransactionRequest").msgclass
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitaly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.
|
4
|
+
version: 14.9.0.pre.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jacob Vosmaer
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|
@@ -79,7 +79,7 @@ homepage: https://gitlab.com/gitlab-org/gitaly
|
|
79
79
|
licenses:
|
80
80
|
- MIT
|
81
81
|
metadata: {}
|
82
|
-
post_install_message:
|
82
|
+
post_install_message:
|
83
83
|
rdoc_options: []
|
84
84
|
require_paths:
|
85
85
|
- ruby/proto
|
@@ -94,8 +94,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: 1.3.1
|
96
96
|
requirements: []
|
97
|
-
rubygems_version: 3.
|
98
|
-
signing_key:
|
97
|
+
rubygems_version: 3.3.5
|
98
|
+
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: Auto-generated gRPC client for gitaly
|
101
101
|
test_files: []
|