gitaly 15.0.0.pre.rc2 → 15.2.0.pre.rc1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7314e721c1446413c74605d6e1a4d0f71e3cc2c3f298e631675a960f8798b9b
4
- data.tar.gz: 0d4660c5effa6c7437b946c99f75810edbb8ba7640d09257ca82122aeb2b22e7
3
+ metadata.gz: f550caef4d5b486a8b55c72c9f141975b45bd7006683d0f47f7e09b72534fae0
4
+ data.tar.gz: f24b3251383e530e3a71f3a09585c766202b8cb6e56ab92e27c017c908082abe
5
5
  SHA512:
6
- metadata.gz: 70e8307d998ebce708648e3a53d13e7500f56bbf4f6aaf04a3b6b581ad4393f531d59c3e130c069120bfc8cd778128dcfa159f042c83b097347e53b1595c9db2
7
- data.tar.gz: 63c0d62f5e6585508aeaf406866615ec80891f8a672f670ff081c4d208ea434d2f904e413b817c9bea45e3db151e1445e8b6877dd3e4f3c7879c8fe90b1383e6
6
+ metadata.gz: dcf531f12aaaef584924e4710f92c1eeaf0b1c607c9d955772a5ec8a4d60bdb150ea88f792589357b1bb5967ec4997cf83b946ee8a0bb3fa262c32bc8b958253
7
+ data.tar.gz: 827c0c336fe4fa181e076eb1732f3ccfb006b1fef2cc51e9f27a0fad5a77844c9a97ab040600be08d7a2107c1559bd1fd4dc654433e2e16e390d75c8b9318f62
@@ -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
 
@@ -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
@@ -118,6 +120,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
118
120
  optional :recursive, :bool, 4
119
121
  optional :sort, :enum, 5, "gitaly.GetTreeEntriesRequest.SortBy"
120
122
  optional :pagination_params, :message, 6, "gitaly.PaginationParameter"
123
+ optional :skip_flat_paths, :bool, 7
121
124
  end
122
125
  add_enum "gitaly.GetTreeEntriesRequest.SortBy" do
123
126
  value :DEFAULT, 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
@@ -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
@@ -92,6 +92,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
92
92
  add_message "gitaly.FindChangedPathsRequest" do
93
93
  optional :repository, :message, 1, "gitaly.Repository"
94
94
  repeated :commits, :string, 2
95
+ repeated :requests, :message, 3, "gitaly.FindChangedPathsRequest.Request"
96
+ end
97
+ add_message "gitaly.FindChangedPathsRequest.Request" do
98
+ oneof :type do
99
+ optional :tree_request, :message, 1, "gitaly.FindChangedPathsRequest.Request.TreeRequest"
100
+ optional :commit_request, :message, 2, "gitaly.FindChangedPathsRequest.Request.CommitRequest"
101
+ end
102
+ end
103
+ add_message "gitaly.FindChangedPathsRequest.Request.TreeRequest" do
104
+ optional :left_tree_revision, :string, 1
105
+ optional :right_tree_revision, :string, 2
106
+ end
107
+ add_message "gitaly.FindChangedPathsRequest.Request.CommitRequest" do
108
+ optional :commit_revision, :string, 1
109
+ repeated :parent_commit_revisions, :string, 2
95
110
  end
96
111
  add_message "gitaly.FindChangedPathsResponse" do
97
112
  repeated :paths, :message, 1, "gitaly.ChangedPaths"
@@ -99,6 +114,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
99
114
  add_message "gitaly.ChangedPaths" do
100
115
  optional :path, :bytes, 1
101
116
  optional :status, :enum, 2, "gitaly.ChangedPaths.Status"
117
+ optional :old_mode, :int32, 3
118
+ optional :new_mode, :int32, 4
102
119
  end
103
120
  add_enum "gitaly.ChangedPaths.Status" do
104
121
  value :ADDED, 0
@@ -125,6 +142,9 @@ module Gitaly
125
142
  DiffStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiffStats").msgclass
126
143
  DiffStatsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiffStatsResponse").msgclass
127
144
  FindChangedPathsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsRequest").msgclass
145
+ FindChangedPathsRequest::Request = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsRequest.Request").msgclass
146
+ FindChangedPathsRequest::Request::TreeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsRequest.Request.TreeRequest").msgclass
147
+ FindChangedPathsRequest::Request::CommitRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsRequest.Request.CommitRequest").msgclass
128
148
  FindChangedPathsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsResponse").msgclass
129
149
  ChangedPaths = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ChangedPaths").msgclass
