gitaly 13.7.0.pre.rc1 → 13.9.0.pre.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83fca129d76c5da84685c8494e6b5aab0d7972cc62ca3ef7adcbc504d78f3dbf
4
- data.tar.gz: 6a0a7fcf3c903a6fcc6798ca97f47816860695bc597bcd8f2616e09b3f28b0fb
3
+ metadata.gz: 2952d3b962c0f387fc9189671395f06bb81d1eded151be299f50f56aa643f646
4
+ data.tar.gz: a2f7a018b419842794270c97499832724c4bf04eb157be74f5670d1612215b92
5
5
  SHA512:
6
- metadata.gz: 3eff4e62de841867704d77bfc2d7fba01eb8845dc77c9a479fabbac2b6ea223aa34e8d9ae034c6a82ec92e4dc9cbcf2e09d730d2e64f5faf0355f5ef71db9fec
7
- data.tar.gz: 31eac9a52b497639129a03e1d10de439bafc28f4b053bfad05f2ec75aab3d2b5bc7cd2788dc9dbf360d9e94b9e3c8e6d9dcb4e15809920afac232b56f4dba837
6
+ metadata.gz: 18c9de9d6460843a2c18c2ced652dee761b3e44149fa7a8bc3dc8c509c42bce0937c02569943678da7ca1c26423b7626542c9b7b9df160b0cefa3b0b3a9a5c00
7
+ data.tar.gz: 9505babed4510da300774ba07e3af8109b70e4ac3ae9d516e739507b13dc31020fc2ba6719bf8b40f32aa132d081d36c96d6b3de23e0d2efee2df12df14cbe22
@@ -110,6 +110,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
110
110
  add_message "gitaly.FindCommitRequest" do
111
111
  optional :repository, :message, 1, "gitaly.Repository"
112
112
  optional :revision, :bytes, 2
113
+ optional :trailers, :bool, 3
113
114
  end
114
115
  add_message "gitaly.FindCommitResponse" do
115
116
  optional :commit, :message, 1, "gitaly.GitCommit"
@@ -163,6 +164,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
163
164
  optional :author, :bytes, 13
164
165
  optional :order, :enum, 14, "gitaly.FindCommitsRequest.Order"
165
166
  optional :global_options, :message, 15, "gitaly.GlobalOptions"
167
+ optional :trailers, :bool, 16
166
168
  end
167
169
  add_enum "gitaly.FindCommitsRequest.Order" do
168
170
  value :NONE, 0
@@ -5,6 +5,7 @@ require 'google/protobuf'
5
5
 
6
6
  require 'lint_pb'
7
7
  require 'shared_pb'
8
+ require 'google/protobuf/timestamp_pb'
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("conflicts.proto", :syntax => :proto3) do
10
11
  add_message "gitaly.ListConflictFilesRequest" do
@@ -37,6 +38,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
37
38
  optional :target_branch, :bytes, 6
38
39
  optional :commit_message, :bytes, 7
39
40
  optional :user, :message, 8, "gitaly.User"
41
+ optional :timestamp, :message, 9, "google.protobuf.Timestamp"
40
42
  end
41
43
  add_message "gitaly.ResolveConflictsRequest" do
42
44
  oneof :resolve_conflicts_request_payload do
@@ -16,7 +16,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  end
17
17
  add_enum "gitaly.OperationMsg.Scope" do
18
18
  value :REPOSITORY, 0
19
- value :SERVER, 1
20
19
  value :STORAGE, 2
21
20
  end
22
21
  end
@@ -5,6 +5,7 @@ require 'google/protobuf'
5
5
 
6
6
  require 'lint_pb'
7
7
  require 'shared_pb'
8
+ require 'google/protobuf/timestamp_pb'
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("operations.proto", :syntax => :proto3) do
10
11
  add_message "gitaly.UserCreateBranchRequest" do
@@ -49,6 +50,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
49
50
  optional :user, :message, 3, "gitaly.User"
50
51
  optional :target_revision, :bytes, 4
51
52
  optional :message, :bytes, 5
53
+ optional :timestamp, :message, 7, "google.protobuf.Timestamp"
52
54
  end
53
55
  add_message "gitaly.UserCreateTagResponse" do
