gitaly 14.10.0.pre.rc1 → 15.1.0.pre.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) 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 +3 -1
  5. data/ruby/proto/gitaly/commit_services_pb.rb +21 -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 +34 -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 +1 -1
  13. data/ruby/proto/gitaly/namespace_services_pb.rb +7 -0
  14. data/ruby/proto/gitaly/objectpool_services_pb.rb +10 -0
  15. data/ruby/proto/gitaly/operations_pb.rb +20 -2
  16. data/ruby/proto/gitaly/operations_services_pb.rb +12 -0
  17. data/ruby/proto/gitaly/praefect_pb.rb +19 -0
  18. data/ruby/proto/gitaly/praefect_services_pb.rb +6 -0
  19. data/ruby/proto/gitaly/ref_pb.rb +9 -1
  20. data/ruby/proto/gitaly/ref_services_pb.rb +12 -0
  21. data/ruby/proto/gitaly/remote_services_pb.rb +3 -0
  22. data/ruby/proto/gitaly/{repository-service_pb.rb → repository_pb.rb} +2 -2
  23. data/ruby/proto/gitaly/{repository-service_services_pb.rb → repository_services_pb.rb} +28 -2
  24. data/ruby/proto/gitaly/server_services_pb.rb +3 -0
  25. data/ruby/proto/gitaly/smarthttp_services_pb.rb +2 -0
  26. data/ruby/proto/gitaly/ssh_services_pb.rb +1 -0
  27. data/ruby/proto/gitaly/transaction_services_pb.rb +26 -0
  28. data/ruby/proto/gitaly/version.rb +1 -1
  29. data/ruby/proto/gitaly/wiki_services_pb.rb +7 -0
  30. data/ruby/proto/gitaly.rb +1 -1
  31. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc86bd3f4b9d80f96d65e4e4696a9ac510f78aabc53f9ed28e97e5f902f1c6dd
4
- data.tar.gz: 588fdc7901e9161509f05b5231b8417fdfcb84016dc6c67b132e0e131ba02bfd
3
+ metadata.gz: e33ca04571fc6455aad19ff895c6b2bc4324deae179ca578d091cd6ab4fcbac9
4
+ data.tar.gz: 6d7f95a725b2ce52e4d4e19efd5d1039c531e440600cf354b5a14a88a0da5bef
5
5
  SHA512:
6
- metadata.gz: 5ced671c1ebf12507a6d6c09246e87a4e4362e5b1548495d2118030af6c64d37f089e542574d85f8edce04dd671a05797698ef7c3287cfd91cef264cc26643b4
7
- data.tar.gz: 131a3bba6884a483842fb134d09d389d127ca075de0f3a7ff8e085e8afc8fb2301f11fc8db927bfbaf6abbfe4578e401ff637195f17936120276eccdda189601
6
+ metadata.gz: fb860a1a5f3dd8427608f7cbb6d027e7fb4c03db32498cd4c500a5230577990719a1479812353534a8d2768a93d9e65cdf1d9b7343e08dc9a9d3e0fe07c4592a
7
+ data.tar.gz: 71791da8a6b302e275755811d28ef7846fb57d2cd0de895fc98dc3c0c2099518e8aba91625f6edfe9f926bac2a26b69253608b1400318da6e474706b2d2c8523
@@ -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
@@ -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,26 +23,45 @@ 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)
45
66
  # CheckObjectsExist will check for the existence of revisions against a
46
67
  # repository. It returns two sets of data. An array containing the revisions
@@ -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,9 +12,20 @@ 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.InvalidRefFormatError" do
16
+ repeated :refs, :bytes, 2
17
+ end
18
+ add_message "gitaly.NotAncestorError" do
19
+ optional :parent_revision, :bytes, 1
20
+ optional :child_revision, :bytes, 2
21
+ end
22
+ add_message "gitaly.ChangesAlreadyAppliedError" do
23
+ end
14
24
  add_message "gitaly.MergeConflictError" do
15
25
  repeated :conflicting_files, :bytes, 1
16
26
  end
27
+ add_message "gitaly.ReferencesLockedError" do
28
+ end
17
29
  add_message "gitaly.ReferenceUpdateError" do
18
30
  optional :reference_name, :bytes, 1
19
31
  optional :old_oid, :string, 2
@@ -22,12 +34,34 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
22
34
  add_message "gitaly.ResolveRevisionError" do
