gitaly 14.9.0.pre.rc5 → 15.0.0.pre.rc3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/ruby/proto/gitaly/blob_services_pb.rb +3 -0
  3. data/ruby/proto/gitaly/cleanup_services_pb.rb +2 -0
  4. data/ruby/proto/gitaly/commit_pb.rb +18 -1
  5. data/ruby/proto/gitaly/commit_services_pb.rb +26 -0
  6. data/ruby/proto/gitaly/conflicts_pb.rb +1 -1
  7. data/ruby/proto/gitaly/conflicts_services_pb.rb +4 -0
  8. data/ruby/proto/gitaly/diff_services_pb.rb +5 -0
  9. data/ruby/proto/gitaly/errors_pb.rb +27 -0
  10. data/ruby/proto/gitaly/hook_pb.rb +0 -11
  11. data/ruby/proto/gitaly/hook_services_pb.rb +7 -2
  12. data/ruby/proto/gitaly/internal_pb.rb +2 -0
  13. data/ruby/proto/gitaly/lint_pb.rb +1 -0
  14. data/ruby/proto/gitaly/namespace_services_pb.rb +7 -0
  15. data/ruby/proto/gitaly/objectpool_services_pb.rb +10 -0
  16. data/ruby/proto/gitaly/operations_pb.rb +12 -2
  17. data/ruby/proto/gitaly/operations_services_pb.rb +4 -0
  18. data/ruby/proto/gitaly/praefect_pb.rb +19 -0
  19. data/ruby/proto/gitaly/praefect_services_pb.rb +6 -0
  20. data/ruby/proto/gitaly/ref_pb.rb +1 -1
  21. data/ruby/proto/gitaly/ref_services_pb.rb +12 -0
  22. data/ruby/proto/gitaly/remote_services_pb.rb +3 -0
  23. data/ruby/proto/gitaly/{repository-service_pb.rb → repository_pb.rb} +2 -2
  24. data/ruby/proto/gitaly/{repository-service_services_pb.rb → repository_services_pb.rb} +28 -2
  25. data/ruby/proto/gitaly/server_services_pb.rb +3 -0
  26. data/ruby/proto/gitaly/smarthttp_services_pb.rb +2 -0
  27. data/ruby/proto/gitaly/ssh_services_pb.rb +1 -0
  28. data/ruby/proto/gitaly/transaction_services_pb.rb +26 -0
  29. data/ruby/proto/gitaly/version.rb +1 -1
  30. data/ruby/proto/gitaly/wiki_services_pb.rb +7 -0
  31. data/ruby/proto/gitaly.rb +1 -1
  32. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd0a503006fd395d25e1ee90b6ebbaa33e1af22be68794d76a75bf82c09301ea
4
- data.tar.gz: cc7b5fcca2ff6ad443ade46f3cace9e21f0f32647e107e95cccf8e41d911aea1
3
+ metadata.gz: e7e733116309c6a8bfd647c20c776333d44e8ce757dbfd41bb5a3241a612d0a8
4
+ data.tar.gz: 8c09558f5ebf6136b564808cab3a45c988957bb2faa7b8516022e9f3839f7e1e
5
5
  SHA512:
6
- metadata.gz: 8500e598167820def001038a3c8d58be5f66ed1583c3b11e1b745bb4bd207eea6c9b535bc87d4e115abd28928b0d2148b3b08cec56f3822cac8233cfbedae1d5
7
- data.tar.gz: 1c4a13636563edc210ac8ab4e5dc1b92041420f276bf227627ecac922534ff073e738cfaecd69f64c3377a5228332751a475dac864f859caa0547cada5ab82bd
6
+ metadata.gz: 3129a09a6ab17110afdaf41dc91e0df04a0a4596e241eb3a962ac4fc90b64e2bbdcd8a8ebcecbe06d821832744b4576ad4624fa0152c5d64479217e5198e3306
7
+ data.tar.gz: 77823d9ccc24ffa9f628d31bf25c987e2af37f9826b7234568fac9f6ee166015c4131096a98f6c2ea80ef584f72138b6741a9a787636c9e4f9b412e29cc6eefb
@@ -6,6 +6,8 @@ require 'blob_pb'
6
6
 
7
7
  module Gitaly
8
8
  module BlobService
9
+ # BlobService is a service which provides RPCs to retrieve Git blobs from a
10
+ # specific repository.
9
11
  class Service
10
12
 
11
13
  include ::GRPC::GenericService
@@ -18,6 +20,7 @@ module Gitaly
18
20
  # ID. We use a stream to return a chunked arbitrarily large binary
19
21
  # response
20
22
  rpc :GetBlob, ::Gitaly::GetBlobRequest, stream(::Gitaly::GetBlobResponse)
23
+ # This comment is left unintentionally blank.
21
24
  rpc :GetBlobs, ::Gitaly::GetBlobsRequest, stream(::Gitaly::GetBlobsResponse)
22
25
  # ListBlobs will list all blobs reachable from a given set of revisions by
23
26
  # doing a graph walk. It is not valid to pass revisions which do not resolve
@@ -6,6 +6,7 @@ require 'cleanup_pb'
6
6
 
7
7
  module Gitaly
8
8
  module CleanupService
9
+ # CleanupService provides RPCs to clean up a repository's contents.
9
10
  class Service
10
11
 
11
12
  include ::GRPC::GenericService
@@ -14,6 +15,7 @@ module Gitaly
14
15
  self.unmarshal_class_method = :decode
15
16
  self.service_name = 'gitaly.CleanupService'
16
17
 
18
+ # This comment is left unintentionally blank.
17
19
  rpc :ApplyBfgObjectMapStream, stream(::Gitaly::ApplyBfgObjectMapStreamRequest), stream(::Gitaly::ApplyBfgObjectMapStreamResponse)
18
20
  end
19
21
 
@@ -1,9 +1,9 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: commit.proto
3
3
 
4
+ require 'google/protobuf/timestamp_pb'
4
5
  require 'lint_pb'
5
6
  require 'shared_pb'
6
- require 'google/protobuf/timestamp_pb'
7
7
  require 'google/protobuf'
8
8
 
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -20,6 +20,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
20
20
  optional :after, :message, 8, "google.protobuf.Timestamp"
21
21
  optional :before, :message, 9, "google.protobuf.Timestamp"
22
22
  optional :author, :bytes, 10
23
+ optional :ignore_case, :bool, 12
24
+ repeated :commit_message_patterns, :bytes, 13
23
25
  end
24
26
  add_enum "gitaly.ListCommitsRequest.Order" do
25
27
  value :NONE, 0
@@ -218,6 +220,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
218
220
  optional :repository, :message, 1, "gitaly.Repository"
219
221
  optional :revision, :bytes, 2
220
222
  optional :path, :bytes, 3
223
+ optional :range, :bytes, 4
221
224
  end
222
225
  add_message "gitaly.RawBlameResponse" do
223
226
  optional :data, :bytes, 1