54
56
  optional :tag, :message, 1, "gitaly.Tag"
@@ -61,6 +63,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
61
63
  optional :commit_id, :string, 3
62
64
  optional :branch, :bytes, 4
63
65
  optional :message, :bytes, 5
66
+ optional :timestamp, :message, 7, "google.protobuf.Timestamp"
64
67
  optional :apply, :bool, 6
65
68
  end
66
69
  add_message "gitaly.UserMergeBranchResponse" do
@@ -77,6 +80,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
77
80
  optional :message, :bytes, 6
78
81
  optional :first_parent_ref, :bytes, 7
79
82
  optional :allow_conflicts, :bool, 8
83
+ optional :timestamp, :message, 9, "google.protobuf.Timestamp"
80
84
  end
81
85
  add_message "gitaly.UserMergeToRefResponse" do
82
86
  optional :commit_id, :string, 1
@@ -106,6 +110,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
106
110
  optional :start_branch_name, :bytes, 6
107
111
  optional :start_repository, :message, 7, "gitaly.Repository"
108
112
  optional :dry_run, :bool, 8
113
+ optional :timestamp, :message, 9, "google.protobuf.Timestamp"
109
114
  end
110
115
  add_message "gitaly.UserCherryPickResponse" do
111
116
  optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate"
@@ -128,6 +133,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
128
133
  optional :start_branch_name, :bytes, 6
129
134
  optional :start_repository, :message, 7, "gitaly.Repository"
130
135
  optional :dry_run, :bool, 8
136
+ optional :timestamp, :message, 9, "google.protobuf.Timestamp"
131
137
  end
132
138
  add_message "gitaly.UserRevertResponse" do
133
139
  optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate"
@@ -174,6 +180,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
174
180
  optional :start_repository, :message, 8, "gitaly.Repository"
175
181
  optional :force, :bool, 9
176
182
  optional :start_sha, :string, 10
183
+ optional :timestamp, :message, 11, "google.protobuf.Timestamp"
177
184
  end
178
185
  add_message "gitaly.UserCommitFilesRequest" do
179
186
  oneof :user_commit_files_request_payload do
@@ -201,6 +208,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
201
208
  optional :remote_repository, :message, 6, "gitaly.Repository"
202
209
  optional :remote_branch, :bytes, 7
203
210
  repeated :git_push_options, :string, 8
211
+ optional :timestamp, :message, 9, "google.protobuf.Timestamp"
204
212
  end
205
213
  add_message "gitaly.UserRebaseConfirmableResponse" do
206
214
  optional :pre_receive_error, :string, 3
@@ -218,6 +226,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
218
226
  optional :end_sha, :string, 6
219
227
  optional :author, :message, 7, "gitaly.User"
220
228
  optional :commit_message, :bytes, 8
229
+ optional :timestamp, :message, 9, "google.protobuf.Timestamp"
221
230
  end
222
231
  add_message "gitaly.UserSquashResponse" do
223
232
  optional :squash_sha, :string, 1
@@ -233,6 +242,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
233
242
  optional :repository, :message, 1, "gitaly.Repository"
234
243
  optional :user, :message, 2, "gitaly.User"
235
244
  optional :target_branch, :bytes, 3
245
+ optional :timestamp, :message, 4, "google.protobuf.Timestamp"
236
246
  end
237
247
  add_message "gitaly.UserApplyPatchResponse" do
238
248
  optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate"
@@ -244,6 +254,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
244
254
  optional :branch, :bytes, 4
245
255
  optional :submodule, :bytes, 5
246
256
  optional :commit_message, :bytes, 6
257
+ optional :timestamp, :message, 7, "google.protobuf.Timestamp"
247
258
  end
248
259
  add_message "gitaly.UserUpdateSubmoduleResponse" do
249
260
  optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate"
@@ -6,6 +6,10 @@ require 'operations_pb'
6
6
 
7
7
  module Gitaly
8
8
  module OperationService
9
+ # OperationService provides an interface for performing mutating git
10
+ # operations on a repository on behalf of a user. The user's operation is
11
+ # treated as untrusted. Any reference update is thus checked against GitLab's
12
+ # '/allowed' endpoint.
9
13
  class Service