23
35
  optional :revision, :bytes, 1
24
36
  end
37
+ add_message "gitaly.LimitError" do
38
+ optional :error_message, :string, 1
39
+ optional :retry_after, :message, 2, "google.protobuf.Duration"
40
+ end
41
+ add_message "gitaly.CustomHookError" do
42
+ optional :stdout, :bytes, 1
43
+ optional :stderr, :bytes, 2
44
+ optional :hook_type, :enum, 3, "gitaly.CustomHookError.HookType"
45
+ end
46
+ add_enum "gitaly.CustomHookError.HookType" do
47
+ value :HOOK_TYPE_UNSPECIFIED, 0
48
+ value :HOOK_TYPE_PRERECEIVE, 1
49
+ value :HOOK_TYPE_UPDATE, 2
50
+ value :HOOK_TYPE_POSTRECEIVE, 3
51
+ end
25
52
  end
26
53
  end
27
54
 
28
55
  module Gitaly
29
56
  AccessCheckError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.AccessCheckError").msgclass
57
+ InvalidRefFormatError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.InvalidRefFormatError").msgclass
58
+ NotAncestorError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.NotAncestorError").msgclass
59
+ ChangesAlreadyAppliedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ChangesAlreadyAppliedError").msgclass
30
60
  MergeConflictError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MergeConflictError").msgclass
61
+ ReferencesLockedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferencesLockedError").msgclass
31
62
  ReferenceUpdateError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceUpdateError").msgclass
32
63
  ResolveRevisionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ResolveRevisionError").msgclass
64
+ LimitError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LimitError").msgclass
65
+ CustomHookError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CustomHookError").msgclass
66
+ CustomHookError::HookType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CustomHookError.HookType").enummodule
33
67
  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,8 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: internal.proto
3
3
 
4
- require 'lint_pb'
5
4
  require 'google/protobuf/timestamp_pb'
5
+ require 'lint_pb'
6
6
  require 'google/protobuf'
7
7
 
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -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
@@ -37,6 +37,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
37
37
  add_message "gitaly.UserDeleteBranchResponse" do
38
38
  optional :pre_receive_error, :string, 1
39
39
  end
40
+ add_message "gitaly.UserDeleteBranchError" do
41
+ oneof :error do
42
+ optional :access_check, :message, 1, "gitaly.AccessCheckError"
43
+ optional :reference_update, :message, 2, "gitaly.ReferenceUpdateError"
44
+ optional :custom_hook, :message, 3, "gitaly.CustomHookError"
45
+ end
46
+ end
40
47
  add_message "gitaly.UserDeleteTagRequest" do
41
48
  optional :repository, :message, 1, "gitaly.Repository"
42
49
  optional :tag_name, :bytes, 2
@@ -76,6 +83,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
76
83
  oneof :error do
77
84
  optional :access_check, :message, 1, "gitaly.AccessCheckError"
78
85
  optional :reference_update, :message, 2, "gitaly.ReferenceUpdateError"
86
+ optional :custom_hook, :message, 3, "gitaly.CustomHookError"
79
87
  end
80
88
  end
81
89
  add_message "gitaly.UserMergeToRefRequest" do
@@ -131,6 +139,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
131
139
  value :EMPTY, 1
132
140
  value :CONFLICT, 2
133
141
  end
142
+ add_message "gitaly.UserCherryPickError" do
143
+ oneof :error do
144
+ optional :cherry_pick_conflict, :message, 1, "gitaly.MergeConflictError"
145
+ optional :target_branch_diverged, :message, 2, "gitaly.NotAncestorError"
146
+ optional :changes_already_applied, :message, 3, "gitaly.ChangesAlreadyAppliedError"
147
+ optional :access_check, :message, 4, "gitaly.AccessCheckError"
148
+ end
149
+ end
134
150
  add_message "gitaly.UserRevertRequest" do
135
151
  optional :repository, :message, 1, "gitaly.Repository"
136
152
  optional :user, :message, 2, "gitaly.User"
@@ -289,6 +305,7 @@ module Gitaly
289
305
  UserUpdateBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserUpdateBranchResponse").msgclass
290
306
  UserDeleteBranchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserDeleteBranchRequest").msgclass
291
307
  UserDeleteBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserDeleteBranchResponse").msgclass