@@ -292,6 +295,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
292
295
  optional :commit_id, :string, 1
293
296
  optional :message, :bytes, 2
294
297
  end
298
+ add_message "gitaly.CheckObjectsExistRequest" do
299
+ optional :repository, :message, 1, "gitaly.Repository"
300
+ repeated :revisions, :bytes, 2
301
+ end
302
+ add_message "gitaly.CheckObjectsExistResponse" do
303
+ repeated :revisions, :message, 1, "gitaly.CheckObjectsExistResponse.RevisionExistence"
304
+ end
305
+ add_message "gitaly.CheckObjectsExistResponse.RevisionExistence" do
306
+ optional :name, :bytes, 1
307
+ optional :exists, :bool, 2
308
+ end
295
309
  end
296
310
  end
297
311
 
@@ -352,4 +366,7 @@ module Gitaly
352
366
  GetCommitSignaturesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetCommitSignaturesResponse").msgclass
353
367
  GetCommitMessagesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetCommitMessagesRequest").msgclass
354
368
  GetCommitMessagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetCommitMessagesResponse").msgclass
369
+ CheckObjectsExistRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CheckObjectsExistRequest").msgclass
370
+ CheckObjectsExistResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CheckObjectsExistResponse").msgclass
371
+ CheckObjectsExistResponse::RevisionExistence = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CheckObjectsExistResponse.RevisionExistence").msgclass
355
372
  end
@@ -6,6 +6,8 @@ require 'commit_pb'
6
6
 
7
7
  module Gitaly
8
8
  module CommitService
9
+ # CommitService is a service which provides RPCs that interact with Git
10
+ # commits.
9
11
  class Service
10
12
 
11
13
  include ::GRPC::GenericService
@@ -21,27 +23,51 @@ module Gitaly
21
23
  # ListAllCommits lists all commits present in the repository, including
22
24
  # those not reachable by any reference.
23
25
  rpc :ListAllCommits, ::Gitaly::ListAllCommitsRequest, stream(::Gitaly::ListAllCommitsResponse)
26
+ # This comment is left unintentionally blank.
24
27
  rpc :CommitIsAncestor, ::Gitaly::CommitIsAncestorRequest, ::Gitaly::CommitIsAncestorResponse
28
+ # This comment is left unintentionally blank.
25
29
  rpc :TreeEntry, ::Gitaly::TreeEntryRequest, stream(::Gitaly::TreeEntryResponse)
30
+ # This comment is left unintentionally blank.
26
31
  rpc :CountCommits, ::Gitaly::CountCommitsRequest, ::Gitaly::CountCommitsResponse
32
+ # This comment is left unintentionally blank.
27
33
  rpc :CountDivergingCommits, ::Gitaly::CountDivergingCommitsRequest, ::Gitaly::CountDivergingCommitsResponse
34
+ # This comment is left unintentionally blank.
28
35
  rpc :GetTreeEntries, ::Gitaly::GetTreeEntriesRequest, stream(::Gitaly::GetTreeEntriesResponse)
36
+ # This comment is left unintentionally blank.
29
37
  rpc :ListFiles, ::Gitaly::ListFilesRequest, stream(::Gitaly::ListFilesResponse)
38
+ # This comment is left unintentionally blank.
30
39
  rpc :FindCommit, ::Gitaly::FindCommitRequest, ::Gitaly::FindCommitResponse
40
+ # This comment is left unintentionally blank.
31
41
  rpc :CommitStats, ::Gitaly::CommitStatsRequest, ::Gitaly::CommitStatsResponse
32
42
  # Use a stream to paginate the result set
33
43
  rpc :FindAllCommits, ::Gitaly::FindAllCommitsRequest, stream(::Gitaly::FindAllCommitsResponse)
44
+ # This comment is left unintentionally blank.
34
45
  rpc :FindCommits, ::Gitaly::FindCommitsRequest, stream(::Gitaly::FindCommitsResponse)
46
+ # This comment is left unintentionally blank.
35
47
  rpc :CommitLanguages, ::Gitaly::CommitLanguagesRequest, ::Gitaly::CommitLanguagesResponse
48
+ # This comment is left unintentionally blank.
36
49
  rpc :RawBlame, ::Gitaly::RawBlameRequest, stream(::Gitaly::RawBlameResponse)
50
+ # This comment is left unintentionally blank.
37
51
  rpc :LastCommitForPath, ::Gitaly::LastCommitForPathRequest, ::Gitaly::LastCommitForPathResponse
52
+ # This comment is left unintentionally blank.
38
53
  rpc :ListLastCommitsForTree, ::Gitaly::ListLastCommitsForTreeRequest, stream(::Gitaly::ListLastCommitsForTreeResponse)
54
+ # This comment is left unintentionally blank.
39
55
  rpc :CommitsByMessage, ::Gitaly::CommitsByMessageRequest, stream(::Gitaly::CommitsByMessageResponse)
56
+ # This comment is left unintentionally blank.
40
57
  rpc :ListCommitsByOid, ::Gitaly::ListCommitsByOidRequest, stream(::Gitaly::ListCommitsByOidResponse)
58
+ # This comment is left unintentionally blank.
41
59
  rpc :ListCommitsByRefName, ::Gitaly::ListCommitsByRefNameRequest, stream(::Gitaly::ListCommitsByRefNameResponse)
60
+ # This comment is left unintentionally blank.
42
61
  rpc :FilterShasWithSignatures, stream(::Gitaly::FilterShasWithSignaturesRequest), stream(::Gitaly::FilterShasWithSignaturesResponse)
62
+ # This comment is left unintentionally blank.
43
63
  rpc :GetCommitSignatures, ::Gitaly::GetCommitSignaturesRequest, stream(::Gitaly::GetCommitSignaturesResponse)
64
+ # This comment is left unintentionally blank.
44
65
  rpc :GetCommitMessages, ::Gitaly::GetCommitMessagesRequest, stream(::Gitaly::GetCommitMessagesResponse)
66
+ # CheckObjectsExist will check for the existence of revisions against a
67
+ # repository. It returns two sets of data. An array containing the revisions
68
+ # fromm the input that it found on the repository, and an array that contains all
69
+ # revisions from the input it did not find on the repository.
70
+ rpc :CheckObjectsExist, stream(::Gitaly::CheckObjectsExistRequest), stream(::Gitaly::CheckObjectsExistResponse)
45
71
  end
46
72
 
47
73
  Stub = Service.rpc_stub_class
@@ -1,9 +1,9 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: conflicts.proto
3
3
 
4
+ require 'google/protobuf/timestamp_pb'
4
5
  require 'lint_pb'
5
6
  require 'shared_pb'
6
- require 'google/protobuf/timestamp_pb'
7
7
  require 'google/protobuf'
8
8
 
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -6,6 +6,8 @@ require 'conflicts_pb'
6
6
 
7
7
  module Gitaly
8
8
  module ConflictsService