10
14
 
11
15
  include GRPC::GenericService
@@ -17,21 +21,53 @@ module Gitaly
17
21
  rpc :UserCreateBranch, Gitaly::UserCreateBranchRequest, Gitaly::UserCreateBranchResponse
18
22
  rpc :UserUpdateBranch, Gitaly::UserUpdateBranchRequest, Gitaly::UserUpdateBranchResponse
19
23
  rpc :UserDeleteBranch, Gitaly::UserDeleteBranchRequest, Gitaly::UserDeleteBranchResponse
24
+ # UserCreateTag creates a new tag.
20
25
  rpc :UserCreateTag, Gitaly::UserCreateTagRequest, Gitaly::UserCreateTagResponse
21
26
  rpc :UserDeleteTag, Gitaly::UserDeleteTagRequest, Gitaly::UserDeleteTagResponse
27
+ # UserMergeRef creates a merge commit and updates target_ref to point to that
28
+ # new commit. The first parent of the merge commit (the main line) is taken
29
+ # from first_parent_ref. The second parent is specified by its commit ID in source_sha.
30
+ # If target_ref already exists it will be overwritten.
22
31
  rpc :UserMergeToRef, Gitaly::UserMergeToRefRequest, Gitaly::UserMergeToRefResponse
32
+ # UserMergeBranch tries to merge the given commit into the target branch.
33
+ # The merge commit is created with the given user as author/committer and
34
+ # the given message.
35
+ #
36
+ # This RPC requires confirmation to make any user-visible changes to the
37
+ # repository. The first request sent shall contain details about the
38
+ # requested merge, which will result in a response with the created merge
39
+ # commit ID. Only if a second message with `apply = true` is sent will the
40
+ # merge be applied.
23
41
  rpc :UserMergeBranch, stream(Gitaly::UserMergeBranchRequest), stream(Gitaly::UserMergeBranchResponse)
42
+ # UserFFBranch tries to perform a fast-forward merge of the given branch to
43
+ # the given commit. If the merge is not a fast-forward merge, the request
44
+ # will fail. The RPC will return an empty response in case updating the
45
+ # reference fails e.g. because of a race.
24
46
  rpc :UserFFBranch, Gitaly::UserFFBranchRequest, Gitaly::UserFFBranchResponse
47
+ # UserCherryPick tries to perform a cherry-pick of a given commit onto a
48
+ # branch.
25
49
  rpc :UserCherryPick, Gitaly::UserCherryPickRequest, Gitaly::UserCherryPickResponse
26
50
  # UserCommitFiles builds a commit from a stream of actions and updates the target branch to point to it.
27
51
  # UserCommitFilesRequest with a UserCommitFilesRequestHeader must be sent as the first message of the stream.
28
- # Following that, a variable number of actions can be sent to build a new commit. Each action consists of
29
- # a header followed by content if used by the action.
52
+ # Following that, a variable number of actions can be sent to build a new commit. Each action consists of
53
+ # a header followed by content if used by the action.
30
54
  rpc :UserCommitFiles, stream(Gitaly::UserCommitFilesRequest), Gitaly::UserCommitFilesResponse
55
+ # UserRebaseConfirmable rebases the given remote branch onto a target
56
+ # branch. The remote branch may be part of another repository.
57
+ #
58
+ # This RPC requires confirmation to make any user-visible changes to the
59
+ # repository. The first request sent shall contains details about the
60
+ # requested rebase, which will result in a response with the created rebase
61
+ # commit ID. Only if a second message with `apply = true` is sent will the
62
+ # rebase be applied.
31
63
  rpc :UserRebaseConfirmable, stream(Gitaly::UserRebaseConfirmableRequest), stream(Gitaly::UserRebaseConfirmableResponse)
64
+ # UserRevert tries to perform a revert of a given commit onto a branch.
32
65
  rpc :UserRevert, Gitaly::UserRevertRequest, Gitaly::UserRevertResponse
66
+ # UserSquash squashes a range of commits into a single commit.
33
67
  rpc :UserSquash, Gitaly::UserSquashRequest, Gitaly::UserSquashResponse
68
+ # UserApplyPatch applies patches to a given branch.
34
69
  rpc :UserApplyPatch, stream(Gitaly::UserApplyPatchRequest), Gitaly::UserApplyPatchResponse