308
+ UserDeleteBranchError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserDeleteBranchError").msgclass
292
309
  UserDeleteTagRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserDeleteTagRequest").msgclass
293
310
  UserDeleteTagResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserDeleteTagResponse").msgclass
294
311
  UserCreateTagRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCreateTagRequest").msgclass
@@ -304,6 +321,7 @@ module Gitaly
304
321
  UserCherryPickRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCherryPickRequest").msgclass
305
322
  UserCherryPickResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCherryPickResponse").msgclass
306
323
  UserCherryPickResponse::CreateTreeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCherryPickResponse.CreateTreeError").enummodule
324
+ UserCherryPickError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCherryPickError").msgclass
307
325
  UserRevertRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserRevertRequest").msgclass
308
326
  UserRevertResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserRevertResponse").msgclass
309
327
  UserRevertResponse::CreateTreeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserRevertResponse.CreateTreeError").enummodule
@@ -18,11 +18,23 @@ 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
+ # UserDeleteBranch force-deletes a single branch in the context of a specific user. It executes
26
+ # hooks and contacts Rails to verify that the user is indeed allowed to delete that branch. The
27
+ # following known error conditions may happen:
28
+ #
29
+ # - Returns `InvalidArgument` in case either the branch name or user are not set.
30
+ # - Returns `FailedPrecondition` in case the branch does not exist.
31
+ # - Returns `OK` with a `PreReceiveError` in case custom hooks refused the update.
32
+ # - Returns `FailedPrecondition` in case updating the reference fails because of a concurrent
33
+ # write to the same reference.
23
34
  rpc :UserDeleteBranch, ::Gitaly::UserDeleteBranchRequest, ::Gitaly::UserDeleteBranchResponse
24
35
  # UserCreateTag creates a new tag.
25
36
  rpc :UserCreateTag, ::Gitaly::UserCreateTagRequest, ::Gitaly::UserCreateTagResponse
37
+ # This comment is left unintentionally blank.
26
38
  rpc :UserDeleteTag, ::Gitaly::UserDeleteTagRequest, ::Gitaly::UserDeleteTagResponse
27
39
  # UserMergeRef creates a merge commit and updates target_ref to point to that
28
40
  # 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,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: ref.proto
3
3
 
4
+ require 'errors_pb'
5
+ require 'google/protobuf/timestamp_pb'
4
6
  require 'lint_pb'
5
7
  require 'shared_pb'
6
- require 'google/protobuf/timestamp_pb'
7
8
  require 'google/protobuf'
8
9
 
9
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -131,6 +132,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
131
132
  add_message "gitaly.DeleteRefsResponse" do
132
133
  optional :git_error, :string, 1
133
134
  end
135
+ add_message "gitaly.DeleteRefsError" do
136
+ oneof :error do
137
+ optional :invalid_format, :message, 1, "gitaly.InvalidRefFormatError"
138
+ optional :references_locked, :message, 2, "gitaly.ReferencesLockedError"
139
+ end
140
+ end
134
141
  add_message "gitaly.ListBranchNamesContainingCommitRequest" do
135
142
  optional :repository, :message, 1, "gitaly.Repository"
136
143
  optional :commit_id, :string, 2
@@ -247,6 +254,7 @@ module Gitaly
247
254
  FindBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindBranchResponse").msgclass
248
255
  DeleteRefsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DeleteRefsRequest").msgclass
249
256
  DeleteRefsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DeleteRefsResponse").msgclass
257
+ DeleteRefsError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DeleteRefsError").msgclass
250
258
  ListBranchNamesContainingCommitRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListBranchNamesContainingCommitRequest").msgclass
251
259
  ListBranchNamesContainingCommitResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListBranchNamesContainingCommitResponse").msgclass
252
260
  ListTagNamesContainingCommitRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListTagNamesContainingCommitRequest").msgclass
@@ -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.10.0-rc1'
5
+ VERSION = '15.1.0-rc1'
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.10.0.pre.rc1
4
+ version: 15.1.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: 2022-04-06 00:00:00.000000000 Z
11
+ date: 2022-06-09 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
@@ -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
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  version: 1.3.1
96
96
  requirements: []
97
97
  rubygems_version: 3.1.6
98
- signing_key:
98
+ signing_key:
99
99
  specification_version: 4
100
100
  summary: Auto-generated gRPC client for gitaly
101
101
  test_files: []