9
+ # ConflictsService is a service which provides RPCs to interact with conflicts
10
+ # resulting from a merge.
9
11
  class Service
10
12
 
11
13
  include ::GRPC::GenericService
@@ -14,6 +16,8 @@ module Gitaly
14
16
  self.unmarshal_class_method = :decode
15
17
  self.service_name = 'gitaly.ConflictsService'
16
18
 
19
+ # ListConflictFiles returns all conflicting files which result from a merge
20
+ # of two specified commit objects.
17
21
  rpc :ListConflictFiles, ::Gitaly::ListConflictFilesRequest, stream(::Gitaly::ListConflictFilesResponse)
18
22
  # ResolveConflicts tries to resolve a conflicting merge with a set of
19
23
  # user-provided merge resolutions. If resolving the conflict succeeds, the
@@ -6,6 +6,8 @@ require 'diff_pb'
6
6
 
7
7
  module Gitaly
8
8
  module DiffService
9
+ # DiffService is a service which provides RPCs to inspect differences
10
+ # introduced between a set of commits.
9
11
  class Service
10
12
 
11
13
  include ::GRPC::GenericService
@@ -18,8 +20,11 @@ module Gitaly
18
20
  rpc :CommitDiff, ::Gitaly::CommitDiffRequest, stream(::Gitaly::CommitDiffResponse)
19
21
  # Return a stream so we can divide the response in chunks of deltas
20
22
  rpc :CommitDelta, ::Gitaly::CommitDeltaRequest, stream(::Gitaly::CommitDeltaResponse)
23
+ # This comment is left unintentionally blank.
21
24
  rpc :RawDiff, ::Gitaly::RawDiffRequest, stream(::Gitaly::RawDiffResponse)
25
+ # This comment is left unintentionally blank.
22
26
  rpc :RawPatch, ::Gitaly::RawPatchRequest, stream(::Gitaly::RawPatchResponse)
27
+ # This comment is left unintentionally blank.
23
28
  rpc :DiffStats, ::Gitaly::DiffStatsRequest, stream(::Gitaly::DiffStatsResponse)
24
29
  # Return a list of files changed along with the status of each file
25
30
  rpc :FindChangedPaths, ::Gitaly::FindChangedPathsRequest, stream(::Gitaly::FindChangedPathsResponse)
@@ -1,6 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: errors.proto
3
3
 
4
+ require 'google/protobuf/duration_pb'
4
5
  require 'google/protobuf'
5
6
 
6
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -11,6 +12,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
11
12
  optional :user_id, :string, 3
12
13
  optional :changes, :bytes, 4
13
14
  end
15
+ add_message "gitaly.NotAncestorError" do
16
+ optional :parent_revision, :bytes, 1
17
+ optional :child_revision, :bytes, 2
18
+ end
19
+ add_message "gitaly.ChangesAlreadyAppliedError" do
20
+ end
14
21
  add_message "gitaly.MergeConflictError" do
15
22
  repeated :conflicting_files, :bytes, 1
16
23
  end
@@ -22,12 +29,32 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
22
29
  add_message "gitaly.ResolveRevisionError" do
23
30
  optional :revision, :bytes, 1
24
31
  end
32
+ add_message "gitaly.LimitError" do
33
+ optional :error_message, :string, 1
34
+ optional :retry_after, :message, 2, "google.protobuf.Duration"
35
+ end
36
+ add_message "gitaly.CustomHookError" do
37
+ optional :stdout, :bytes, 1
38
+ optional :stderr, :bytes, 2
39
+ optional :hook_type, :enum, 3, "gitaly.CustomHookError.HookType"
40
+ end
41
+ add_enum "gitaly.CustomHookError.HookType" do
42
+ value :HOOK_TYPE_UNSPECIFIED, 0
43
+ value :HOOK_TYPE_PRERECEIVE, 1
44
+ value :HOOK_TYPE_UPDATE, 2
45
+ value :HOOK_TYPE_POSTRECEIVE, 3
46
+ end
25
47
  end
26
48
  end
27
49
 
28
50
  module Gitaly
29
51
  AccessCheckError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.AccessCheckError").msgclass
52
+ NotAncestorError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.NotAncestorError").msgclass
53
+ ChangesAlreadyAppliedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ChangesAlreadyAppliedError").msgclass
30
54
  MergeConflictError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MergeConflictError").msgclass
31
55
  ReferenceUpdateError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceUpdateError").msgclass
32
56
  ResolveRevisionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ResolveRevisionError").msgclass
57
+ LimitError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LimitError").msgclass
58
+ CustomHookError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CustomHookError").msgclass
59
+ CustomHookError::HookType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CustomHookError.HookType").enummodule
33
60
  end
@@ -57,15 +57,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
57
57
  optional :stderr, :bytes, 2
58
58
  optional :exit_status, :message, 3, "gitaly.ExitStatus"
59
59
  end
60
- add_message "gitaly.PackObjectsHookRequest" do
61
- optional :repository, :message, 1, "gitaly.Repository"
62
- repeated :args, :string, 2
63
- optional :stdin, :bytes, 3
64
- end
65
- add_message "gitaly.PackObjectsHookResponse" do
66
- optional :stdout, :bytes, 1
67
- optional :stderr, :bytes, 2
68
- end
69
60
  add_message "gitaly.PackObjectsHookWithSidechannelRequest" do
70
61
  optional :repository, :message, 1, "gitaly.Repository"
71
62
  repeated :args, :string, 2
@@ -85,8 +76,6 @@ module Gitaly
85
76
  ReferenceTransactionHookRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceTransactionHookRequest").msgclass
86
77
  ReferenceTransactionHookRequest::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceTransactionHookRequest.State").enummodule
87
78
  ReferenceTransactionHookResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceTransactionHookResponse").msgclass
88
- PackObjectsHookRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackObjectsHookRequest").msgclass
89
- PackObjectsHookResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackObjectsHookResponse").msgclass
90
79
  PackObjectsHookWithSidechannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackObjectsHookWithSidechannelRequest").msgclass
91
80
  PackObjectsHookWithSidechannelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackObjectsHookWithSidechannelResponse").msgclass
92
81
  end
@@ -6,6 +6,9 @@ require 'hook_pb'
6
6
 
7
7
  module Gitaly
8
8
  module HookService
9
+ # HookService is a service which provides the implementation of a subset of
10
+ # Git hooks. These are typically invoked via the `gitaly-hooks` binary to
11
+ # ensure that the actual hook logic is executed in the context of the server.
9
12
  class Service
10
13
 
11
14
  include ::GRPC::GenericService
@@ -14,12 +17,14 @@ module Gitaly
14
17
  self.unmarshal_class_method = :decode
15
18
  self.service_name = 'gitaly.HookService'
16
19
 
20
+ # This comment is left unintentionally blank.
17
21
  rpc :PreReceiveHook, stream(::Gitaly::PreReceiveHookRequest), stream(::Gitaly::PreReceiveHookResponse)