130
150
  ChangedPaths::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ChangedPaths.Status").enummodule
@@ -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)
@@ -12,6 +12,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  optional :user_id, :string, 3
13
13
  optional :changes, :bytes, 4
14
14
  end
15
+ add_message "gitaly.InvalidRefFormatError" do
16
+ repeated :refs, :bytes, 2
17
+ end
15
18
  add_message "gitaly.NotAncestorError" do
16
19
  optional :parent_revision, :bytes, 1
17
20
  optional :child_revision, :bytes, 2
@@ -20,6 +23,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
20
23
  end
21
24
  add_message "gitaly.MergeConflictError" do
22
25
  repeated :conflicting_files, :bytes, 1
26
+ repeated :conflicting_commit_ids, :string, 2
27
+ end
28
+ add_message "gitaly.ReferencesLockedError" do
23
29
  end
24
30
  add_message "gitaly.ReferenceUpdateError" do
25
31
  optional :reference_name, :bytes, 1
@@ -33,15 +39,30 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
33
39
  optional :error_message, :string, 1
34
40
  optional :retry_after, :message, 2, "google.protobuf.Duration"
35
41
  end
42
+ add_message "gitaly.CustomHookError" do
43
+ optional :stdout, :bytes, 1
44
+ optional :stderr, :bytes, 2
45
+ optional :hook_type, :enum, 3, "gitaly.CustomHookError.HookType"
46
+ end
47
+ add_enum "gitaly.CustomHookError.HookType" do
48
+ value :HOOK_TYPE_UNSPECIFIED, 0
49
+ value :HOOK_TYPE_PRERECEIVE, 1
50
+ value :HOOK_TYPE_UPDATE, 2
51
+ value :HOOK_TYPE_POSTRECEIVE, 3
52
+ end
36
53
  end
37
54
  end
38
55
 
39
56
  module Gitaly
40
57
  AccessCheckError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.AccessCheckError").msgclass
58
+ InvalidRefFormatError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.InvalidRefFormatError").msgclass
41
59
  NotAncestorError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.NotAncestorError").msgclass
42
60
  ChangesAlreadyAppliedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ChangesAlreadyAppliedError").msgclass
43
61
  MergeConflictError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MergeConflictError").msgclass
62
+ ReferencesLockedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferencesLockedError").msgclass
44
63
  ReferenceUpdateError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceUpdateError").msgclass
45
64
  ResolveRevisionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ResolveRevisionError").msgclass
46
65
  LimitError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LimitError").msgclass
66
+ CustomHookError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CustomHookError").msgclass
67
+ CustomHookError::HookType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CustomHookError.HookType").enummodule
47
68
  end
@@ -60,6 +60,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
60
60
  add_message "gitaly.PackObjectsHookWithSidechannelRequest" do
61
61
  optional :repository, :message, 1, "gitaly.Repository"
62
62
  repeated :args, :string, 2
63
+ optional :gl_id, :string, 3
64
+ optional :gl_username, :string, 5
65
+ optional :git_protocol, :string, 6
63
66
  end
64
67
  add_message "gitaly.PackObjectsHookWithSidechannelResponse" do
65
68
  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,9 +17,13 @@ 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
28
  # PackObjectsHookWithSidechannel is an optimized version of PackObjectsHook that uses
22
29
  # a unix socket side channel.
@@ -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
 
@@ -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
@@ -70,12 +77,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
70
77
  add_message "gitaly.UserMergeBranchResponse" do
71
78
  optional :commit_id, :string, 1
72
79
  optional :branch_update, :message, 3, "gitaly.OperationBranchUpdate"
73
- optional :pre_receive_error, :string, 4
74
80
  end
75
81
  add_message "gitaly.UserMergeBranchError" do
76
82
  oneof :error do
77
83
  optional :access_check, :message, 1, "gitaly.AccessCheckError"
78
84
  optional :reference_update, :message, 2, "gitaly.ReferenceUpdateError"
85
+ optional :custom_hook, :message, 3, "gitaly.CustomHookError"
86
+ optional :merge_conflict, :message, 4, "gitaly.MergeConflictError"
79
87
  end
80
88
  end
81
89
  add_message "gitaly.UserMergeToRefRequest" do
@@ -91,7 +99,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
91
99
  end
92
100
  add_message "gitaly.UserMergeToRefResponse" do
93
101
  optional :commit_id, :string, 1
94
- optional :pre_receive_error, :string, 2
95
102
  end
96
103
  add_message "gitaly.OperationBranchUpdate" do
97
104
  optional :commit_id, :string, 1