70
+ # UserUpdateSubmodule updates a submodule to point to a new commit.
35
71
  rpc :UserUpdateSubmodule, Gitaly::UserUpdateSubmoduleRequest, Gitaly::UserUpdateSubmoduleResponse
36
72
  end
37
73
 
@@ -7,6 +7,14 @@ require 'lint_pb'
7
7
  require 'shared_pb'
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("praefect.proto", :syntax => :proto3) do
10
+ add_message "gitaly.SetReplicationFactorRequest" do
11
+ optional :virtual_storage, :string, 1
12
+ optional :relative_path, :string, 2
13
+ optional :replication_factor, :int32, 3
14
+ end
15
+ add_message "gitaly.SetReplicationFactorResponse" do
16
+ repeated :storages, :string, 1
17
+ end
10
18
  add_message "gitaly.SetAuthoritativeStorageRequest" do
11
19
  optional :virtual_storage, :string, 1
12
20
  optional :relative_path, :string, 2
@@ -19,17 +27,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
19
27
  optional :include_partially_replicated, :bool, 2
20
28
  end
21
29
  add_message "gitaly.DatalossCheckResponse" do
22
- optional :primary, :string, 1
23
30
  repeated :repositories, :message, 2, "gitaly.DatalossCheckResponse.Repository"
24
31
  end
25
32
  add_message "gitaly.DatalossCheckResponse.Repository" do
26
33
  optional :relative_path, :string, 1
27
34
  repeated :storages, :message, 2, "gitaly.DatalossCheckResponse.Repository.Storage"
28
35
  optional :read_only, :bool, 3
36
+ optional :primary, :string, 4
29
37
  end
30
38
  add_message "gitaly.DatalossCheckResponse.Repository.Storage" do
31
39
  optional :name, :string, 1
32
40
  optional :behind_by, :int64, 2
41
+ optional :assigned, :bool, 3
33
42
  end
34
43
  add_message "gitaly.RepositoryReplicasRequest" do
35
44
  optional :repository, :message, 1, "gitaly.Repository"
@@ -59,6 +68,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
59
68
  end
60
69
 
61
70
  module Gitaly
71
+ SetReplicationFactorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetReplicationFactorRequest").msgclass
72
+ SetReplicationFactorResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetReplicationFactorResponse").msgclass
62
73
  SetAuthoritativeStorageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetAuthoritativeStorageRequest").msgclass
63
74
  SetAuthoritativeStorageResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetAuthoritativeStorageResponse").msgclass
64
75
  DatalossCheckRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DatalossCheckRequest").msgclass
@@ -26,6 +26,15 @@ module Gitaly
26
26
  # This causes the current version of the repository on the authoritative storage to be considered the
27
27
  # latest and overwrite any other version on the virtual storage.
28
28
  rpc :SetAuthoritativeStorage, Gitaly::SetAuthoritativeStorageRequest, Gitaly::SetAuthoritativeStorageResponse
29
+ # SetReplicationFactor assigns or unassigns host nodes from the repository to meet the desired replication factor.
30
+ # SetReplicationFactor returns an error when trying to set a replication factor that exceeds the storage node count
31
+ # in the virtual storage. An error is also returned when trying to set a replication factor below one. The primary node
32
+ # won't be unassigned as it needs a copy of the repository to accept writes. Likewise, the primary is the first storage
33
+ # that gets assigned when setting a replication factor for a repository. Assignments of unconfigured storages are ignored.
34
+ # This might cause the actual replication factor to be higher than desired if the replication factor is set during an upgrade
35
+ # from a Praefect node that does not yet know about a new node. As assignments of unconfigured storages are ignored, replication
36
+ # factor of repositories assigned to a storage node removed from the cluster is effectively decreased.
37
+ rpc :SetReplicationFactor, Gitaly::SetReplicationFactorRequest, Gitaly::SetReplicationFactorResponse
29
38
  end
30
39
 
31
40
  Stub = Service.rpc_stub_class
@@ -68,8 +68,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
68
68
  optional :known_hosts, :string, 7
69
69
  optional :no_prune, :bool, 9