22
+ # This comment is left unintentionally blank.
18
23
  rpc :PostReceiveHook, stream(::Gitaly::PostReceiveHookRequest), stream(::Gitaly::PostReceiveHookResponse)
24
+ # This comment is left unintentionally blank.
19
25
  rpc :UpdateHook, ::Gitaly::UpdateHookRequest, stream(::Gitaly::UpdateHookResponse)
26
+ # This comment is left unintentionally blank.
20
27
  rpc :ReferenceTransactionHook, stream(::Gitaly::ReferenceTransactionHookRequest), stream(::Gitaly::ReferenceTransactionHookResponse)
21
- # PackObjectsHook has been replaced by PackObjectsHookWithSidechannel. Remove in 15.0.
22
- rpc :PackObjectsHook, stream(::Gitaly::PackObjectsHookRequest), stream(::Gitaly::PackObjectsHookResponse)
23
28
  # PackObjectsHookWithSidechannel is an optimized version of PackObjectsHook that uses
24
29
  # a unix socket side channel.
25
30
  rpc :PackObjectsHookWithSidechannel, ::Gitaly::PackObjectsHookWithSidechannelRequest, ::Gitaly::PackObjectsHookWithSidechannelResponse
@@ -1,6 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: internal.proto
3
3
 
4
+ require 'google/protobuf/timestamp_pb'
4
5
  require 'lint_pb'
5
6
  require 'google/protobuf'
6
7
 
@@ -11,6 +12,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
11
12
  end
12
13
  add_message "gitaly.WalkReposResponse" do
13
14
  optional :relative_path, :string, 1
15
+ optional :modification_time, :message, 2, "google.protobuf.Timestamp"
14
16
  end
15
17
  end
16
18
  end
@@ -14,6 +14,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
14
14
  value :UNKNOWN, 0
15
15
  value :MUTATOR, 1
16
16
  value :ACCESSOR, 2
17
+ value :MAINTENANCE, 3
17
18
  end
18
19
  add_enum "gitaly.OperationMsg.Scope" do
19
20
  value :REPOSITORY, 0
@@ -6,6 +6,9 @@ require 'namespace_pb'
6
6
 
7
7
  module Gitaly
8
8
  module NamespaceService
9
+ # NamespaceService is a service which provides RPCs to manage namespaces of a
10
+ # storage. Namespaces had been used before Gitaly migrated to hashed storages
11
+ # and shouldn't be used nowadays anymore.
9
12
  class Service
10
13
 
11
14
  include ::GRPC::GenericService
@@ -14,9 +17,13 @@ module Gitaly
14
17
  self.unmarshal_class_method = :decode
15
18
  self.service_name = 'gitaly.NamespaceService'
16
19
 
20
+ # This comment is left unintentionally blank.
17
21
  rpc :AddNamespace, ::Gitaly::AddNamespaceRequest, ::Gitaly::AddNamespaceResponse
22
+ # This comment is left unintentionally blank.
18
23
  rpc :RemoveNamespace, ::Gitaly::RemoveNamespaceRequest, ::Gitaly::RemoveNamespaceResponse
24
+ # This comment is left unintentionally blank.
19
25
  rpc :RenameNamespace, ::Gitaly::RenameNamespaceRequest, ::Gitaly::RenameNamespaceResponse
26
+ # This comment is left unintentionally blank.
20
27
  rpc :NamespaceExists, ::Gitaly::NamespaceExistsRequest, ::Gitaly::NamespaceExistsResponse
21
28
  end
22
29
 
@@ -6,6 +6,10 @@ require 'objectpool_pb'
6
6
 
7
7
  module Gitaly
8
8
  module ObjectPoolService
9
+ # ObjectPoolService is a service containing RPCs to manipulate object pools.
10
+ # An object pool is a separate repository that can be linked to from multiple
11
+ # satellite repositories in order to deduplicate common objects between them.
12
+ # This is mostly used in the contexet of repository forks.
9
13
  class Service
10
14
 
11
15
  include ::GRPC::GenericService
@@ -14,13 +18,19 @@ module Gitaly
14
18
  self.unmarshal_class_method = :decode
15
19
  self.service_name = 'gitaly.ObjectPoolService'
16
20
 
21
+ # This comment is left unintentionally blank.
17
22
  rpc :CreateObjectPool, ::Gitaly::CreateObjectPoolRequest, ::Gitaly::CreateObjectPoolResponse
23
+ # This comment is left unintentionally blank.
18
24
  rpc :DeleteObjectPool, ::Gitaly::DeleteObjectPoolRequest, ::Gitaly::DeleteObjectPoolResponse
19
25
  # Repositories are assumed to be stored on the same disk
20
26
  rpc :LinkRepositoryToObjectPool, ::Gitaly::LinkRepositoryToObjectPoolRequest, ::Gitaly::LinkRepositoryToObjectPoolResponse
27
+ # This comment is left unintentionally blank.
21
28
  rpc :ReduplicateRepository, ::Gitaly::ReduplicateRepositoryRequest, ::Gitaly::ReduplicateRepositoryResponse
29
+ # This comment is left unintentionally blank.
22
30
  rpc :DisconnectGitAlternates, ::Gitaly::DisconnectGitAlternatesRequest, ::Gitaly::DisconnectGitAlternatesResponse
31
+ # This comment is left unintentionally blank.
23
32
  rpc :FetchIntoObjectPool, ::Gitaly::FetchIntoObjectPoolRequest, ::Gitaly::FetchIntoObjectPoolResponse
33
+ # This comment is left unintentionally blank.
24
34
  rpc :GetObjectPool, ::Gitaly::GetObjectPoolRequest, ::Gitaly::GetObjectPoolResponse
25
35
  end
26
36
 
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: operations.proto
3
3
 
4
- require 'lint_pb'
5
- require 'shared_pb'
6
4
  require 'errors_pb'
7
5
  require 'google/protobuf/timestamp_pb'
6
+ require 'lint_pb'
7
+ require 'shared_pb'
8
8
  require 'google/protobuf'
9
9
 
10
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -76,6 +76,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
76
76
  oneof :error do
77
77
  optional :access_check, :message, 1, "gitaly.AccessCheckError"
78
78
  optional :reference_update, :message, 2, "gitaly.ReferenceUpdateError"
79
+ optional :custom_hook, :message, 3, "gitaly.CustomHookError"
79
80
  end
80
81
  end
81
82
  add_message "gitaly.UserMergeToRefRequest" do
@@ -131,6 +132,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
131
132
  value :EMPTY, 1
132
133
  value :CONFLICT, 2
133
134
  end
135
+ add_message "gitaly.UserCherryPickError" do
136
+ oneof :error do
137
+ optional :cherry_pick_conflict, :message, 1, "gitaly.MergeConflictError"
138
+ optional :target_branch_diverged, :message, 2, "gitaly.NotAncestorError"
139
+ optional :changes_already_applied, :message, 3, "gitaly.ChangesAlreadyAppliedError"
140
+ optional :access_check, :message, 4, "gitaly.AccessCheckError"
141
+ end
142
+ end
134
143
  add_message "gitaly.UserRevertRequest" do
