gitaly 14.2.0.pre.rc1 → 14.4.0.pre.rc43
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 +18 -0
- data/ruby/proto/gitaly/blob_services_pb.rb +10 -7
- data/ruby/proto/gitaly/cleanup_services_pb.rb +2 -2
- data/ruby/proto/gitaly/commit_services_pb.rb +24 -24
- data/ruby/proto/gitaly/conflicts_services_pb.rb +3 -3
- data/ruby/proto/gitaly/diff_services_pb.rb +7 -7
- data/ruby/proto/gitaly/errors_pb.rb +19 -0
- data/ruby/proto/gitaly/hook_pb.rb +8 -0
- data/ruby/proto/gitaly/hook_services_pb.rb +9 -6
- data/ruby/proto/gitaly/internal_services_pb.rb +2 -2
- data/ruby/proto/gitaly/namespace_services_pb.rb +5 -5
- data/ruby/proto/gitaly/objectpool_services_pb.rb +19 -9
- data/ruby/proto/gitaly/operations_pb.rb +7 -0
- data/ruby/proto/gitaly/operations_services_pb.rb +16 -16
- data/ruby/proto/gitaly/praefect_services_pb.rb +5 -5
- data/ruby/proto/gitaly/ref_pb.rb +39 -20
- data/ruby/proto/gitaly/ref_services_pb.rb +27 -21
- data/ruby/proto/gitaly/remote_pb.rb +0 -44
- data/ruby/proto/gitaly/remote_services_pb.rb +4 -7
- data/ruby/proto/gitaly/repository-service_pb.rb +24 -43
- data/ruby/proto/gitaly/repository-service_services_pb.rb +53 -44
- data/ruby/proto/gitaly/server_services_pb.rb +3 -3
- data/ruby/proto/gitaly/shared_pb.rb +5 -0
- data/ruby/proto/gitaly/smarthttp_pb.rb +9 -0
- data/ruby/proto/gitaly/smarthttp_services_pb.rb +7 -5
- data/ruby/proto/gitaly/ssh_services_pb.rb +4 -4
- data/ruby/proto/gitaly/transaction_services_pb.rb +3 -3
- data/ruby/proto/gitaly/version.rb +1 -1
- data/ruby/proto/gitaly/wiki_services_pb.rb +6 -6
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86cd7cffc8d2d7ddb92df9c1358c96668bab98f186173413f7b8978e6b42ef32
|
4
|
+
data.tar.gz: a1121d049ae738779f1b5a84e4fd6e2c9ac32a9c229b1851a1c899d5d5107690
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '092558c8b29bb832bd26ffb6dc95a1724be8cc1d3ebae679163fc0f460e0855cdda29e6c7df2f471f8a3b51c08297e662f8d266853df3a43c8674f5e02429024'
|
7
|
+
data.tar.gz: 1c16e54ceffc250bde7716dadb33c15388efdada93e1611896793bcf437057202d0ee035e156c18b9a377690ae40444eac3b63a74a094282dd95e95ec40be6a7
|
@@ -41,6 +41,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
41
41
|
repeated :revisions, :string, 2
|
42
42
|
optional :limit, :uint32, 3
|
43
43
|
optional :bytes_limit, :int64, 4
|
44
|
+
optional :with_paths, :bool, 5
|
44
45
|
end
|
45
46
|
add_message "gitaly.ListBlobsResponse" do
|
46
47
|
repeated :blobs, :message, 1, "gitaly.ListBlobsResponse.Blob"
|
@@ -49,6 +50,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
49
50
|
optional :oid, :string, 1
|
50
51
|
optional :size, :int64, 2
|
51
52
|
optional :data, :bytes, 3
|
53
|
+
optional :path, :bytes, 4
|
54
|
+
end
|
55
|
+
add_message "gitaly.ListAllBlobsRequest" do
|
56
|
+
optional :repository, :message, 1, "gitaly.Repository"
|
57
|
+
optional :limit, :uint32, 2
|
58
|
+
optional :bytes_limit, :int64, 3
|
59
|
+
end
|
60
|
+
add_message "gitaly.ListAllBlobsResponse" do
|
61
|
+
repeated :blobs, :message, 1, "gitaly.ListAllBlobsResponse.Blob"
|
62
|
+
end
|
63
|
+
add_message "gitaly.ListAllBlobsResponse.Blob" do
|
64
|
+
optional :oid, :string, 1
|
65
|
+
optional :size, :int64, 2
|
66
|
+
optional :data, :bytes, 3
|
52
67
|
end
|
53
68
|
add_message "gitaly.LFSPointer" do
|
54
69
|
optional :size, :int64, 1
|
@@ -94,6 +109,9 @@ module Gitaly
|
|
94
109
|
ListBlobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListBlobsRequest").msgclass
|
95
110
|
ListBlobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListBlobsResponse").msgclass
|
96
111
|
ListBlobsResponse::Blob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListBlobsResponse.Blob").msgclass
|
112
|
+
ListAllBlobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListAllBlobsRequest").msgclass
|
113
|
+
ListAllBlobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListAllBlobsResponse").msgclass
|
114
|
+
ListAllBlobsResponse::Blob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListAllBlobsResponse.Blob").msgclass
|
97
115
|
LFSPointer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LFSPointer").msgclass
|
98
116
|
NewBlobObject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.NewBlobObject").msgclass
|
99
117
|
GetLFSPointersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetLFSPointersRequest").msgclass
|
@@ -8,7 +8,7 @@ module Gitaly
|
|
8
8
|
module BlobService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include
|
11
|
+
include GRPC::GenericService
|
12
12
|
|
13
13
|
self.marshal_class_method = :encode
|
14
14
|
self.unmarshal_class_method = :decode
|
@@ -17,26 +17,29 @@ module Gitaly
|
|
17
17
|
# GetBlob returns the contents of a blob object referenced by its object
|
18
18
|
# ID. We use a stream to return a chunked arbitrarily large binary
|
19
19
|
# response
|
20
|
-
rpc :GetBlob,
|
21
|
-
rpc :GetBlobs,
|
20
|
+
rpc :GetBlob, Gitaly::GetBlobRequest, stream(Gitaly::GetBlobResponse)
|
21
|
+
rpc :GetBlobs, Gitaly::GetBlobsRequest, stream(Gitaly::GetBlobsResponse)
|
22
22
|
# ListBlobs will list all blobs reachable from a given set of revisions by
|
23
23
|
# doing a graph walk. It is not valid to pass revisions which do not resolve
|
24
24
|
# to an existing object.
|
25
|
-
rpc :ListBlobs,
|
25
|
+
rpc :ListBlobs, Gitaly::ListBlobsRequest, stream(Gitaly::ListBlobsResponse)
|
26
|
+
# ListAllBlobs retrieves all blobs pointers in the repository, including
|
27
|
+
# those not reachable by any reference.
|
28
|
+
rpc :ListAllBlobs, Gitaly::ListAllBlobsRequest, stream(Gitaly::ListAllBlobsResponse)
|
26
29
|
# GetLFSPointers retrieves LFS pointers from a given set of object IDs.
|
27
30
|
# This RPC filters all requested objects and only returns those which refer
|
28
31
|
# to a valid LFS pointer.
|
29
|
-
rpc :GetLFSPointers,
|
32
|
+
rpc :GetLFSPointers, Gitaly::GetLFSPointersRequest, stream(Gitaly::GetLFSPointersResponse)
|
30
33
|
# ListLFSPointers retrieves LFS pointers reachable from a given set of
|
31
34
|
# revisions by doing a graph walk. This includes both normal revisions like
|
32
35
|
# an object ID or branch, but also the pseudo-revisions "--all" and "--not"
|
33
36
|
# as documented in git-rev-parse(1). Revisions which don't directly or
|
34
37
|
# transitively reference any LFS pointers are ignored. It is not valid to
|
35
38
|
# pass revisions which do not resolve to an existing object.
|
36
|
-
rpc :ListLFSPointers,
|
39
|
+
rpc :ListLFSPointers, Gitaly::ListLFSPointersRequest, stream(Gitaly::ListLFSPointersResponse)
|
37
40
|
# ListAllLFSPointers retrieves all LFS pointers in the repository, including
|
38
41
|
# those not reachable by any reference.
|
39
|
-
rpc :ListAllLFSPointers,
|
42
|
+
rpc :ListAllLFSPointers, Gitaly::ListAllLFSPointersRequest, stream(Gitaly::ListAllLFSPointersResponse)
|
40
43
|
end
|
41
44
|
|
42
45
|
Stub = Service.rpc_stub_class
|
@@ -8,13 +8,13 @@ module Gitaly
|
|
8
8
|
module CleanupService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include
|
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.CleanupService'
|
16
16
|
|
17
|
-
rpc :ApplyBfgObjectMapStream, stream(
|
17
|
+
rpc :ApplyBfgObjectMapStream, stream(Gitaly::ApplyBfgObjectMapStreamRequest), stream(Gitaly::ApplyBfgObjectMapStreamResponse)
|
18
18
|
end
|
19
19
|
|
20
20
|
Stub = Service.rpc_stub_class
|
@@ -8,7 +8,7 @@ module Gitaly
|
|
8
8
|
module CommitService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include
|
11
|
+
include GRPC::GenericService
|
12
12
|
|
13
13
|
self.marshal_class_method = :encode
|
14
14
|
self.unmarshal_class_method = :decode
|
@@ -18,32 +18,32 @@ module Gitaly
|
|
18
18
|
# graph walk. This deprecates ListNewCommits, FindAllCommits, FindCommits
|
19
19
|
# (except Follow is not yet supported) and CommitsBetweenRequest. Any
|
20
20
|
# unknown revisions will cause the RPC to fail.
|
21
|
-
rpc :ListCommits,
|
21
|
+
rpc :ListCommits, Gitaly::ListCommitsRequest, stream(Gitaly::ListCommitsResponse)
|
22
22
|
# ListAllCommits lists all commits present in the repository, including
|
23
23
|
# those not reachable by any reference.
|
24
|
-
rpc :ListAllCommits,
|
25
|
-
rpc :CommitIsAncestor,
|
26
|
-
rpc :TreeEntry,
|
27
|
-
rpc :CommitsBetween,
|
28
|
-
rpc :CountCommits,
|
29
|
-
rpc :CountDivergingCommits,
|
30
|
-
rpc :GetTreeEntries,
|
31
|
-
rpc :ListFiles,
|
32
|
-
rpc :FindCommit,
|
33
|
-
rpc :CommitStats,
|
24
|
+
rpc :ListAllCommits, Gitaly::ListAllCommitsRequest, stream(Gitaly::ListAllCommitsResponse)
|
25
|
+
rpc :CommitIsAncestor, Gitaly::CommitIsAncestorRequest, Gitaly::CommitIsAncestorResponse
|
26
|
+
rpc :TreeEntry, Gitaly::TreeEntryRequest, stream(Gitaly::TreeEntryResponse)
|
27
|
+
rpc :CommitsBetween, Gitaly::CommitsBetweenRequest, stream(Gitaly::CommitsBetweenResponse)
|
28
|
+
rpc :CountCommits, Gitaly::CountCommitsRequest, Gitaly::CountCommitsResponse
|
29
|
+
rpc :CountDivergingCommits, Gitaly::CountDivergingCommitsRequest, Gitaly::CountDivergingCommitsResponse
|
30
|
+
rpc :GetTreeEntries, Gitaly::GetTreeEntriesRequest, stream(Gitaly::GetTreeEntriesResponse)
|
31
|
+
rpc :ListFiles, Gitaly::ListFilesRequest, stream(Gitaly::ListFilesResponse)
|
32
|
+
rpc :FindCommit, Gitaly::FindCommitRequest, Gitaly::FindCommitResponse
|
33
|
+
rpc :CommitStats, Gitaly::CommitStatsRequest, Gitaly::CommitStatsResponse
|
34
34
|
# Use a stream to paginate the result set
|
35
|
-
rpc :FindAllCommits,
|
36
|
-
rpc :FindCommits,
|
37
|
-
rpc :CommitLanguages,
|
38
|
-
rpc :RawBlame,
|
39
|
-
rpc :LastCommitForPath,
|
40
|
-
rpc :ListLastCommitsForTree,
|
41
|
-
rpc :CommitsByMessage,
|
42
|
-
rpc :ListCommitsByOid,
|
43
|
-
rpc :ListCommitsByRefName,
|
44
|
-
rpc :FilterShasWithSignatures, stream(
|
45
|
-
rpc :GetCommitSignatures,
|
46
|
-
rpc :GetCommitMessages,
|
35
|
+
rpc :FindAllCommits, Gitaly::FindAllCommitsRequest, stream(Gitaly::FindAllCommitsResponse)
|
36
|
+
rpc :FindCommits, Gitaly::FindCommitsRequest, stream(Gitaly::FindCommitsResponse)
|
37
|
+
rpc :CommitLanguages, Gitaly::CommitLanguagesRequest, Gitaly::CommitLanguagesResponse
|
38
|
+
rpc :RawBlame, Gitaly::RawBlameRequest, stream(Gitaly::RawBlameResponse)
|
39
|
+
rpc :LastCommitForPath, Gitaly::LastCommitForPathRequest, Gitaly::LastCommitForPathResponse
|
40
|
+
rpc :ListLastCommitsForTree, Gitaly::ListLastCommitsForTreeRequest, stream(Gitaly::ListLastCommitsForTreeResponse)
|
41
|
+
rpc :CommitsByMessage, Gitaly::CommitsByMessageRequest, stream(Gitaly::CommitsByMessageResponse)
|
42
|
+
rpc :ListCommitsByOid, Gitaly::ListCommitsByOidRequest, stream(Gitaly::ListCommitsByOidResponse)
|
43
|
+
rpc :ListCommitsByRefName, Gitaly::ListCommitsByRefNameRequest, stream(Gitaly::ListCommitsByRefNameResponse)
|
44
|
+
rpc :FilterShasWithSignatures, stream(Gitaly::FilterShasWithSignaturesRequest), stream(Gitaly::FilterShasWithSignaturesResponse)
|
45
|
+
rpc :GetCommitSignatures, Gitaly::GetCommitSignaturesRequest, stream(Gitaly::GetCommitSignaturesResponse)
|
46
|
+
rpc :GetCommitMessages, Gitaly::GetCommitMessagesRequest, stream(Gitaly::GetCommitMessagesResponse)
|
47
47
|
end
|
48
48
|
|
49
49
|
Stub = Service.rpc_stub_class
|
@@ -8,17 +8,17 @@ module Gitaly
|
|
8
8
|
module ConflictsService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include
|
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.ConflictsService'
|
16
16
|
|
17
|
-
rpc :ListConflictFiles,
|
17
|
+
rpc :ListConflictFiles, Gitaly::ListConflictFilesRequest, stream(Gitaly::ListConflictFilesResponse)
|
18
18
|
# ResolveConflicts tries to resolve a conflicting merge with a set of
|
19
19
|
# user-provided merge resolutions. If resolving the conflict succeeds, the
|
20
20
|
# result will be a new merge commit.
|
21
|
-
rpc :ResolveConflicts, stream(
|
21
|
+
rpc :ResolveConflicts, stream(Gitaly::ResolveConflictsRequest), Gitaly::ResolveConflictsResponse
|
22
22
|
end
|
23
23
|
|
24
24
|
Stub = Service.rpc_stub_class
|
@@ -8,21 +8,21 @@ module Gitaly
|
|
8
8
|
module DiffService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include
|
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.DiffService'
|
16
16
|
|
17
17
|
# Returns stream of CommitDiffResponse with patches chunked over messages
|
18
|
-
rpc :CommitDiff,
|
18
|
+
rpc :CommitDiff, Gitaly::CommitDiffRequest, stream(Gitaly::CommitDiffResponse)
|
19
19
|
# Return a stream so we can divide the response in chunks of deltas
|
20
|
-
rpc :CommitDelta,
|
21
|
-
rpc :RawDiff,
|
22
|
-
rpc :RawPatch,
|
23
|
-
rpc :DiffStats,
|
20
|
+
rpc :CommitDelta, Gitaly::CommitDeltaRequest, stream(Gitaly::CommitDeltaResponse)
|
21
|
+
rpc :RawDiff, Gitaly::RawDiffRequest, stream(Gitaly::RawDiffResponse)
|
22
|
+
rpc :RawPatch, Gitaly::RawPatchRequest, stream(Gitaly::RawPatchResponse)
|
23
|
+
rpc :DiffStats, Gitaly::DiffStatsRequest, stream(Gitaly::DiffStatsResponse)
|
24
24
|
# Return a list of files changed along with the status of each file
|
25
|
-
rpc :FindChangedPaths,
|
25
|
+
rpc :FindChangedPaths, Gitaly::FindChangedPathsRequest, stream(Gitaly::FindChangedPathsResponse)
|
26
26
|
end
|
27
27
|
|
28
28
|
Stub = Service.rpc_stub_class
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: errors.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("errors.proto", :syntax => :proto3) do
|
8
|
+
add_message "gitaly.AccessCheckError" do
|
9
|
+
optional :error_message, :string, 1
|
10
|
+
optional :protocol, :string, 2
|
11
|
+
optional :user_id, :string, 3
|
12
|
+
optional :changes, :bytes, 4
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
module Gitaly
|
18
|
+
AccessCheckError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.AccessCheckError").msgclass
|
19
|
+
end
|
@@ -66,6 +66,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
66
66
|
optional :stdout, :bytes, 1
|
67
67
|
optional :stderr, :bytes, 2
|
68
68
|
end
|
69
|
+
add_message "gitaly.PackObjectsHookWithSidechannelRequest" do
|
70
|
+
optional :repository, :message, 1, "gitaly.Repository"
|
71
|
+
repeated :args, :string, 2
|
72
|
+
end
|
73
|
+
add_message "gitaly.PackObjectsHookWithSidechannelResponse" do
|
74
|
+
end
|
69
75
|
end
|
70
76
|
end
|
71
77
|
|
@@ -81,4 +87,6 @@ module Gitaly
|
|
81
87
|
ReferenceTransactionHookResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceTransactionHookResponse").msgclass
|
82
88
|
PackObjectsHookRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackObjectsHookRequest").msgclass
|
83
89
|
PackObjectsHookResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackObjectsHookResponse").msgclass
|
90
|
+
PackObjectsHookWithSidechannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackObjectsHookWithSidechannelRequest").msgclass
|
91
|
+
PackObjectsHookWithSidechannelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackObjectsHookWithSidechannelResponse").msgclass
|
84
92
|
end
|
@@ -8,20 +8,23 @@ module Gitaly
|
|
8
8
|
module HookService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include
|
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.HookService'
|
16
16
|
|
17
|
-
rpc :PreReceiveHook, stream(
|
18
|
-
rpc :PostReceiveHook, stream(
|
19
|
-
rpc :UpdateHook,
|
20
|
-
rpc :ReferenceTransactionHook, stream(
|
17
|
+
rpc :PreReceiveHook, stream(Gitaly::PreReceiveHookRequest), stream(Gitaly::PreReceiveHookResponse)
|
18
|
+
rpc :PostReceiveHook, stream(Gitaly::PostReceiveHookRequest), stream(Gitaly::PostReceiveHookResponse)
|
19
|
+
rpc :UpdateHook, Gitaly::UpdateHookRequest, stream(Gitaly::UpdateHookResponse)
|
20
|
+
rpc :ReferenceTransactionHook, stream(Gitaly::ReferenceTransactionHookRequest), stream(Gitaly::ReferenceTransactionHookResponse)
|
21
21
|
# PackObjectsHook is meant to be called by git-upload-pack via the
|
22
22
|
# uploadpack.packObjectsHook mechanism. It generates a stream of packed
|
23
23
|
# Git objects.
|
24
|
-
rpc :PackObjectsHook, stream(
|
24
|
+
rpc :PackObjectsHook, stream(Gitaly::PackObjectsHookRequest), stream(Gitaly::PackObjectsHookResponse)
|
25
|
+
# PackObjectsHookWithSidechannel is an optimized version of PackObjectsHook that uses
|
26
|
+
# a unix socket side channel.
|
27
|
+
rpc :PackObjectsHookWithSidechannel, Gitaly::PackObjectsHookWithSidechannelRequest, Gitaly::PackObjectsHookWithSidechannelResponse
|
25
28
|
end
|
26
29
|
|
27
30
|
Stub = Service.rpc_stub_class
|
@@ -10,7 +10,7 @@ module Gitaly
|
|
10
10
|
# only reachable by Praefect or other Gitalies
|
11
11
|
class Service
|
12
12
|
|
13
|
-
include
|
13
|
+
include GRPC::GenericService
|
14
14
|
|
15
15
|
self.marshal_class_method = :encode
|
16
16
|
self.unmarshal_class_method = :decode
|
@@ -18,7 +18,7 @@ module Gitaly
|
|
18
18
|
|
19
19
|
# WalkRepos walks the storage and streams back all known git repos on the
|
20
20
|
# requested storage
|
21
|
-
rpc :WalkRepos,
|
21
|
+
rpc :WalkRepos, Gitaly::WalkReposRequest, stream(Gitaly::WalkReposResponse)
|
22
22
|
end
|
23
23
|
|
24
24
|
Stub = Service.rpc_stub_class
|
@@ -8,16 +8,16 @@ module Gitaly
|
|
8
8
|
module NamespaceService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include
|
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.NamespaceService'
|
16
16
|
|
17
|
-
rpc :AddNamespace,
|
18
|
-
rpc :RemoveNamespace,
|
19
|
-
rpc :RenameNamespace,
|
20
|
-
rpc :NamespaceExists,
|
17
|
+
rpc :AddNamespace, Gitaly::AddNamespaceRequest, Gitaly::AddNamespaceResponse
|
18
|
+
rpc :RemoveNamespace, Gitaly::RemoveNamespaceRequest, Gitaly::RemoveNamespaceResponse
|
19
|
+
rpc :RenameNamespace, Gitaly::RenameNamespaceRequest, Gitaly::RenameNamespaceResponse
|
20
|
+
rpc :NamespaceExists, Gitaly::NamespaceExistsRequest, Gitaly::NamespaceExistsResponse
|
21
21
|
end
|
22
22
|
|
23
23
|
Stub = Service.rpc_stub_class
|
@@ -8,21 +8,31 @@ module Gitaly
|
|
8
8
|
module ObjectPoolService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include
|
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.ObjectPoolService'
|
16
16
|
|
17
|
-
rpc :CreateObjectPool,
|
18
|
-
rpc :DeleteObjectPool,
|
17
|
+
rpc :CreateObjectPool, Gitaly::CreateObjectPoolRequest, Gitaly::CreateObjectPoolResponse
|
18
|
+
rpc :DeleteObjectPool, Gitaly::DeleteObjectPoolRequest, Gitaly::DeleteObjectPoolResponse
|
19
19
|
# Repositories are assumed to be stored on the same disk
|
20
|
-
rpc :LinkRepositoryToObjectPool,
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
20
|
+
rpc :LinkRepositoryToObjectPool, Gitaly::LinkRepositoryToObjectPoolRequest, Gitaly::LinkRepositoryToObjectPoolResponse
|
21
|
+
# UnlinkRepositoryFromObjectPool does not unlink the repository from the
|
22
|
+
# object pool as you'd think, but all it really does is to remove the object
|
23
|
+
# pool's remote pointing to the repository. And even this is a no-op given
|
24
|
+
# that we'd try to remove the remote by the repository's `GlRepository()`
|
25
|
+
# name, which we never create in the first place. To unlink repositories
|
26
|
+
# from an object pool, you'd really want to execute DisconnectGitAlternates
|
27
|
+
# to remove the repository's link to the pool's object database.
|
28
|
+
#
|
29
|
+
# This function is never called by anyone and highly misleading. It's thus
|
30
|
+
# deprecated and will be removed in v14.4.
|
31
|
+
rpc :UnlinkRepositoryFromObjectPool, Gitaly::UnlinkRepositoryFromObjectPoolRequest, Gitaly::UnlinkRepositoryFromObjectPoolResponse
|
32
|
+
rpc :ReduplicateRepository, Gitaly::ReduplicateRepositoryRequest, Gitaly::ReduplicateRepositoryResponse
|
33
|
+
rpc :DisconnectGitAlternates, Gitaly::DisconnectGitAlternatesRequest, Gitaly::DisconnectGitAlternatesResponse
|
34
|
+
rpc :FetchIntoObjectPool, Gitaly::FetchIntoObjectPoolRequest, Gitaly::FetchIntoObjectPoolResponse
|
35
|
+
rpc :GetObjectPool, Gitaly::GetObjectPoolRequest, Gitaly::GetObjectPoolResponse
|
26
36
|
end
|
27
37
|
|
28
38
|
Stub = Service.rpc_stub_class
|
@@ -5,6 +5,7 @@ require 'google/protobuf'
|
|
5
5
|
|
6
6
|
require 'lint_pb'
|
7
7
|
require 'shared_pb'
|
8
|
+
require 'errors_pb'
|
8
9
|
require 'google/protobuf/timestamp_pb'
|
9
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
11
|
add_file("operations.proto", :syntax => :proto3) do
|
@@ -71,6 +72,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
71
72
|
optional :branch_update, :message, 3, "gitaly.OperationBranchUpdate"
|
72
73
|
optional :pre_receive_error, :string, 4
|
73
74
|
end
|
75
|
+
add_message "gitaly.UserMergeBranchError" do
|
76
|
+
oneof :error do
|
77
|
+
optional :access_check, :message, 1, "gitaly.AccessCheckError"
|
78
|
+
end
|
79
|
+
end
|
74
80
|
add_message "gitaly.UserMergeToRefRequest" do
|
75
81
|
optional :repository, :message, 1, "gitaly.Repository"
|
76
82
|
optional :user, :message, 2, "gitaly.User"
|
@@ -277,6 +283,7 @@ module Gitaly
|
|
277
283
|
UserCreateTagResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCreateTagResponse").msgclass
|
278
284
|
UserMergeBranchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserMergeBranchRequest").msgclass
|
279
285
|
UserMergeBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserMergeBranchResponse").msgclass
|
286
|
+
UserMergeBranchError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserMergeBranchError").msgclass
|
280
287
|
UserMergeToRefRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserMergeToRefRequest").msgclass
|
281
288
|
UserMergeToRefResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserMergeToRefResponse").msgclass
|
282
289
|
OperationBranchUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OperationBranchUpdate").msgclass
|
@@ -12,23 +12,23 @@ module Gitaly
|
|
12
12
|
# '/allowed' endpoint.
|
13
13
|
class Service
|
14
14
|
|
15
|
-
include
|
15
|
+
include GRPC::GenericService
|
16
16
|
|
17
17
|
self.marshal_class_method = :encode
|
18
18
|
self.unmarshal_class_method = :decode
|
19
19
|
self.service_name = 'gitaly.OperationService'
|
20
20
|
|
21
|
-
rpc :UserCreateBranch,
|
22
|
-
rpc :UserUpdateBranch,
|
23
|
-
rpc :UserDeleteBranch,
|
21
|
+
rpc :UserCreateBranch, Gitaly::UserCreateBranchRequest, Gitaly::UserCreateBranchResponse
|
22
|
+
rpc :UserUpdateBranch, Gitaly::UserUpdateBranchRequest, Gitaly::UserUpdateBranchResponse
|
23
|
+
rpc :UserDeleteBranch, Gitaly::UserDeleteBranchRequest, Gitaly::UserDeleteBranchResponse
|
24
24
|
# UserCreateTag creates a new tag.
|
25
|
-
rpc :UserCreateTag,
|
26
|
-
rpc :UserDeleteTag,
|
25
|
+
rpc :UserCreateTag, Gitaly::UserCreateTagRequest, Gitaly::UserCreateTagResponse
|
26
|
+
rpc :UserDeleteTag, Gitaly::UserDeleteTagRequest, Gitaly::UserDeleteTagResponse
|
27
27
|
# UserMergeRef creates a merge commit and updates target_ref to point to that
|
28
28
|
# new commit. The first parent of the merge commit (the main line) is taken
|
29
29
|
# from first_parent_ref. The second parent is specified by its commit ID in source_sha.
|
30
30
|
# If target_ref already exists it will be overwritten.
|
31
|
-
rpc :UserMergeToRef,
|
31
|
+
rpc :UserMergeToRef, Gitaly::UserMergeToRefRequest, Gitaly::UserMergeToRefResponse
|
32
32
|
# UserMergeBranch tries to merge the given commit into the target branch.
|
33
33
|
# The merge commit is created with the given user as author/committer and
|
34
34
|
# the given message.
|
@@ -38,20 +38,20 @@ module Gitaly
|
|
38
38
|
# requested merge, which will result in a response with the created merge
|
39
39
|
# commit ID. Only if a second message with `apply = true` is sent will the
|
40
40
|
# merge be applied.
|
41
|
-
rpc :UserMergeBranch, stream(
|
41
|
+
rpc :UserMergeBranch, stream(Gitaly::UserMergeBranchRequest), stream(Gitaly::UserMergeBranchResponse)
|
42
42
|
# UserFFBranch tries to perform a fast-forward merge of the given branch to
|
43
43
|
# the given commit. If the merge is not a fast-forward merge, the request
|
44
44
|
# will fail. The RPC will return an empty response in case updating the
|
45
45
|
# reference fails e.g. because of a race.
|
46
|
-
rpc :UserFFBranch,
|
46
|
+
rpc :UserFFBranch, Gitaly::UserFFBranchRequest, Gitaly::UserFFBranchResponse
|
47
47
|
# UserCherryPick tries to perform a cherry-pick of a given commit onto a
|
48
48
|
# branch.
|
49
|
-
rpc :UserCherryPick,
|
49
|
+
rpc :UserCherryPick, Gitaly::UserCherryPickRequest, Gitaly::UserCherryPickResponse
|
50
50
|
# UserCommitFiles builds a commit from a stream of actions and updates the target branch to point to it.
|
51
51
|
# UserCommitFilesRequest with a UserCommitFilesRequestHeader must be sent as the first message of the stream.
|
52
52
|
# Following that, a variable number of actions can be sent to build a new commit. Each action consists of
|
53
53
|
# a header followed by content if used by the action.
|
54
|
-
rpc :UserCommitFiles, stream(
|
54
|
+
rpc :UserCommitFiles, stream(Gitaly::UserCommitFilesRequest), Gitaly::UserCommitFilesResponse
|
55
55
|
# UserRebaseConfirmable rebases the given remote branch onto a target
|
56
56
|
# branch. The remote branch may be part of another repository.
|
57
57
|
#
|
@@ -60,15 +60,15 @@ module Gitaly
|
|
60
60
|
# requested rebase, which will result in a response with the created rebase
|
61
61
|
# commit ID. Only if a second message with `apply = true` is sent will the
|
62
62
|
# rebase be applied.
|
63
|
-
rpc :UserRebaseConfirmable, stream(
|
63
|
+
rpc :UserRebaseConfirmable, stream(Gitaly::UserRebaseConfirmableRequest), stream(Gitaly::UserRebaseConfirmableResponse)
|
64
64
|
# UserRevert tries to perform a revert of a given commit onto a branch.
|
65
|
-
rpc :UserRevert,
|
65
|
+
rpc :UserRevert, Gitaly::UserRevertRequest, Gitaly::UserRevertResponse
|
66
66
|
# UserSquash squashes a range of commits into a single commit.
|
67
|
-
rpc :UserSquash,
|
67
|
+
rpc :UserSquash, Gitaly::UserSquashRequest, Gitaly::UserSquashResponse
|
68
68
|
# UserApplyPatch applies patches to a given branch.
|
69
|
-
rpc :UserApplyPatch, stream(
|
69
|
+
rpc :UserApplyPatch, stream(Gitaly::UserApplyPatchRequest), Gitaly::UserApplyPatchResponse
|
70
70
|
# UserUpdateSubmodule updates a submodule to point to a new commit.
|
71
|
-
rpc :UserUpdateSubmodule,
|
71
|
+
rpc :UserUpdateSubmodule, Gitaly::UserUpdateSubmoduleRequest, Gitaly::UserUpdateSubmoduleResponse
|
72
72
|
end
|
73
73
|
|
74
74
|
Stub = Service.rpc_stub_class
|
@@ -8,19 +8,19 @@ module Gitaly
|
|
8
8
|
module PraefectInfoService
|
9
9
|
class Service
|
10
10
|
|
11
|
-
include
|
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,
|
17
|
+
rpc :RepositoryReplicas, Gitaly::RepositoryReplicasRequest, Gitaly::RepositoryReplicasResponse
|
18
18
|
# DatalossCheck checks for unavailable repositories.
|
19
|
-
rpc :DatalossCheck,
|
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,
|
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,7 @@ 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,
|
32
|
+
rpc :SetReplicationFactor, Gitaly::SetReplicationFactorRequest, Gitaly::SetReplicationFactorResponse
|
33
33
|
end
|
34
34
|
|
35
35
|
Stub = Service.rpc_stub_class
|