gitaly 14.4.0.pre.rc43 → 14.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ruby/proto/gitaly/blob_pb.rb +2 -2
- data/ruby/proto/gitaly/blob_services_pb.rb +8 -8
- data/ruby/proto/gitaly/cleanup_pb.rb +2 -2
- data/ruby/proto/gitaly/cleanup_services_pb.rb +2 -2
- data/ruby/proto/gitaly/commit_pb.rb +2 -13
- data/ruby/proto/gitaly/commit_services_pb.rb +25 -27
- data/ruby/proto/gitaly/conflicts_pb.rb +2 -2
- data/ruby/proto/gitaly/conflicts_services_pb.rb +3 -3
- data/ruby/proto/gitaly/diff_pb.rb +2 -2
- data/ruby/proto/gitaly/diff_services_pb.rb +7 -7
- data/ruby/proto/gitaly/errors_pb.rb +6 -0
- data/ruby/proto/gitaly/hook_pb.rb +2 -2
- data/ruby/proto/gitaly/hook_services_pb.rb +8 -10
- data/ruby/proto/gitaly/internal_pb.rb +1 -1
- data/ruby/proto/gitaly/internal_services_pb.rb +2 -2
- data/ruby/proto/gitaly/lint_pb.rb +1 -0
- data/ruby/proto/gitaly/namespace_pb.rb +1 -1
- data/ruby/proto/gitaly/namespace_services_pb.rb +5 -5
- data/ruby/proto/gitaly/objectpool_pb.rb +2 -10
- data/ruby/proto/gitaly/objectpool_services_pb.rb +8 -19
- data/ruby/proto/gitaly/operations_pb.rb +3 -2
- data/ruby/proto/gitaly/operations_services_pb.rb +16 -16
- data/ruby/proto/gitaly/praefect_pb.rb +32 -2
- data/ruby/proto/gitaly/praefect_services_pb.rb +7 -5
- data/ruby/proto/gitaly/ref_pb.rb +15 -13
- data/ruby/proto/gitaly/ref_services_pb.rb +19 -21
- data/ruby/proto/gitaly/remote_pb.rb +4 -2
- data/ruby/proto/gitaly/remote_services_pb.rb +4 -4
- data/ruby/proto/gitaly/repository-service_pb.rb +13 -22
- data/ruby/proto/gitaly/repository-service_services_pb.rb +53 -43
- data/ruby/proto/gitaly/server_pb.rb +10 -1
- data/ruby/proto/gitaly/server_services_pb.rb +6 -3
- data/ruby/proto/gitaly/shared_pb.rb +3 -2
- data/ruby/proto/gitaly/smarthttp_pb.rb +2 -2
- data/ruby/proto/gitaly/smarthttp_services_pb.rb +6 -6
- data/ruby/proto/gitaly/ssh_pb.rb +11 -2
- data/ruby/proto/gitaly/ssh_services_pb.rb +6 -4
- data/ruby/proto/gitaly/transaction_pb.rb +9 -2
- data/ruby/proto/gitaly/transaction_services_pb.rb +3 -3
- data/ruby/proto/gitaly/version.rb +1 -1
- data/ruby/proto/gitaly/wiki_pb.rb +2 -2
- data/ruby/proto/gitaly/wiki_services_pb.rb +6 -6
- metadata +8 -8
@@ -1,12 +1,38 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: praefect.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'lint_pb'
|
7
5
|
require 'shared_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("praefect.proto", :syntax => :proto3) do
|
10
|
+
add_message "gitaly.GetRepositoryMetadataRequest" do
|
11
|
+
oneof :query do
|
12
|
+
optional :repository_id, :int64, 1
|
13
|
+
optional :path, :message, 2, "gitaly.GetRepositoryMetadataRequest.Path"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
add_message "gitaly.GetRepositoryMetadataRequest.Path" do
|
17
|
+
optional :virtual_storage, :string, 1
|
18
|
+
optional :relative_path, :string, 2
|
19
|
+
end
|
20
|
+
add_message "gitaly.GetRepositoryMetadataResponse" do
|
21
|
+
optional :repository_id, :int64, 1
|
22
|
+
optional :virtual_storage, :string, 2
|
23
|
+
optional :relative_path, :string, 3
|
24
|
+
optional :replica_path, :string, 4
|
25
|
+
optional :primary, :string, 5
|
26
|
+
optional :generation, :int64, 6
|
27
|
+
repeated :replicas, :message, 7, "gitaly.GetRepositoryMetadataResponse.Replica"
|
28
|
+
end
|
29
|
+
add_message "gitaly.GetRepositoryMetadataResponse.Replica" do
|
30
|
+
optional :storage, :string, 1
|
31
|
+
optional :assigned, :bool, 2
|
32
|
+
optional :generation, :int64, 4
|
33
|
+
optional :healthy, :bool, 5
|
34
|
+
optional :valid_primary, :bool, 6
|
35
|
+
end
|
10
36
|
add_message "gitaly.SetReplicationFactorRequest" do
|
11
37
|
optional :virtual_storage, :string, 1
|
12
38
|
optional :relative_path, :string, 2
|
@@ -57,6 +83,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
57
83
|
end
|
58
84
|
|
59
85
|
module Gitaly
|
86
|
+
GetRepositoryMetadataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetRepositoryMetadataRequest").msgclass
|
87
|
+
GetRepositoryMetadataRequest::Path = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetRepositoryMetadataRequest.Path").msgclass
|
88
|
+
GetRepositoryMetadataResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetRepositoryMetadataResponse").msgclass
|
89
|
+
GetRepositoryMetadataResponse::Replica = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetRepositoryMetadataResponse.Replica").msgclass
|
60
90
|
SetReplicationFactorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetReplicationFactorRequest").msgclass
|
61
91
|
SetReplicationFactorResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetReplicationFactorResponse").msgclass
|
62
92
|
SetAuthoritativeStorageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetAuthoritativeStorageRequest").msgclass
|
@@ -8,19 +8,19 @@ module Gitaly
|
|
8
8
|
module PraefectInfoService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include GRPC::GenericService
|
11
|
+
include ::GRPC::GenericService
|
12
12
|
|
13
13
|
self.marshal_class_method = :encode
|
14
14
|
self.unmarshal_class_method = :decode
|
15
15
|
self.service_name = 'gitaly.PraefectInfoService'
|
16
16
|
|
17
|
-
rpc :RepositoryReplicas, Gitaly::RepositoryReplicasRequest, Gitaly::RepositoryReplicasResponse
|
17
|
+
rpc :RepositoryReplicas, ::Gitaly::RepositoryReplicasRequest, ::Gitaly::RepositoryReplicasResponse
|
18
18
|
# DatalossCheck checks for unavailable repositories.
|
19
|
-
rpc :DatalossCheck, Gitaly::DatalossCheckRequest, Gitaly::DatalossCheckResponse
|
19
|
+
rpc :DatalossCheck, ::Gitaly::DatalossCheckRequest, ::Gitaly::DatalossCheckResponse
|
20
20
|
# SetAuthoritativeStorage sets the authoritative storage for a repository on a given virtual storage.
|
21
21
|
# This causes the current version of the repository on the authoritative storage to be considered the
|
22
22
|
# latest and overwrite any other version on the virtual storage.
|
23
|
-
rpc :SetAuthoritativeStorage, Gitaly::SetAuthoritativeStorageRequest, Gitaly::SetAuthoritativeStorageResponse
|
23
|
+
rpc :SetAuthoritativeStorage, ::Gitaly::SetAuthoritativeStorageRequest, ::Gitaly::SetAuthoritativeStorageResponse
|
24
24
|
# SetReplicationFactor assigns or unassigns host nodes from the repository to meet the desired replication factor.
|
25
25
|
# SetReplicationFactor returns an error when trying to set a replication factor that exceeds the storage node count
|
26
26
|
# in the virtual storage. An error is also returned when trying to set a replication factor below one. The primary node
|
@@ -29,7 +29,9 @@ module Gitaly
|
|
29
29
|
# This might cause the actual replication factor to be higher than desired if the replication factor is set during an upgrade
|
30
30
|
# from a Praefect node that does not yet know about a new node. As assignments of unconfigured storages are ignored, replication
|
31
31
|
# factor of repositories assigned to a storage node removed from the cluster is effectively decreased.
|
32
|
-
rpc :SetReplicationFactor, Gitaly::SetReplicationFactorRequest, Gitaly::SetReplicationFactorResponse
|
32
|
+
rpc :SetReplicationFactor, ::Gitaly::SetReplicationFactorRequest, ::Gitaly::SetReplicationFactorResponse
|
33
|
+
# GetRepositoryMetadata returns the cluster metadata for a repository. Returns NotFound if the repository does not exist.
|
34
|
+
rpc :GetRepositoryMetadata, ::Gitaly::GetRepositoryMetadataRequest, ::Gitaly::GetRepositoryMetadataResponse
|
33
35
|
end
|
34
36
|
|
35
37
|
Stub = Service.rpc_stub_class
|
data/ruby/proto/gitaly/ref_pb.rb
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: ref.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'lint_pb'
|
7
5
|
require 'shared_pb'
|
8
|
-
require 'blob_pb'
|
9
6
|
require 'google/protobuf/timestamp_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
10
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
10
|
add_file("ref.proto", :syntax => :proto3) do
|
12
11
|
add_message "gitaly.FindDefaultBranchNameRequest" do
|
@@ -168,13 +167,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
168
167
|
optional :message, :bytes, 2
|
169
168
|
optional :tag_id, :string, 3
|
170
169
|
end
|
171
|
-
add_message "gitaly.ListNewCommitsRequest" do
|
172
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
173
|
-
optional :commit_id, :string, 2
|
174
|
-
end
|
175
|
-
add_message "gitaly.ListNewCommitsResponse" do
|
176
|
-
repeated :commits, :message, 1, "gitaly.GitCommit"
|
177
|
-
end
|
178
170
|
add_message "gitaly.FindAllRemoteBranchesRequest" do
|
179
171
|
optional :repository, :message, 1, "gitaly.Repository"
|
180
172
|
optional :remote_name, :string, 2
|
@@ -184,7 +176,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
184
176
|
end
|
185
177
|
add_message "gitaly.PackRefsRequest" do
|
186
178
|
optional :repository, :message, 1, "gitaly.Repository"
|
187
|
-
optional :all_refs, :bool, 2
|
188
179
|
end
|
189
180
|
add_message "gitaly.PackRefsResponse" do
|
190
181
|
end
|
@@ -192,6 +183,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
192
183
|
optional :repository, :message, 1, "gitaly.Repository"
|
193
184
|
repeated :patterns, :bytes, 2
|
194
185
|
optional :head, :bool, 3
|
186
|
+
optional :sort_by, :message, 4, "gitaly.ListRefsRequest.SortBy"
|
187
|
+
end
|
188
|
+
add_message "gitaly.ListRefsRequest.SortBy" do
|
189
|
+
optional :key, :enum, 1, "gitaly.ListRefsRequest.SortBy.Key"
|
190
|
+
optional :direction, :enum, 2, "gitaly.SortDirection"
|
191
|
+
end
|
192
|
+
add_enum "gitaly.ListRefsRequest.SortBy.Key" do
|
193
|
+
value :REFNAME, 0
|
194
|
+
value :CREATORDATE, 1
|
195
|
+
value :AUTHORDATE, 2
|
196
|
+
value :COMMITTERDATE, 3
|
195
197
|
end
|
196
198
|
add_message "gitaly.ListRefsResponse" do
|
197
199
|
repeated :references, :message, 1, "gitaly.ListRefsResponse.Reference"
|
@@ -254,13 +256,13 @@ module Gitaly
|
|
254
256
|
GetTagSignaturesResponse::TagSignature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetTagSignaturesResponse.TagSignature").msgclass
|
255
257
|
GetTagMessagesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetTagMessagesRequest").msgclass
|
256
258
|
GetTagMessagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetTagMessagesResponse").msgclass
|
257
|
-
ListNewCommitsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListNewCommitsRequest").msgclass
|
258
|
-
ListNewCommitsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListNewCommitsResponse").msgclass
|
259
259
|
FindAllRemoteBranchesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllRemoteBranchesRequest").msgclass
|
260
260
|
FindAllRemoteBranchesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllRemoteBranchesResponse").msgclass
|
261
261
|
PackRefsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackRefsRequest").msgclass
|
262
262
|
PackRefsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackRefsResponse").msgclass
|
263
263
|
ListRefsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsRequest").msgclass
|
264
|
+
ListRefsRequest::SortBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsRequest.SortBy").msgclass
|
265
|
+
ListRefsRequest::SortBy::Key = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsRequest.SortBy.Key").enummodule
|
264
266
|
ListRefsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsResponse").msgclass
|
265
267
|
ListRefsResponse::Reference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsResponse.Reference").msgclass
|
266
268
|
FindRefsByOIDRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRefsByOIDRequest").msgclass
|
@@ -8,46 +8,44 @@ module Gitaly
|
|
8
8
|
module RefService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include GRPC::GenericService
|
11
|
+
include ::GRPC::GenericService
|
12
12
|
|
13
13
|
self.marshal_class_method = :encode
|
14
14
|
self.unmarshal_class_method = :decode
|
15
15
|
self.service_name = 'gitaly.RefService'
|
16
16
|
|
17
|
-
rpc :FindDefaultBranchName, Gitaly::FindDefaultBranchNameRequest, Gitaly::FindDefaultBranchNameResponse
|
18
|
-
rpc :FindAllBranchNames, Gitaly::FindAllBranchNamesRequest, stream(Gitaly::FindAllBranchNamesResponse)
|
19
|
-
rpc :FindAllTagNames, Gitaly::FindAllTagNamesRequest, stream(Gitaly::FindAllTagNamesResponse)
|
17
|
+
rpc :FindDefaultBranchName, ::Gitaly::FindDefaultBranchNameRequest, ::Gitaly::FindDefaultBranchNameResponse
|
18
|
+
rpc :FindAllBranchNames, ::Gitaly::FindAllBranchNamesRequest, stream(::Gitaly::FindAllBranchNamesResponse)
|
19
|
+
rpc :FindAllTagNames, ::Gitaly::FindAllTagNamesRequest, stream(::Gitaly::FindAllTagNamesResponse)
|
20
20
|
# Return a stream so we can divide the response in chunks of branches
|
21
|
-
rpc :FindLocalBranches, Gitaly::FindLocalBranchesRequest, stream(Gitaly::FindLocalBranchesResponse)
|
22
|
-
rpc :FindAllBranches, Gitaly::FindAllBranchesRequest, stream(Gitaly::FindAllBranchesResponse)
|
21
|
+
rpc :FindLocalBranches, ::Gitaly::FindLocalBranchesRequest, stream(::Gitaly::FindLocalBranchesResponse)
|
22
|
+
rpc :FindAllBranches, ::Gitaly::FindAllBranchesRequest, stream(::Gitaly::FindAllBranchesResponse)
|
23
23
|
# Returns a stream of tags repository has.
|
24
|
-
rpc :FindAllTags, Gitaly::FindAllTagsRequest, stream(Gitaly::FindAllTagsResponse)
|
25
|
-
rpc :FindTag, Gitaly::FindTagRequest, Gitaly::FindTagResponse
|
26
|
-
rpc :FindAllRemoteBranches, Gitaly::FindAllRemoteBranchesRequest, stream(Gitaly::FindAllRemoteBranchesResponse)
|
27
|
-
rpc :RefExists, Gitaly::RefExistsRequest, Gitaly::RefExistsResponse
|
24
|
+
rpc :FindAllTags, ::Gitaly::FindAllTagsRequest, stream(::Gitaly::FindAllTagsResponse)
|
25
|
+
rpc :FindTag, ::Gitaly::FindTagRequest, ::Gitaly::FindTagResponse
|
26
|
+
rpc :FindAllRemoteBranches, ::Gitaly::FindAllRemoteBranchesRequest, stream(::Gitaly::FindAllRemoteBranchesResponse)
|
27
|
+
rpc :RefExists, ::Gitaly::RefExistsRequest, ::Gitaly::RefExistsResponse
|
28
28
|
# FindBranch finds a branch by its unqualified name (like "master") and
|
29
29
|
# returns the commit it currently points to.
|
30
|
-
rpc :FindBranch, Gitaly::FindBranchRequest, Gitaly::FindBranchResponse
|
31
|
-
rpc :DeleteRefs, Gitaly::DeleteRefsRequest, Gitaly::DeleteRefsResponse
|
32
|
-
rpc :ListBranchNamesContainingCommit, Gitaly::ListBranchNamesContainingCommitRequest, stream(Gitaly::ListBranchNamesContainingCommitResponse)
|
33
|
-
rpc :ListTagNamesContainingCommit, Gitaly::ListTagNamesContainingCommitRequest, stream(Gitaly::ListTagNamesContainingCommitResponse)
|
30
|
+
rpc :FindBranch, ::Gitaly::FindBranchRequest, ::Gitaly::FindBranchResponse
|
31
|
+
rpc :DeleteRefs, ::Gitaly::DeleteRefsRequest, ::Gitaly::DeleteRefsResponse
|
32
|
+
rpc :ListBranchNamesContainingCommit, ::Gitaly::ListBranchNamesContainingCommitRequest, stream(::Gitaly::ListBranchNamesContainingCommitResponse)
|
33
|
+
rpc :ListTagNamesContainingCommit, ::Gitaly::ListTagNamesContainingCommitRequest, stream(::Gitaly::ListTagNamesContainingCommitResponse)
|
34
34
|
# GetTagSignatures returns signatures for annotated tags resolved from a set of revisions. Revisions
|
35
35
|
# which don't resolve to an annotated tag are silently discarded. Revisions which cannot be resolved
|
36
36
|
# result in an error. Tags which are annotated but not signed will return a TagSignature response
|
37
37
|
# which has no signature, but its unsigned contents will still be returned.
|
38
|
-
rpc :GetTagSignatures, Gitaly::GetTagSignaturesRequest, stream(Gitaly::GetTagSignaturesResponse)
|
39
|
-
rpc :GetTagMessages, Gitaly::GetTagMessagesRequest, stream(Gitaly::GetTagMessagesResponse)
|
40
|
-
|
41
|
-
rpc :ListNewCommits, Gitaly::ListNewCommitsRequest, stream(Gitaly::ListNewCommitsResponse)
|
42
|
-
rpc :PackRefs, Gitaly::PackRefsRequest, Gitaly::PackRefsResponse
|
38
|
+
rpc :GetTagSignatures, ::Gitaly::GetTagSignaturesRequest, stream(::Gitaly::GetTagSignaturesResponse)
|
39
|
+
rpc :GetTagMessages, ::Gitaly::GetTagMessagesRequest, stream(::Gitaly::GetTagMessagesResponse)
|
40
|
+
rpc :PackRefs, ::Gitaly::PackRefsRequest, ::Gitaly::PackRefsResponse
|
43
41
|
# ListRefs returns a stream of all references in the repository. By default, pseudo-revisions like HEAD
|
44
42
|
# will not be returned by this RPC. Any symbolic references will be resolved to the object ID it is
|
45
43
|
# pointing at.
|
46
|
-
rpc :ListRefs, Gitaly::ListRefsRequest, stream(Gitaly::ListRefsResponse)
|
44
|
+
rpc :ListRefs, ::Gitaly::ListRefsRequest, stream(::Gitaly::ListRefsResponse)
|
47
45
|
# FindRefsByOID returns an array of fully qualified reference names that point to an object ID.
|
48
46
|
# It returns nothing if the object ID doesn't exist, or doesn't point to
|
49
47
|
# any branches or tags. Prefixes can be also be used as the object ID.
|
50
|
-
rpc :FindRefsByOID, Gitaly::FindRefsByOIDRequest, Gitaly::FindRefsByOIDResponse
|
48
|
+
rpc :FindRefsByOID, ::Gitaly::FindRefsByOIDRequest, ::Gitaly::FindRefsByOIDResponse
|
51
49
|
end
|
52
50
|
|
53
51
|
Stub = Service.rpc_stub_class
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: remote.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'lint_pb'
|
7
5
|
require 'shared_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("remote.proto", :syntax => :proto3) do
|
10
10
|
add_message "gitaly.UpdateRemoteMirrorRequest" do
|
@@ -18,6 +18,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
18
18
|
add_message "gitaly.UpdateRemoteMirrorRequest.Remote" do
|
19
19
|
optional :url, :string, 1
|
20
20
|
optional :http_authorization_header, :string, 2
|
21
|
+
optional :http_host, :string, 3
|
21
22
|
end
|
22
23
|
add_message "gitaly.UpdateRemoteMirrorResponse" do
|
23
24
|
repeated :divergent_refs, :bytes, 1
|
@@ -33,6 +34,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
33
34
|
optional :repository, :message, 1, "gitaly.Repository"
|
34
35
|
optional :remote_url, :string, 3
|
35
36
|
optional :http_authorization_header, :string, 4
|
37
|
+
optional :http_host, :string, 5
|
36
38
|
end
|
37
39
|
add_message "gitaly.FindRemoteRootRefResponse" do
|
38
40
|
optional :ref, :string, 1
|
@@ -8,7 +8,7 @@ module Gitaly
|
|
8
8
|
module RemoteService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include GRPC::GenericService
|
11
|
+
include ::GRPC::GenericService
|
12
12
|
|
13
13
|
self.marshal_class_method = :encode
|
14
14
|
self.unmarshal_class_method = :decode
|
@@ -19,14 +19,14 @@ module Gitaly
|
|
19
19
|
# references to the mirror. Created and modified references are updated, removed references are
|
20
20
|
# deleted from the mirror. UpdateRemoteMirror updates all tags. Branches are updated if they match
|
21
21
|
# the patterns specified in the requests.
|
22
|
-
rpc :UpdateRemoteMirror, stream(Gitaly::UpdateRemoteMirrorRequest), Gitaly::UpdateRemoteMirrorResponse
|
23
|
-
rpc :FindRemoteRepository, Gitaly::FindRemoteRepositoryRequest, Gitaly::FindRemoteRepositoryResponse
|
22
|
+
rpc :UpdateRemoteMirror, stream(::Gitaly::UpdateRemoteMirrorRequest), ::Gitaly::UpdateRemoteMirrorResponse
|
23
|
+
rpc :FindRemoteRepository, ::Gitaly::FindRemoteRepositoryRequest, ::Gitaly::FindRemoteRepositoryResponse
|
24
24
|
# FindRemoteRootRef tries to find the root reference of a remote
|
25
25
|
# repository. The root reference is the default branch as pointed to by
|
26
26
|
# the remotes HEAD reference. Returns an InvalidArgument error if the
|
27
27
|
# specified remote does not exist and a NotFound error in case no HEAD
|
28
28
|
# branch was found.
|
29
|
-
rpc :FindRemoteRootRef, Gitaly::FindRemoteRootRefRequest, Gitaly::FindRemoteRootRefResponse
|
29
|
+
rpc :FindRemoteRootRef, ::Gitaly::FindRemoteRootRefRequest, ::Gitaly::FindRemoteRootRefResponse
|
30
30
|
end
|
31
31
|
|
32
32
|
Stub = Service.rpc_stub_class
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: repository-service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'lint_pb'
|
7
5
|
require 'shared_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("repository-service.proto", :syntax => :proto3) do
|
10
10
|
add_message "gitaly.RepositoryExistsRequest" do
|
@@ -65,6 +65,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
65
65
|
add_message "gitaly.FetchBundleRequest" do
|
66
66
|
optional :repository, :message, 1, "gitaly.Repository"
|
67
67
|
optional :data, :bytes, 2
|
68
|
+
optional :update_head, :bool, 3
|
68
69
|
end
|
69
70
|
add_message "gitaly.FetchBundleResponse" do
|
70
71
|
end
|
@@ -152,6 +153,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
152
153
|
add_message "gitaly.CreateRepositoryFromURLRequest" do
|
153
154
|
optional :repository, :message, 1, "gitaly.Repository"
|
154
155
|
optional :url, :string, 2
|
156
|
+
optional :http_host, :string, 3
|
155
157
|
end
|
156
158
|
add_message "gitaly.CreateRepositoryFromURLResponse" do
|
157
159
|
end
|
@@ -220,6 +222,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
220
222
|
optional :repository, :message, 1, "gitaly.Repository"
|
221
223
|
optional :http_url, :string, 2
|
222
224
|
optional :http_auth, :string, 3
|
225
|
+
optional :http_host, :string, 4
|
223
226
|
end
|
224
227
|
add_message "gitaly.CreateRepositoryFromSnapshotResponse" do
|
225
228
|
end
|
@@ -234,8 +237,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
234
237
|
add_message "gitaly.GetRawChangesResponse.RawChange" do
|
235
238
|
optional :blob_id, :string, 1
|
236
239
|
optional :size, :int64, 2
|
237
|
-
optional :new_path, :string, 3
|
238
|
-
optional :old_path, :string, 4
|
239
240
|
optional :operation, :enum, 5, "gitaly.GetRawChangesResponse.RawChange.Operation"
|
240
241
|
optional :raw_operation, :string, 6
|
241
242
|
optional :old_mode, :int32, 7
|
@@ -276,6 +277,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
276
277
|
optional :url, :string, 1
|
277
278
|
optional :http_authorization_header, :string, 3
|
278
279
|
repeated :mirror_refmaps, :string, 4
|
280
|
+
optional :http_host, :string, 5
|
279
281
|
end
|
280
282
|
add_message "gitaly.GetObjectDirectorySizeRequest" do
|
281
283
|
optional :repository, :message, 1, "gitaly.Repository"
|
@@ -283,20 +285,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
283
285
|
add_message "gitaly.GetObjectDirectorySizeResponse" do
|
284
286
|
optional :size, :int64, 1
|
285
287
|
end
|
286
|
-
add_message "gitaly.CloneFromPoolRequest" do
|
287
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
288
|
-
optional :pool, :message, 2, "gitaly.ObjectPool"
|
289
|
-
optional :remote, :message, 3, "gitaly.Remote"
|
290
|
-
end
|
291
|
-
add_message "gitaly.CloneFromPoolResponse" do
|
292
|
-
end
|
293
|
-
add_message "gitaly.CloneFromPoolInternalRequest" do
|
294
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
295
|
-
optional :pool, :message, 2, "gitaly.ObjectPool"
|
296
|
-
optional :source_repository, :message, 3, "gitaly.Repository"
|
297
|
-
end
|
298
|
-
add_message "gitaly.CloneFromPoolInternalResponse" do
|
299
|
-
end
|
300
288
|
add_message "gitaly.RemoveRepositoryRequest" do
|
301
289
|
optional :repository, :message, 1, "gitaly.Repository"
|
302
290
|
end
|
@@ -319,6 +307,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
319
307
|
end
|
320
308
|
add_message "gitaly.OptimizeRepositoryResponse" do
|
321
309
|
end
|
310
|
+
add_message "gitaly.PruneUnreachableObjectsRequest" do
|
311
|
+
optional :repository, :message, 1, "gitaly.Repository"
|
312
|
+
end
|
313
|
+
add_message "gitaly.PruneUnreachableObjectsResponse" do
|
314
|
+
end
|
322
315
|
add_message "gitaly.SetFullPathRequest" do
|
323
316
|
optional :repository, :message, 1, "gitaly.Repository"
|
324
317
|
optional :path, :string, 2
|
@@ -404,10 +397,6 @@ module Gitaly
|
|
404
397
|
Remote = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.Remote").msgclass
|
405
398
|
GetObjectDirectorySizeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetObjectDirectorySizeRequest").msgclass
|
406
399
|
GetObjectDirectorySizeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetObjectDirectorySizeResponse").msgclass
|
407
|
-
CloneFromPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CloneFromPoolRequest").msgclass
|
408
|
-
CloneFromPoolResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CloneFromPoolResponse").msgclass
|
409
|
-
CloneFromPoolInternalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CloneFromPoolInternalRequest").msgclass
|
410
|
-
CloneFromPoolInternalResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CloneFromPoolInternalResponse").msgclass
|
411
400
|
RemoveRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RemoveRepositoryRequest").msgclass
|
412
401
|
RemoveRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RemoveRepositoryResponse").msgclass
|
413
402
|
RenameRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RenameRepositoryRequest").msgclass
|
@@ -416,6 +405,8 @@ module Gitaly
|
|
416
405
|
ReplicateRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReplicateRepositoryResponse").msgclass
|
417
406
|
OptimizeRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OptimizeRepositoryRequest").msgclass
|
418
407
|
OptimizeRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OptimizeRepositoryResponse").msgclass
|
408
|
+
PruneUnreachableObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PruneUnreachableObjectsRequest").msgclass
|
409
|
+
PruneUnreachableObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PruneUnreachableObjectsResponse").msgclass
|
419
410
|
SetFullPathRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetFullPathRequest").msgclass
|
420
411
|
SetFullPathResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetFullPathResponse").msgclass
|
421
412
|
end
|
@@ -8,73 +8,83 @@ module Gitaly
|
|
8
8
|
module RepositoryService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include GRPC::GenericService
|
11
|
+
include ::GRPC::GenericService
|
12
12
|
|
13
13
|
self.marshal_class_method = :encode
|
14
14
|
self.unmarshal_class_method = :decode
|
15
15
|
self.service_name = 'gitaly.RepositoryService'
|
16
16
|
|
17
|
-
rpc :RepositoryExists, Gitaly::RepositoryExistsRequest, Gitaly::RepositoryExistsResponse
|
18
|
-
rpc :RepackIncremental, Gitaly::RepackIncrementalRequest, Gitaly::RepackIncrementalResponse
|
19
|
-
rpc :RepackFull, Gitaly::RepackFullRequest, Gitaly::RepackFullResponse
|
20
|
-
rpc :MidxRepack, Gitaly::MidxRepackRequest, Gitaly::MidxRepackResponse
|
21
|
-
rpc :GarbageCollect, Gitaly::GarbageCollectRequest, Gitaly::GarbageCollectResponse
|
22
|
-
rpc :WriteCommitGraph, Gitaly::WriteCommitGraphRequest, Gitaly::WriteCommitGraphResponse
|
23
|
-
rpc :RepositorySize, Gitaly::RepositorySizeRequest, Gitaly::RepositorySizeResponse
|
24
|
-
rpc :ApplyGitattributes, Gitaly::ApplyGitattributesRequest, Gitaly::ApplyGitattributesResponse
|
17
|
+
rpc :RepositoryExists, ::Gitaly::RepositoryExistsRequest, ::Gitaly::RepositoryExistsResponse
|
18
|
+
rpc :RepackIncremental, ::Gitaly::RepackIncrementalRequest, ::Gitaly::RepackIncrementalResponse
|
19
|
+
rpc :RepackFull, ::Gitaly::RepackFullRequest, ::Gitaly::RepackFullResponse
|
20
|
+
rpc :MidxRepack, ::Gitaly::MidxRepackRequest, ::Gitaly::MidxRepackResponse
|
21
|
+
rpc :GarbageCollect, ::Gitaly::GarbageCollectRequest, ::Gitaly::GarbageCollectResponse
|
22
|
+
rpc :WriteCommitGraph, ::Gitaly::WriteCommitGraphRequest, ::Gitaly::WriteCommitGraphResponse
|
23
|
+
rpc :RepositorySize, ::Gitaly::RepositorySizeRequest, ::Gitaly::RepositorySizeResponse
|
24
|
+
rpc :ApplyGitattributes, ::Gitaly::ApplyGitattributesRequest, ::Gitaly::ApplyGitattributesResponse
|
25
25
|
# FetchRemote fetches references from a remote repository into the local
|
26
26
|
# repository.
|
27
|
-
rpc :FetchRemote, Gitaly::FetchRemoteRequest, Gitaly::FetchRemoteResponse
|
28
|
-
rpc :CreateRepository, Gitaly::CreateRepositoryRequest, Gitaly::CreateRepositoryResponse
|
29
|
-
rpc :GetArchive, Gitaly::GetArchiveRequest, stream(Gitaly::GetArchiveResponse)
|
30
|
-
rpc :HasLocalBranches, Gitaly::HasLocalBranchesRequest, Gitaly::HasLocalBranchesResponse
|
27
|
+
rpc :FetchRemote, ::Gitaly::FetchRemoteRequest, ::Gitaly::FetchRemoteResponse
|
28
|
+
rpc :CreateRepository, ::Gitaly::CreateRepositoryRequest, ::Gitaly::CreateRepositoryResponse
|
29
|
+
rpc :GetArchive, ::Gitaly::GetArchiveRequest, stream(::Gitaly::GetArchiveResponse)
|
30
|
+
rpc :HasLocalBranches, ::Gitaly::HasLocalBranchesRequest, ::Gitaly::HasLocalBranchesResponse
|
31
31
|
# FetchSourceBranch fetches a branch from a second (potentially remote)
|
32
32
|
# repository into the given repository.
|
33
|
-
rpc :FetchSourceBranch, Gitaly::FetchSourceBranchRequest, Gitaly::FetchSourceBranchResponse
|
34
|
-
rpc :Fsck, Gitaly::FsckRequest, Gitaly::FsckResponse
|
35
|
-
rpc :WriteRef, Gitaly::WriteRefRequest, Gitaly::WriteRefResponse
|
36
|
-
rpc :FindMergeBase, Gitaly::FindMergeBaseRequest, Gitaly::FindMergeBaseResponse
|
37
|
-
rpc :CreateFork, Gitaly::CreateForkRequest, Gitaly::CreateForkResponse
|
38
|
-
rpc :CreateRepositoryFromURL, Gitaly::CreateRepositoryFromURLRequest, Gitaly::CreateRepositoryFromURLResponse
|
33
|
+
rpc :FetchSourceBranch, ::Gitaly::FetchSourceBranchRequest, ::Gitaly::FetchSourceBranchResponse
|
34
|
+
rpc :Fsck, ::Gitaly::FsckRequest, ::Gitaly::FsckResponse
|
35
|
+
rpc :WriteRef, ::Gitaly::WriteRefRequest, ::Gitaly::WriteRefResponse
|
36
|
+
rpc :FindMergeBase, ::Gitaly::FindMergeBaseRequest, ::Gitaly::FindMergeBaseResponse
|
37
|
+
rpc :CreateFork, ::Gitaly::CreateForkRequest, ::Gitaly::CreateForkResponse
|
38
|
+
rpc :CreateRepositoryFromURL, ::Gitaly::CreateRepositoryFromURLRequest, ::Gitaly::CreateRepositoryFromURLResponse
|
39
39
|
# CreateBundle creates a bundle from all refs
|
40
|
-
rpc :CreateBundle, Gitaly::CreateBundleRequest, stream(Gitaly::CreateBundleResponse)
|
40
|
+
rpc :CreateBundle, ::Gitaly::CreateBundleRequest, stream(::Gitaly::CreateBundleResponse)
|
41
41
|
# CreateBundleFromRefList creates a bundle from a stream of ref patterns.
|
42
42
|
# When the bundle would be empty the FailedPrecondition error code is returned.
|
43
|
-
rpc :CreateBundleFromRefList, stream(Gitaly::CreateBundleFromRefListRequest), stream(Gitaly::CreateBundleFromRefListResponse)
|
43
|
+
rpc :CreateBundleFromRefList, stream(::Gitaly::CreateBundleFromRefListRequest), stream(::Gitaly::CreateBundleFromRefListResponse)
|
44
44
|
# FetchBundle fetches references from a bundle into the local repository.
|
45
45
|
# Refs will be mirrored to the target repository with the refspec
|
46
46
|
# "+refs/*:refs/*" and refs that do not exist in the bundle will be removed.
|
47
|
-
rpc :FetchBundle, stream(Gitaly::FetchBundleRequest), Gitaly::FetchBundleResponse
|
48
|
-
rpc :CreateRepositoryFromBundle, stream(Gitaly::CreateRepositoryFromBundleRequest), Gitaly::CreateRepositoryFromBundleResponse
|
47
|
+
rpc :FetchBundle, stream(::Gitaly::FetchBundleRequest), ::Gitaly::FetchBundleResponse
|
48
|
+
rpc :CreateRepositoryFromBundle, stream(::Gitaly::CreateRepositoryFromBundleRequest), ::Gitaly::CreateRepositoryFromBundleResponse
|
49
49
|
# GetConfig reads the target repository's gitconfig and streams its contents
|
50
50
|
# back. Returns a NotFound error in case no gitconfig was found.
|
51
|
-
rpc :GetConfig, Gitaly::GetConfigRequest, stream(Gitaly::GetConfigResponse)
|
52
|
-
rpc :FindLicense, Gitaly::FindLicenseRequest, Gitaly::FindLicenseResponse
|
53
|
-
rpc :GetInfoAttributes, Gitaly::GetInfoAttributesRequest, stream(Gitaly::GetInfoAttributesResponse)
|
54
|
-
rpc :CalculateChecksum, Gitaly::CalculateChecksumRequest, Gitaly::CalculateChecksumResponse
|
55
|
-
rpc :Cleanup, Gitaly::CleanupRequest, Gitaly::CleanupResponse
|
56
|
-
rpc :GetSnapshot, Gitaly::GetSnapshotRequest, stream(Gitaly::GetSnapshotResponse)
|
57
|
-
rpc :CreateRepositoryFromSnapshot, Gitaly::CreateRepositoryFromSnapshotRequest, Gitaly::CreateRepositoryFromSnapshotResponse
|
58
|
-
rpc :GetRawChanges, Gitaly::GetRawChangesRequest, stream(Gitaly::GetRawChangesResponse)
|
59
|
-
rpc :SearchFilesByContent, Gitaly::SearchFilesByContentRequest, stream(Gitaly::SearchFilesByContentResponse)
|
60
|
-
rpc :SearchFilesByName, Gitaly::SearchFilesByNameRequest, stream(Gitaly::SearchFilesByNameResponse)
|
61
|
-
rpc :RestoreCustomHooks, stream(Gitaly::RestoreCustomHooksRequest), Gitaly::RestoreCustomHooksResponse
|
62
|
-
rpc :BackupCustomHooks, Gitaly::BackupCustomHooksRequest, stream(Gitaly::BackupCustomHooksResponse)
|
63
|
-
rpc :GetObjectDirectorySize, Gitaly::GetObjectDirectorySizeRequest, Gitaly::GetObjectDirectorySizeResponse
|
64
|
-
rpc :CloneFromPool, Gitaly::CloneFromPoolRequest, Gitaly::CloneFromPoolResponse
|
65
|
-
rpc :CloneFromPoolInternal, Gitaly::CloneFromPoolInternalRequest, Gitaly::CloneFromPoolInternalResponse
|
51
|
+
rpc :GetConfig, ::Gitaly::GetConfigRequest, stream(::Gitaly::GetConfigResponse)
|
52
|
+
rpc :FindLicense, ::Gitaly::FindLicenseRequest, ::Gitaly::FindLicenseResponse
|
53
|
+
rpc :GetInfoAttributes, ::Gitaly::GetInfoAttributesRequest, stream(::Gitaly::GetInfoAttributesResponse)
|
54
|
+
rpc :CalculateChecksum, ::Gitaly::CalculateChecksumRequest, ::Gitaly::CalculateChecksumResponse
|
55
|
+
rpc :Cleanup, ::Gitaly::CleanupRequest, ::Gitaly::CleanupResponse
|
56
|
+
rpc :GetSnapshot, ::Gitaly::GetSnapshotRequest, stream(::Gitaly::GetSnapshotResponse)
|
57
|
+
rpc :CreateRepositoryFromSnapshot, ::Gitaly::CreateRepositoryFromSnapshotRequest, ::Gitaly::CreateRepositoryFromSnapshotResponse
|
58
|
+
rpc :GetRawChanges, ::Gitaly::GetRawChangesRequest, stream(::Gitaly::GetRawChangesResponse)
|
59
|
+
rpc :SearchFilesByContent, ::Gitaly::SearchFilesByContentRequest, stream(::Gitaly::SearchFilesByContentResponse)
|
60
|
+
rpc :SearchFilesByName, ::Gitaly::SearchFilesByNameRequest, stream(::Gitaly::SearchFilesByNameResponse)
|
61
|
+
rpc :RestoreCustomHooks, stream(::Gitaly::RestoreCustomHooksRequest), ::Gitaly::RestoreCustomHooksResponse
|
62
|
+
rpc :BackupCustomHooks, ::Gitaly::BackupCustomHooksRequest, stream(::Gitaly::BackupCustomHooksResponse)
|
63
|
+
rpc :GetObjectDirectorySize, ::Gitaly::GetObjectDirectorySizeRequest, ::Gitaly::GetObjectDirectorySizeResponse
|
66
64
|
# RemoveRepository will move the repository to `+gitaly/tmp/<relative_path>_removed` and
|
67
65
|
# eventually remove it. This ensures that even on networked filesystems the
|
68
66
|
# data is actually removed even if there's someone still handling the data.
|
69
|
-
rpc :RemoveRepository, Gitaly::RemoveRepositoryRequest, Gitaly::RemoveRepositoryResponse
|
70
|
-
rpc :RenameRepository, Gitaly::RenameRepositoryRequest, Gitaly::RenameRepositoryResponse
|
71
|
-
rpc :ReplicateRepository, Gitaly::ReplicateRepositoryRequest, Gitaly::ReplicateRepositoryResponse
|
72
|
-
rpc :OptimizeRepository, Gitaly::OptimizeRepositoryRequest, Gitaly::OptimizeRepositoryResponse
|
67
|
+
rpc :RemoveRepository, ::Gitaly::RemoveRepositoryRequest, ::Gitaly::RemoveRepositoryResponse
|
68
|
+
rpc :RenameRepository, ::Gitaly::RenameRepositoryRequest, ::Gitaly::RenameRepositoryResponse
|
69
|
+
rpc :ReplicateRepository, ::Gitaly::ReplicateRepositoryRequest, ::Gitaly::ReplicateRepositoryResponse
|
70
|
+
rpc :OptimizeRepository, ::Gitaly::OptimizeRepositoryRequest, ::Gitaly::OptimizeRepositoryResponse
|
71
|
+
# PruneUnreachableObjetcs will prune all objects which aren't reachable from
|
72
|
+
# the repository's current set of references. Because pruning can only
|
73
|
+
# happen for objects which aren't packed, you are required to first run
|
74
|
+
# OptimizeRepository to explode any unreachable objects into loose objects.
|
75
|
+
#
|
76
|
+
# Furthermore, this RPC call has a grace period of 30 minutes: any
|
77
|
+
# unreachable loose objects must not have been accessed or modified in the
|
78
|
+
# last 30 minutes. This is a hard requirement to avoid repository corruption.
|
79
|
+
#
|
80
|
+
# To make proper use of this RPC you thus need to call OptimizeRepository,
|
81
|
+
# wait 30 minutes, and then call PruneUnreachableObjects.
|
82
|
+
rpc :PruneUnreachableObjects, ::Gitaly::PruneUnreachableObjectsRequest, ::Gitaly::PruneUnreachableObjectsResponse
|
73
83
|
# SetFullPath writes the "gitlab.fullpath" configuration into the
|
74
84
|
# repository's gitconfig. This is mainly to help debugging purposes in case
|
75
85
|
# an admin inspects the repository's gitconfig such that he can easily see
|
76
86
|
# what the repository name is.
|
77
|
-
rpc :SetFullPath, Gitaly::SetFullPathRequest, Gitaly::SetFullPathResponse
|
87
|
+
rpc :SetFullPath, ::Gitaly::SetFullPathRequest, ::Gitaly::SetFullPathResponse
|
78
88
|
end
|
79
89
|
|
80
90
|
Stub = Service.rpc_stub_class
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: server.proto
|
3
3
|
|
4
|
+
require 'lint_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'lint_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("server.proto", :syntax => :proto3) do
|
9
9
|
add_message "gitaly.ServerInfoRequest" do
|
@@ -31,6 +31,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
31
31
|
optional :available, :int64, 2
|
32
32
|
optional :used, :int64, 3
|
33
33
|
end
|
34
|
+
add_message "gitaly.ClockSyncedRequest" do
|
35
|
+
optional :ntp_host, :string, 1
|
36
|
+
optional :drift_threshold_millis, :int64, 2
|
37
|
+
end
|
38
|
+
add_message "gitaly.ClockSyncedResponse" do
|
39
|
+
optional :synced, :bool, 1
|
40
|
+
end
|
34
41
|
end
|
35
42
|
end
|
36
43
|
|
@@ -41,4 +48,6 @@ module Gitaly
|
|
41
48
|
DiskStatisticsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiskStatisticsRequest").msgclass
|
42
49
|
DiskStatisticsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiskStatisticsResponse").msgclass
|
43
50
|
DiskStatisticsResponse::StorageStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiskStatisticsResponse.StorageStatus").msgclass
|
51
|
+
ClockSyncedRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ClockSyncedRequest").msgclass
|
52
|
+
ClockSyncedResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ClockSyncedResponse").msgclass
|
44
53
|
end
|
@@ -8,14 +8,17 @@ module Gitaly
|
|
8
8
|
module ServerService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include GRPC::GenericService
|
11
|
+
include ::GRPC::GenericService
|
12
12
|
|
13
13
|
self.marshal_class_method = :encode
|
14
14
|
self.unmarshal_class_method = :decode
|
15
15
|
self.service_name = 'gitaly.ServerService'
|
16
16
|
|
17
|
-
rpc :ServerInfo, Gitaly::ServerInfoRequest, Gitaly::ServerInfoResponse
|
18
|
-
rpc :DiskStatistics, Gitaly::DiskStatisticsRequest, Gitaly::DiskStatisticsResponse
|
17
|
+
rpc :ServerInfo, ::Gitaly::ServerInfoRequest, ::Gitaly::ServerInfoResponse
|
18
|
+
rpc :DiskStatistics, ::Gitaly::DiskStatisticsRequest, ::Gitaly::DiskStatisticsResponse
|
19
|
+
# ClockSynced checks if machine clock is synced
|
20
|
+
# (the offset is less that the one passed in the request).
|
21
|
+
rpc :ClockSynced, ::Gitaly::ClockSyncedRequest, ::Gitaly::ClockSyncedResponse
|
19
22
|
end
|
20
23
|
|
21
24
|
Stub = Service.rpc_stub_class
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: shared.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/protobuf/timestamp_pb'
|
7
5
|
require 'lint_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("shared.proto", :syntax => :proto3) do
|
10
10
|
add_message "gitaly.Repository" do
|
@@ -84,6 +84,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
84
84
|
value :NONE, 0
|
85
85
|
value :PGP, 1
|
86
86
|
value :X509, 2
|
87
|
+
value :SSH, 3
|
87
88
|
end
|
88
89
|
add_enum "gitaly.SortDirection" do
|
89
90
|
value :ASCENDING, 0
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: smarthttp.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'lint_pb'
|
7
5
|
require 'shared_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("smarthttp.proto", :syntax => :proto3) do
|
10
10
|
add_message "gitaly.InfoRefsRequest" do
|
@@ -8,7 +8,7 @@ module Gitaly
|
|
8
8
|
module SmartHTTPService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include GRPC::GenericService
|
11
|
+
include ::GRPC::GenericService
|
12
12
|
|
13
13
|
self.marshal_class_method = :encode
|
14
14
|
self.unmarshal_class_method = :decode
|
@@ -17,17 +17,17 @@ module Gitaly
|
|
17
17
|
# The response body for GET /info/refs?service=git-upload-pack
|
18
18
|
# Will be invoked when the user executes a `git fetch`, meaning the server
|
19
19
|
# will upload the packs to that user. The user doesn't upload new objects.
|
20
|
-
rpc :InfoRefsUploadPack, Gitaly::InfoRefsRequest, stream(Gitaly::InfoRefsResponse)
|
20
|
+
rpc :InfoRefsUploadPack, ::Gitaly::InfoRefsRequest, stream(::Gitaly::InfoRefsResponse)
|
21
21
|
# The response body for GET /info/refs?service=git-receive-pack
|
22
22
|
# Will be invoked when the user executes a `git push`, but only advertises
|
23
23
|
# references to the user.
|
24
|
-
rpc :InfoRefsReceivePack, Gitaly::InfoRefsRequest, stream(Gitaly::InfoRefsResponse)
|
24
|
+
rpc :InfoRefsReceivePack, ::Gitaly::InfoRefsRequest, stream(::Gitaly::InfoRefsResponse)
|
25
25
|
# Request and response body for POST /upload-pack
|
26
|
-
rpc :PostUploadPack, stream(Gitaly::PostUploadPackRequest), stream(Gitaly::PostUploadPackResponse)
|
26
|
+
rpc :PostUploadPack, stream(::Gitaly::PostUploadPackRequest), stream(::Gitaly::PostUploadPackResponse)
|
27
27
|
# Request and response body for POST /upload-pack using sidechannel protocol
|
28
|
-
rpc :PostUploadPackWithSidechannel, Gitaly::PostUploadPackWithSidechannelRequest, Gitaly::PostUploadPackWithSidechannelResponse
|
28
|
+
rpc :PostUploadPackWithSidechannel, ::Gitaly::PostUploadPackWithSidechannelRequest, ::Gitaly::PostUploadPackWithSidechannelResponse
|
29
29
|
# Request and response body for POST /receive-pack
|
30
|
-
rpc :PostReceivePack, stream(Gitaly::PostReceivePackRequest), stream(Gitaly::PostReceivePackResponse)
|
30
|
+
rpc :PostReceivePack, stream(::Gitaly::PostReceivePackRequest), stream(::Gitaly::PostReceivePackResponse)
|
31
31
|
end
|
32
32
|
|
33
33
|
Stub = Service.rpc_stub_class
|