135
144
  optional :repository, :message, 1, "gitaly.Repository"
136
145
  optional :user, :message, 2, "gitaly.User"
@@ -304,6 +313,7 @@ module Gitaly
304
313
  UserCherryPickRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCherryPickRequest").msgclass
305
314
  UserCherryPickResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCherryPickResponse").msgclass
306
315
  UserCherryPickResponse::CreateTreeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCherryPickResponse.CreateTreeError").enummodule
316
+ UserCherryPickError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCherryPickError").msgclass
307
317
  UserRevertRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserRevertRequest").msgclass
308
318
  UserRevertResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserRevertResponse").msgclass
309
319
  UserRevertResponse::CreateTreeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserRevertResponse.CreateTreeError").enummodule
@@ -18,11 +18,15 @@ module Gitaly
18
18
  self.unmarshal_class_method = :decode
19
19
  self.service_name = 'gitaly.OperationService'
20
20
 
21
+ # This comment is left unintentionally blank.
21
22
  rpc :UserCreateBranch, ::Gitaly::UserCreateBranchRequest, ::Gitaly::UserCreateBranchResponse
23
+ # This comment is left unintentionally blank.
22
24
  rpc :UserUpdateBranch, ::Gitaly::UserUpdateBranchRequest, ::Gitaly::UserUpdateBranchResponse
25
+ # This comment is left unintentionally blank.
23
26
  rpc :UserDeleteBranch, ::Gitaly::UserDeleteBranchRequest, ::Gitaly::UserDeleteBranchResponse
24
27
  # UserCreateTag creates a new tag.
25
28
  rpc :UserCreateTag, ::Gitaly::UserCreateTagRequest, ::Gitaly::UserCreateTagResponse
29
+ # This comment is left unintentionally blank.
26
30
  rpc :UserDeleteTag, ::Gitaly::UserDeleteTagRequest, ::Gitaly::UserDeleteTagResponse
27
31
  # UserMergeRef creates a merge commit and updates target_ref to point to that
28
32
  # new commit. The first parent of the merge commit (the main line) is taken
@@ -1,12 +1,27 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: praefect.proto
3
3
 
4
+ require 'google/protobuf/timestamp_pb'
4
5
  require 'lint_pb'
5
6
  require 'shared_pb'
6
7
  require 'google/protobuf'
7
8
 
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("praefect.proto", :syntax => :proto3) do
11
+ add_message "gitaly.MarkUnverifiedRequest" do
12
+ oneof :selector do
13
+ optional :repository_id, :int64, 1
14
+ optional :virtual_storage, :string, 2
15
+ optional :storage, :message, 3, "gitaly.MarkUnverifiedRequest.Storage"
16
+ end
17
+ end
18
+ add_message "gitaly.MarkUnverifiedRequest.Storage" do
19
+ optional :virtual_storage, :string, 1
20
+ optional :storage, :string, 2
21
+ end
22
+ add_message "gitaly.MarkUnverifiedResponse" do
23
+ optional :replicas_marked, :int64, 1
24
+ end
10
25
  add_message "gitaly.GetRepositoryMetadataRequest" do
11
26
  oneof :query do
12
27
  optional :repository_id, :int64, 1
@@ -32,6 +47,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
32
47
  optional :generation, :int64, 4
33
48
  optional :healthy, :bool, 5
34
49
  optional :valid_primary, :bool, 6
50
+ optional :verified_at, :message, 7, "google.protobuf.Timestamp"
35
51
  end
36
52
  add_message "gitaly.SetReplicationFactorRequest" do
37
53
  optional :virtual_storage, :string, 1
@@ -83,6 +99,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
83
99
  end
84
100
 
85
101
  module Gitaly
102
+ MarkUnverifiedRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MarkUnverifiedRequest").msgclass
103
+ MarkUnverifiedRequest::Storage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MarkUnverifiedRequest.Storage").msgclass
104
+ MarkUnverifiedResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MarkUnverifiedResponse").msgclass
86
105
  GetRepositoryMetadataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetRepositoryMetadataRequest").msgclass
87
106
  GetRepositoryMetadataRequest::Path = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetRepositoryMetadataRequest.Path").msgclass
88
107
  GetRepositoryMetadataResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetRepositoryMetadataResponse").msgclass
@@ -6,6 +6,8 @@ require 'praefect_pb'
6
6
 
7
7
  module Gitaly
8
8
  module PraefectInfoService
9
+ # PraefectInfoService is a service which provides RPCs to query and modify
10
+ # Praefect-specific parameters.
9
11
  class Service
10
12
 
11
13
  include ::GRPC::GenericService
@@ -14,6 +16,7 @@ module Gitaly
14
16
  self.unmarshal_class_method = :decode
15
17
  self.service_name = 'gitaly.PraefectInfoService'
16
18
 
19
+ # This comment is left unintentionally blank.
17
20
  rpc :RepositoryReplicas, ::Gitaly::RepositoryReplicasRequest, ::Gitaly::RepositoryReplicasResponse
18
21
  # DatalossCheck checks for unavailable repositories.
19
22
  rpc :DatalossCheck, ::Gitaly::DatalossCheckRequest, ::Gitaly::DatalossCheckResponse
@@ -21,6 +24,9 @@ module Gitaly
21
24
  # This causes the current version of the repository on the authoritative storage to be considered the
22
25
  # latest and overwrite any other version on the virtual storage.
23
26
  rpc :SetAuthoritativeStorage, ::Gitaly::SetAuthoritativeStorageRequest, ::Gitaly::SetAuthoritativeStorageResponse
27
+ # MarkUnverified marks replicas as unverified. This will trigger verification as Praefect's metadata
28
+ # verifier prioritizes unverified replicas.
29
+ rpc :MarkUnverified, ::Gitaly::MarkUnverifiedRequest, ::Gitaly::MarkUnverifiedResponse
24
30
  # SetReplicationFactor assigns or unassigns host nodes from the repository to meet the desired replication factor.
25
31
  # SetReplicationFactor returns an error when trying to set a replication factor that exceeds the storage node count
26
32
  # in the virtual storage. An error is also returned when trying to set a replication factor below one. The primary node
@@ -1,9 +1,9 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: ref.proto
3
3
 
4
+ require 'google/protobuf/timestamp_pb'
4
5
  require 'lint_pb'
5
6
  require 'shared_pb'
6
- require 'google/protobuf/timestamp_pb'
7
7
  require 'google/protobuf'
8
8
 
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -6,6 +6,7 @@ require 'ref_pb'
6
6
 
7
7
  module Gitaly
8
8
  module RefService
9
+ # RefService is a service that provides RPCs to list and modify Git references.
9
10
  class Service
10
11
 
11
12
  include ::GRPC::GenericService