70
70
  optional :remote_params, :message, 10, "gitaly.Remote"
71
+ optional :check_tags_changed, :bool, 11
71
72
  end
72
73
  add_message "gitaly.FetchRemoteResponse" do
74
+ optional :tags_changed, :bool, 1
73
75
  end
74
76
  add_message "gitaly.CreateRepositoryRequest" do
75
77
  optional :repository, :message, 1, "gitaly.Repository"
@@ -22,10 +22,14 @@ module Gitaly
22
22
  rpc :WriteCommitGraph, Gitaly::WriteCommitGraphRequest, Gitaly::WriteCommitGraphResponse
23
23
  rpc :RepositorySize, Gitaly::RepositorySizeRequest, Gitaly::RepositorySizeResponse
24
24
  rpc :ApplyGitattributes, Gitaly::ApplyGitattributesRequest, Gitaly::ApplyGitattributesResponse
25
+ # FetchRemote fetches references from a remote repository into the local
26
+ # repository.
25
27
  rpc :FetchRemote, Gitaly::FetchRemoteRequest, Gitaly::FetchRemoteResponse
26
28
  rpc :CreateRepository, Gitaly::CreateRepositoryRequest, Gitaly::CreateRepositoryResponse
27
29
  rpc :GetArchive, Gitaly::GetArchiveRequest, stream(Gitaly::GetArchiveResponse)
28
30
  rpc :HasLocalBranches, Gitaly::HasLocalBranchesRequest, Gitaly::HasLocalBranchesResponse
31
+ # FetchSourceBranch fetches a branch from a second (potentially remote)
32
+ # repository into the given repository.
29
33
  rpc :FetchSourceBranch, Gitaly::FetchSourceBranchRequest, Gitaly::FetchSourceBranchResponse
30
34
  rpc :Fsck, Gitaly::FsckRequest, Gitaly::FsckResponse
31
35
  rpc :WriteRef, Gitaly::WriteRefRequest, Gitaly::WriteRefResponse
@@ -15,6 +15,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  optional :gl_repository, :string, 6
16
16
  optional :gl_project_path, :string, 8
17
17
  end
18
+ add_message "gitaly.CommitTrailer" do
19
+ optional :key, :bytes, 1
20
+ optional :value, :bytes, 2
21
+ end
18
22
  add_message "gitaly.GitCommit" do
19
23
  optional :id, :string, 1
20
24
  optional :subject, :bytes, 2
@@ -25,6 +29,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
25
29
  optional :body_size, :int64, 7
26
30
  optional :signature_type, :enum, 8, "gitaly.SignatureType"
27
31
  optional :tree_id, :string, 9
32
+ repeated :trailers, :message, 10, "gitaly.CommitTrailer"
28
33
  end
29
34
  add_message "gitaly.CommitAuthor" do
30
35
  optional :name, :bytes, 1
@@ -81,6 +86,7 @@ end
81
86
 
82
87
  module Gitaly
83
88
  Repository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.Repository").msgclass
89
+ CommitTrailer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitTrailer").msgclass
84
90
  GitCommit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GitCommit").msgclass
85
91
  CommitAuthor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitAuthor").msgclass
86
92
  ExitStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ExitStatus").msgclass
@@ -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 = '13.7.0-rc1'
5
+ VERSION = '13.9.0-rc1'
6
6
  end
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: 13.7.0.pre.rc1
4
+ version: 13.9.0.pre.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Vosmaer
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-26 00:00:00.000000000 Z
11
+ date: 2021-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -78,7 +78,7 @@ homepage: https://gitlab.com/gitlab-org/gitaly
78
78
  licenses:
79
79
  - MIT
80
80
  metadata: {}
81
- post_install_message:
81
+ post_install_message:
82
82
  rdoc_options: []
83
83
  require_paths:
84
84
  - ruby/proto
@@ -93,8 +93,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  - !ruby/object:Gem::Version
94
94
  version: 1.3.1
95
95
  requirements: []
96
- rubygems_version: 3.0.8
97
- signing_key:
96
+ rubygems_version: 3.1.4
97
+ signing_key:
98
98
  specification_version: 4
99
99
  summary: Auto-generated gRPC client for gitaly
100
100
  test_files: []