@@ -244,7 +251,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
244
251
  end
245
252
  add_message "gitaly.UserSquashResponse" do
246
253
  optional :squash_sha, :string, 1
247
- optional :git_error, :string, 3
248
254
  end
249
255
  add_message "gitaly.UserRebaseConfirmableError" do
250
256
  oneof :error do
@@ -297,6 +303,7 @@ module Gitaly
297
303
  UserUpdateBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserUpdateBranchResponse").msgclass
298
304
  UserDeleteBranchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserDeleteBranchRequest").msgclass
299
305
  UserDeleteBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserDeleteBranchResponse").msgclass
306
+ UserDeleteBranchError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserDeleteBranchError").msgclass
300
307
  UserDeleteTagRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserDeleteTagRequest").msgclass
301
308
  UserDeleteTagResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserDeleteTagResponse").msgclass
302
309
  UserCreateTagRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCreateTagRequest").msgclass
@@ -18,11 +18,28 @@ 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. If the
32
+ # `gitaly_user_delete_branch_structured_errors` feature flag is enabled this error case will
33
+ # instead return `PermissionDenied` with either a `CustomHook` or AccessCheck` structured
34
+ # error.
35
+ # - Returns `FailedPrecondition` in case updating the reference fails because
36
+ # of a concurrent write to the same reference. If the
37
+ # `gitaly_user_delete_branch_structured_errors` feature flag is set this error case will
38
+ # instead return `FailedPrecondition` with a `ReferenceUpdate` structured error.
23
39
  rpc :UserDeleteBranch, ::Gitaly::UserDeleteBranchRequest, ::Gitaly::UserDeleteBranchResponse
24
40
  # UserCreateTag creates a new tag.
25
41
  rpc :UserCreateTag, ::Gitaly::UserCreateTagRequest, ::Gitaly::UserCreateTagResponse
42
+ # This comment is left unintentionally blank.
26
43
  rpc :UserDeleteTag, ::Gitaly::UserDeleteTagRequest, ::Gitaly::UserDeleteTagResponse
27
44
  # UserMergeRef creates a merge commit and updates target_ref to point to that
28
45
  # new commit. The first parent of the merge commit (the main line) is taken
@@ -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
@@ -1,6 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: ref.proto
3
3
 
4
+ require 'errors_pb'
4
5
  require 'google/protobuf/timestamp_pb'
5
6
  require 'lint_pb'
6
7
  require 'shared_pb'
@@ -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
@@ -321,6 +321,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
321
321
  end
322
322
  add_message "gitaly.SetFullPathResponse" do
323
323
  end
324
+ add_message "gitaly.FullPathRequest" do
325
+ optional :repository, :message, 1, "gitaly.Repository"
326
+ end
327
+ add_message "gitaly.FullPathResponse" do
328
+ optional :path, :string, 1
329
+ end
324
330
  end
325
331
  end
326
332
 
@@ -412,4 +418,6 @@ module Gitaly
412
418
  PruneUnreachableObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PruneUnreachableObjectsResponse").msgclass
413
419
  SetFullPathRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetFullPathRequest").msgclass
414
420
  SetFullPathResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetFullPathResponse").msgclass
421
+ FullPathRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FullPathRequest").msgclass
422
+ FullPathResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FullPathResponse").msgclass
415
423
  end
@@ -6,6 +6,7 @@ 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,
@@ -97,6 +123,9 @@ module Gitaly
97
123
  # an admin inspects the repository's gitconfig such that he can easily see
98
124
  # what the repository name is.
99
125
  rpc :SetFullPath, ::Gitaly::SetFullPathRequest, ::Gitaly::SetFullPathResponse
126
+ # FullPath reads the "gitlab.fullpath" configuration from the repository's
127
+ # gitconfig. Returns an error in case the full path has not been configured.
128
+ rpc :FullPath, ::Gitaly::FullPathRequest, ::Gitaly::FullPathResponse
100
129
  end
101
130
 
102
131
  Stub = Service.rpc_stub_class
@@ -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 = '15.0.0-rc2'
5
+ VERSION = '15.2.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
 
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: 15.0.0.pre.rc2
4
+ version: 15.2.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-05-04 00:00:00.000000000 Z
11
+ date: 2022-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -79,7 +79,7 @@ homepage: https://gitlab.com/gitlab-org/gitaly
79
79
  licenses:
80
80
  - MIT
81
81
  metadata: {}
82
- post_install_message:
82
+ post_install_message:
83
83
  rdoc_options: []
84
84
  require_paths:
85
85
  - ruby/proto
@@ -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: []