@@ -14,28 +15,39 @@ module Gitaly
14
15
  self.unmarshal_class_method = :decode
15
16
  self.service_name = 'gitaly.RefService'
16
17
 
18
+ # This comment is left unintentionally blank.
17
19
  rpc :FindDefaultBranchName, ::Gitaly::FindDefaultBranchNameRequest, ::Gitaly::FindDefaultBranchNameResponse
20
+ # This comment is left unintentionally blank.
18
21
  rpc :FindAllBranchNames, ::Gitaly::FindAllBranchNamesRequest, stream(::Gitaly::FindAllBranchNamesResponse)
22
+ # This comment is left unintentionally blank.
19
23
  rpc :FindAllTagNames, ::Gitaly::FindAllTagNamesRequest, stream(::Gitaly::FindAllTagNamesResponse)
20
24
  # Return a stream so we can divide the response in chunks of branches
21
25
  rpc :FindLocalBranches, ::Gitaly::FindLocalBranchesRequest, stream(::Gitaly::FindLocalBranchesResponse)
26
+ # This comment is left unintentionally blank.
22
27
  rpc :FindAllBranches, ::Gitaly::FindAllBranchesRequest, stream(::Gitaly::FindAllBranchesResponse)
23
28
  # Returns a stream of tags repository has.
24
29
  rpc :FindAllTags, ::Gitaly::FindAllTagsRequest, stream(::Gitaly::FindAllTagsResponse)
30
+ # This comment is left unintentionally blank.
25
31
  rpc :FindTag, ::Gitaly::FindTagRequest, ::Gitaly::FindTagResponse
32
+ # This comment is left unintentionally blank.
26
33
  rpc :FindAllRemoteBranches, ::Gitaly::FindAllRemoteBranchesRequest, stream(::Gitaly::FindAllRemoteBranchesResponse)
34
+ # This comment is left unintentionally blank.
27
35
  rpc :RefExists, ::Gitaly::RefExistsRequest, ::Gitaly::RefExistsResponse
28
36
  # FindBranch finds a branch by its unqualified name (like "master") and
29
37
  # returns the commit it currently points to.
30
38
  rpc :FindBranch, ::Gitaly::FindBranchRequest, ::Gitaly::FindBranchResponse
39
+ # This comment is left unintentionally blank.
31
40
  rpc :DeleteRefs, ::Gitaly::DeleteRefsRequest, ::Gitaly::DeleteRefsResponse
41
+ # This comment is left unintentionally blank.
32
42
  rpc :ListBranchNamesContainingCommit, ::Gitaly::ListBranchNamesContainingCommitRequest, stream(::Gitaly::ListBranchNamesContainingCommitResponse)
43
+ # This comment is left unintentionally blank.
33
44
  rpc :ListTagNamesContainingCommit, ::Gitaly::ListTagNamesContainingCommitRequest, stream(::Gitaly::ListTagNamesContainingCommitResponse)
34
45
  # GetTagSignatures returns signatures for annotated tags resolved from a set of revisions. Revisions
35
46
  # which don't resolve to an annotated tag are silently discarded. Revisions which cannot be resolved
36
47
  # result in an error. Tags which are annotated but not signed will return a TagSignature response
37
48
  # which has no signature, but its unsigned contents will still be returned.
38
49
  rpc :GetTagSignatures, ::Gitaly::GetTagSignaturesRequest, stream(::Gitaly::GetTagSignaturesResponse)
50
+ # This comment is left unintentionally blank.
39
51
  rpc :GetTagMessages, ::Gitaly::GetTagMessagesRequest, stream(::Gitaly::GetTagMessagesResponse)
40
52
  # PackRefs is deprecated in favor of OptimizeRepository.
41
53
  rpc :PackRefs, ::Gitaly::PackRefsRequest, ::Gitaly::PackRefsResponse
@@ -6,6 +6,8 @@ require 'remote_pb'
6
6
 
7
7
  module Gitaly
8
8
  module RemoteService
9
+ # RemoteService is a service providing RPCs to interact with a remote
10
+ # repository that is hosted on another Git server.
9
11
  class Service
10
12
 
11
13
  include ::GRPC::GenericService
@@ -20,6 +22,7 @@ module Gitaly
20
22
  # deleted from the mirror. UpdateRemoteMirror updates all tags. Branches are updated if they match
21
23
  # the patterns specified in the requests.
22
24
  rpc :UpdateRemoteMirror, stream(::Gitaly::UpdateRemoteMirrorRequest), ::Gitaly::UpdateRemoteMirrorResponse
25
+ # This comment is left unintentionally blank.
23
26
  rpc :FindRemoteRepository, ::Gitaly::FindRemoteRepositoryRequest, ::Gitaly::FindRemoteRepositoryResponse
24
27
  # FindRemoteRootRef tries to find the root reference of a remote
25
28
  # repository. The root reference is the default branch as pointed to by
@@ -1,12 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: repository-service.proto
2
+ # source: repository.proto
3
3
 
4
4
  require 'lint_pb'
5
5
  require 'shared_pb'
6
6
  require 'google/protobuf'
7
7
 
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("repository-service.proto", :syntax => :proto3) do
9
+ add_file("repository.proto", :syntax => :proto3) do
10
10
  add_message "gitaly.RepositoryExistsRequest" do
11
11
  optional :repository, :message, 1, "gitaly.Repository"
12
12
  end
@@ -1,11 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: repository-service.proto for package 'gitaly'
2
+ # Source: repository.proto for package 'gitaly'
3
3
 
4
4
  require 'grpc'
5
- require 'repository-service_pb'
5
+ require 'repository_pb'
6
6
 
7
7
  module Gitaly
8
8
  module RepositoryService
9
+ # RepositoryService is a service providing RPCs accessing repositories as a whole.
9
10
  class Service
10
11
 
11
12
  include ::GRPC::GenericService
@@ -14,6 +15,7 @@ module Gitaly
14
15
  self.unmarshal_class_method = :decode
15
16
  self.service_name = 'gitaly.RepositoryService'
16
17
 
18
+ # This comment is left unintentionally blank.
17
19
  rpc :RepositoryExists, ::Gitaly::RepositoryExistsRequest, ::Gitaly::RepositoryExistsResponse
18
20
  # RepackIncremental is deprecated in favor of OptimizeRepository.
19
21
  rpc :RepackIncremental, ::Gitaly::RepackIncrementalRequest, ::Gitaly::RepackIncrementalResponse
@@ -25,21 +27,31 @@ module Gitaly
25
27
  rpc :GarbageCollect, ::Gitaly::GarbageCollectRequest, ::Gitaly::GarbageCollectResponse
26
28
  # WriteCommitGraph is deprecated in favor of OptimizeRepository.
27
29
  rpc :WriteCommitGraph, ::Gitaly::WriteCommitGraphRequest, ::Gitaly::WriteCommitGraphResponse
30
+ # This comment is left unintentionally blank.
28
31
  rpc :RepositorySize, ::Gitaly::RepositorySizeRequest, ::Gitaly::RepositorySizeResponse
32
+ # This comment is left unintentionally blank.
29
33
  rpc :ApplyGitattributes, ::Gitaly::ApplyGitattributesRequest, ::Gitaly::ApplyGitattributesResponse
30
34
  # FetchRemote fetches references from a remote repository into the local
31
35
  # repository.
32
36
  rpc :FetchRemote, ::Gitaly::FetchRemoteRequest, ::Gitaly::FetchRemoteResponse
37
+ # This comment is left unintentionally blank.
33
38
  rpc :CreateRepository, ::Gitaly::CreateRepositoryRequest, ::Gitaly::CreateRepositoryResponse
39
+ # This comment is left unintentionally blank.
34
40
  rpc :GetArchive, ::Gitaly::GetArchiveRequest, stream(::Gitaly::GetArchiveResponse)
41
+ # This comment is left unintentionally blank.
35
42
  rpc :HasLocalBranches, ::Gitaly::HasLocalBranchesRequest, ::Gitaly::HasLocalBranchesResponse
36
43
  # FetchSourceBranch fetches a branch from a second (potentially remote)
37
44
  # repository into the given repository.
38
45
  rpc :FetchSourceBranch, ::Gitaly::FetchSourceBranchRequest, ::Gitaly::FetchSourceBranchResponse
46
+ # This comment is left unintentionally blank.
39
47
  rpc :Fsck, ::Gitaly::FsckRequest, ::Gitaly::FsckResponse
48
+ # This comment is left unintentionally blank.
40
49
  rpc :WriteRef, ::Gitaly::WriteRefRequest, ::Gitaly::WriteRefResponse
50
+ # This comment is left unintentionally blank.
41
51
  rpc :FindMergeBase, ::Gitaly::FindMergeBaseRequest, ::Gitaly::FindMergeBaseResponse
52
+ # This comment is left unintentionally blank.
42
53
  rpc :CreateFork, ::Gitaly::CreateForkRequest, ::Gitaly::CreateForkResponse
54
+ # This comment is left unintentionally blank.
43
55
  rpc :CreateRepositoryFromURL, ::Gitaly::CreateRepositoryFromURLRequest, ::Gitaly::CreateRepositoryFromURLResponse
44
56
  # CreateBundle creates a bundle from all refs
45
57
  rpc :CreateBundle, ::Gitaly::CreateBundleRequest, stream(::Gitaly::CreateBundleResponse)
@@ -50,28 +62,42 @@ module Gitaly
50
62
  # Refs will be mirrored to the target repository with the refspec
51
63
  # "+refs/*:refs/*" and refs that do not exist in the bundle will be removed.
52
64
  rpc :FetchBundle, stream(::Gitaly::FetchBundleRequest), ::Gitaly::FetchBundleResponse
65
+ # This comment is left unintentionally blank.
53
66
  rpc :CreateRepositoryFromBundle, stream(::Gitaly::CreateRepositoryFromBundleRequest), ::Gitaly::CreateRepositoryFromBundleResponse
54
67
  # GetConfig reads the target repository's gitconfig and streams its contents
55
68
  # back. Returns a NotFound error in case no gitconfig was found.
56
69
  rpc :GetConfig, ::Gitaly::GetConfigRequest, stream(::Gitaly::GetConfigResponse)
70
+ # This comment is left unintentionally blank.
57
71
  rpc :FindLicense, ::Gitaly::FindLicenseRequest, ::Gitaly::FindLicenseResponse
72
+ # This comment is left unintentionally blank.
58
73
  rpc :GetInfoAttributes, ::Gitaly::GetInfoAttributesRequest, stream(::Gitaly::GetInfoAttributesResponse)
74
+ # This comment is left unintentionally blank.
59
75
  rpc :CalculateChecksum, ::Gitaly::CalculateChecksumRequest, ::Gitaly::CalculateChecksumResponse
60
76
  # Cleanup is deprecated in favor of OptimizeRepository.
61
77
  rpc :Cleanup, ::Gitaly::CleanupRequest, ::Gitaly::CleanupResponse
78
+ # This comment is left unintentionally blank.
62
79
  rpc :GetSnapshot, ::Gitaly::GetSnapshotRequest, stream(::Gitaly::GetSnapshotResponse)
80
+ # This comment is left unintentionally blank.
63
81
  rpc :CreateRepositoryFromSnapshot, ::Gitaly::CreateRepositoryFromSnapshotRequest, ::Gitaly::CreateRepositoryFromSnapshotResponse
82
+ # This comment is left unintentionally blank.
64
83
  rpc :GetRawChanges, ::Gitaly::GetRawChangesRequest, stream(::Gitaly::GetRawChangesResponse)
84
+ # This comment is left unintentionally blank.
65
85
  rpc :SearchFilesByContent, ::Gitaly::SearchFilesByContentRequest, stream(::Gitaly::SearchFilesByContentResponse)
86
+ # This comment is left unintentionally blank.
66
87
  rpc :SearchFilesByName, ::Gitaly::SearchFilesByNameRequest, stream(::Gitaly::SearchFilesByNameResponse)
88
+ # This comment is left unintentionally blank.
67
89
  rpc :RestoreCustomHooks, stream(::Gitaly::RestoreCustomHooksRequest), ::Gitaly::RestoreCustomHooksResponse
90
+ # This comment is left unintentionally blank.
68
91
  rpc :BackupCustomHooks, ::Gitaly::BackupCustomHooksRequest, stream(::Gitaly::BackupCustomHooksResponse)
92
+ # This comment is left unintentionally blank.
69
93
  rpc :GetObjectDirectorySize, ::Gitaly::GetObjectDirectorySizeRequest, ::Gitaly::GetObjectDirectorySizeResponse
70
94
  # RemoveRepository will move the repository to `+gitaly/tmp/<relative_path>_removed` and
71
95
  # eventually remove it. This ensures that even on networked filesystems the
72
96
  # data is actually removed even if there's someone still handling the data.
73
97
  rpc :RemoveRepository, ::Gitaly::RemoveRepositoryRequest, ::Gitaly::RemoveRepositoryResponse
98
+ # This comment is left unintentionally blank.
74
99
  rpc :RenameRepository, ::Gitaly::RenameRepositoryRequest, ::Gitaly::RenameRepositoryResponse
100
+ # This comment is left unintentionally blank.
75
101
  rpc :ReplicateRepository, ::Gitaly::ReplicateRepositoryRequest, ::Gitaly::ReplicateRepositoryResponse
76
102
  # OptimizeRepository performs all maintenance tasks in a repository to keep
77
103
  # it in an efficient state. It cleans up stale data, repacks objects,
@@ -6,6 +6,7 @@ require 'server_pb'
6
6
 
7
7
  module Gitaly
8
8
  module ServerService
9
+ # ServerService is a service that provides information about a Gitaly server.
9
10
  class Service
10
11
 
11
12
  include ::GRPC::GenericService
@@ -14,7 +15,9 @@ module Gitaly
14
15
  self.unmarshal_class_method = :decode
15
16
  self.service_name = 'gitaly.ServerService'
16
17
 
18
+ # This comment is left unintentionally blank.
17
19
  rpc :ServerInfo, ::Gitaly::ServerInfoRequest, ::Gitaly::ServerInfoResponse
20
+ # This comment is left unintentionally blank.
18
21
  rpc :DiskStatistics, ::Gitaly::DiskStatisticsRequest, ::Gitaly::DiskStatisticsResponse
19
22
  # ClockSynced checks if machine clock is synced
20
23
  # (the offset is less that the one passed in the request).
@@ -6,6 +6,8 @@ require 'smarthttp_pb'
6
6
 
7
7
  module Gitaly
8
8
  module SmartHTTPService
9
+ # SmartHTTPService is a service that provides RPCs required for HTTP-based Git
10
+ # clones via the smart HTTP protocol.
9
11
  class Service
10
12
 
11
13
  include ::GRPC::GenericService
@@ -6,6 +6,7 @@ require 'ssh_pb'
6
6
 
7
7
  module Gitaly
8
8
  module SSHService
9
+ # SSHService is a service that provides RPCs required for SSH-based Git clones.
9
10
  class Service
10
11
 
11
12
  include ::GRPC::GenericService
@@ -6,6 +6,11 @@ require 'transaction_pb'
6
6
 
7
7
  module Gitaly
8
8
  module RefTransaction
9
+ # RefTransaction is a service which provides RPCs to interact with reference
10
+ # transactions. Reference transactions are used in the context of Gitaly
11
+ # Cluster to ensure that all nodes part of a single transaction perform the
12
+ # same change: given a set of changes, the changes are hashed and the hash is
13
+ # then voted on.
9
14
  class Service
10
15
 
11
16
  include ::GRPC::GenericService
@@ -14,7 +19,28 @@ module Gitaly
14
19
  self.unmarshal_class_method = :decode
15
20
  self.service_name = 'gitaly.RefTransaction'
16
21
 
22
+ # VoteTransaction casts a vote on a transaction to establish whether the
23
+ # node is doing the same change as all the other nodes part of the
24
+ # transaction. This RPC blocks until quorum has been reached, which may be
25
+ # _before_ all nodes have cast a vote.
26
+ #
27
+ # This RPC may return one of the following error codes:
28
+ #
29
+ # - `NotFound` in case the transaction could not be found.
30
+ # - `Canceled` in case the transaction has been canceled before quorum was
31
+ # reached.
17
32
  rpc :VoteTransaction, ::Gitaly::VoteTransactionRequest, ::Gitaly::VoteTransactionResponse
33
+ # StopTransaction gracefully stops a transaction. This RPC can be used if
34
+ # only a subset of nodes executes specific code which may cause the
35
+ # transaction to fail. One such example is Git hooks, which only execute on
36
+ # the primary Gitaly noded. Other nodes which vote on this transaction will
37
+ # get a response with the `STOP` state being set.
38
+ #
39
+ # This RPC may return one of the following error codes:
40
+ #
41
+ # - `NotFound` in case the transaction could not be found.
42
+ # - `Canceled` in case the transaction has been canceled before quorum was
43
+ # reached.
18
44
  rpc :StopTransaction, ::Gitaly::StopTransactionRequest, ::Gitaly::StopTransactionResponse
19
45
  end
20
46
 
@@ -2,5 +2,5 @@
2
2
  # (https://gitlab.com/gitlab-org/release-tools/), and should not be
3
3
  # modified.
4
4
  module Gitaly
5
- VERSION = '14.9.0-rc5'
5
+ VERSION = '15.0.0-rc3'
6
6
  end
@@ -6,6 +6,9 @@ require 'wiki_pb'
6
6
 
7
7
  module Gitaly
8
8
  module WikiService
9
+ # WikiService is a service that provides Wiki-related functionality. This
10
+ # service is deprecated and should not be used anymore. Instead, all
11
+ # functionality to implement Wikis should use Git-based RPCS.
9
12
  class Service
10
13
 
11
14
  include ::GRPC::GenericService
@@ -14,11 +17,15 @@ module Gitaly
14
17
  self.unmarshal_class_method = :decode
15
18
  self.service_name = 'gitaly.WikiService'
16
19
 
20
+ # This comment is left unintentionally blank.
17
21
  rpc :WikiWritePage, stream(::Gitaly::WikiWritePageRequest), ::Gitaly::WikiWritePageResponse
22
+ # This comment is left unintentionally blank.
18
23
  rpc :WikiUpdatePage, stream(::Gitaly::WikiUpdatePageRequest), ::Gitaly::WikiUpdatePageResponse
19
24
  # WikiFindPage returns a stream because the page's raw_data field may be arbitrarily large.
20
25
  rpc :WikiFindPage, ::Gitaly::WikiFindPageRequest, stream(::Gitaly::WikiFindPageResponse)
26
+ # This comment is left unintentionally blank.
21
27
  rpc :WikiGetAllPages, ::Gitaly::WikiGetAllPagesRequest, stream(::Gitaly::WikiGetAllPagesResponse)
28
+ # This comment is left unintentionally blank.
22
29
  rpc :WikiListPages, ::Gitaly::WikiListPagesRequest, stream(::Gitaly::WikiListPagesResponse)
23
30
  end
24
31
 
data/ruby/proto/gitaly.rb CHANGED
@@ -29,7 +29,7 @@ require 'gitaly/ref_services_pb'
29
29
 
30
30
  require 'gitaly/remote_services_pb'
31
31
 
32
- require 'gitaly/repository-service_services_pb'
32
+ require 'gitaly/repository_services_pb'
33
33
 
34
34
  require 'gitaly/server_services_pb'
35
35
 
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.9.0.pre.rc5
4
+ version: 15.0.0.pre.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Vosmaer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-16 00:00:00.000000000 Z
11
+ date: 2022-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -61,8 +61,8 @@ files:
61
61
  - ruby/proto/gitaly/ref_services_pb.rb
62
62
  - ruby/proto/gitaly/remote_pb.rb
63
63
  - ruby/proto/gitaly/remote_services_pb.rb
64
- - ruby/proto/gitaly/repository-service_pb.rb
65
- - ruby/proto/gitaly/repository-service_services_pb.rb
64
+ - ruby/proto/gitaly/repository_pb.rb
65
+ - ruby/proto/gitaly/repository_services_pb.rb
66
66
  - ruby/proto/gitaly/server_pb.rb
67
67
  - ruby/proto/gitaly/server_services_pb.rb
68
68
  - ruby/proto/gitaly/shared_pb.rb
@@ -94,7 +94,7 @@ 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.3.5
97
+ rubygems_version: 3.3.8
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Auto-generated gRPC client for gitaly