gitaly 15.0.0.pre.rc2 → 15.0.0.pre.rc3
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 +4 -4
- data/ruby/proto/gitaly/blob_services_pb.rb +3 -0
- data/ruby/proto/gitaly/cleanup_services_pb.rb +2 -0
- data/ruby/proto/gitaly/commit_pb.rb +2 -0
- data/ruby/proto/gitaly/commit_services_pb.rb +21 -0
- data/ruby/proto/gitaly/conflicts_services_pb.rb +4 -0
- data/ruby/proto/gitaly/diff_services_pb.rb +5 -0
- data/ruby/proto/gitaly/errors_pb.rb +13 -0
- data/ruby/proto/gitaly/hook_services_pb.rb +7 -0
- data/ruby/proto/gitaly/namespace_services_pb.rb +7 -0
- data/ruby/proto/gitaly/objectpool_services_pb.rb +10 -0
- data/ruby/proto/gitaly/operations_pb.rb +1 -0
- data/ruby/proto/gitaly/operations_services_pb.rb +4 -0
- data/ruby/proto/gitaly/praefect_services_pb.rb +3 -0
- data/ruby/proto/gitaly/ref_services_pb.rb +12 -0
- data/ruby/proto/gitaly/remote_services_pb.rb +3 -0
- data/ruby/proto/gitaly/repository_services_pb.rb +26 -0
- data/ruby/proto/gitaly/server_services_pb.rb +3 -0
- data/ruby/proto/gitaly/smarthttp_services_pb.rb +2 -0
- data/ruby/proto/gitaly/ssh_services_pb.rb +1 -0
- data/ruby/proto/gitaly/transaction_services_pb.rb +26 -0
- data/ruby/proto/gitaly/version.rb +1 -1
- data/ruby/proto/gitaly/wiki_services_pb.rb +7 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7e733116309c6a8bfd647c20c776333d44e8ce757dbfd41bb5a3241a612d0a8
|
4
|
+
data.tar.gz: 8c09558f5ebf6136b564808cab3a45c988957bb2faa7b8516022e9f3839f7e1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3129a09a6ab17110afdaf41dc91e0df04a0a4596e241eb3a962ac4fc90b64e2bbdcd8a8ebcecbe06d821832744b4576ad4624fa0152c5d64479217e5198e3306
|
7
|
+
data.tar.gz: 77823d9ccc24ffa9f628d31bf25c987e2af37f9826b7234568fac9f6ee166015c4131096a98f6c2ea80ef584f72138b6741a9a787636c9e4f9b412e29cc6eefb
|
@@ -6,6 +6,8 @@ require 'blob_pb'
|
|
6
6
|
|
7
7
|
module Gitaly
|
8
8
|
module BlobService
|
9
|
+
# BlobService is a service which provides RPCs to retrieve Git blobs from a
|
10
|
+
# specific repository.
|
9
11
|
class Service
|
10
12
|
|
11
13
|
include ::GRPC::GenericService
|
@@ -18,6 +20,7 @@ module Gitaly
|
|
18
20
|
# ID. We use a stream to return a chunked arbitrarily large binary
|
19
21
|
# response
|
20
22
|
rpc :GetBlob, ::Gitaly::GetBlobRequest, stream(::Gitaly::GetBlobResponse)
|
23
|
+
# This comment is left unintentionally blank.
|
21
24
|
rpc :GetBlobs, ::Gitaly::GetBlobsRequest, stream(::Gitaly::GetBlobsResponse)
|
22
25
|
# ListBlobs will list all blobs reachable from a given set of revisions by
|
23
26
|
# doing a graph walk. It is not valid to pass revisions which do not resolve
|
@@ -6,6 +6,7 @@ require 'cleanup_pb'
|
|
6
6
|
|
7
7
|
module Gitaly
|
8
8
|
module CleanupService
|
9
|
+
# CleanupService provides RPCs to clean up a repository's contents.
|
9
10
|
class Service
|
10
11
|
|
11
12
|
include ::GRPC::GenericService
|
@@ -14,6 +15,7 @@ module Gitaly
|
|
14
15
|
self.unmarshal_class_method = :decode
|
15
16
|
self.service_name = 'gitaly.CleanupService'
|
16
17
|
|
18
|
+
# This comment is left unintentionally blank.
|
17
19
|
rpc :ApplyBfgObjectMapStream, stream(::Gitaly::ApplyBfgObjectMapStreamRequest), stream(::Gitaly::ApplyBfgObjectMapStreamResponse)
|
18
20
|
end
|
19
21
|
|
@@ -20,6 +20,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
20
20
|
optional :after, :message, 8, "google.protobuf.Timestamp"
|
21
21
|
optional :before, :message, 9, "google.protobuf.Timestamp"
|
22
22
|
optional :author, :bytes, 10
|
23
|
+
optional :ignore_case, :bool, 12
|
24
|
+
repeated :commit_message_patterns, :bytes, 13
|
23
25
|
end
|
24
26
|
add_enum "gitaly.ListCommitsRequest.Order" do
|
25
27
|
value :NONE, 0
|
@@ -6,6 +6,8 @@ require 'commit_pb'
|
|
6
6
|
|
7
7
|
module Gitaly
|
8
8
|
module CommitService
|
9
|
+
# CommitService is a service which provides RPCs that interact with Git
|
10
|
+
# commits.
|
9
11
|
class Service
|
10
12
|
|
11
13
|
include ::GRPC::GenericService
|
@@ -21,26 +23,45 @@ module Gitaly
|
|
21
23
|
# ListAllCommits lists all commits present in the repository, including
|
22
24
|
# those not reachable by any reference.
|
23
25
|
rpc :ListAllCommits, ::Gitaly::ListAllCommitsRequest, stream(::Gitaly::ListAllCommitsResponse)
|
26
|
+
# This comment is left unintentionally blank.
|
24
27
|
rpc :CommitIsAncestor, ::Gitaly::CommitIsAncestorRequest, ::Gitaly::CommitIsAncestorResponse
|
28
|
+
# This comment is left unintentionally blank.
|
25
29
|
rpc :TreeEntry, ::Gitaly::TreeEntryRequest, stream(::Gitaly::TreeEntryResponse)
|
30
|
+
# This comment is left unintentionally blank.
|
26
31
|
rpc :CountCommits, ::Gitaly::CountCommitsRequest, ::Gitaly::CountCommitsResponse
|
32
|
+
# This comment is left unintentionally blank.
|
27
33
|
rpc :CountDivergingCommits, ::Gitaly::CountDivergingCommitsRequest, ::Gitaly::CountDivergingCommitsResponse
|
34
|
+
# This comment is left unintentionally blank.
|
28
35
|
rpc :GetTreeEntries, ::Gitaly::GetTreeEntriesRequest, stream(::Gitaly::GetTreeEntriesResponse)
|
36
|
+
# This comment is left unintentionally blank.
|
29
37
|
rpc :ListFiles, ::Gitaly::ListFilesRequest, stream(::Gitaly::ListFilesResponse)
|
38
|
+
# This comment is left unintentionally blank.
|
30
39
|
rpc :FindCommit, ::Gitaly::FindCommitRequest, ::Gitaly::FindCommitResponse
|
40
|
+
# This comment is left unintentionally blank.
|
31
41
|
rpc :CommitStats, ::Gitaly::CommitStatsRequest, ::Gitaly::CommitStatsResponse
|
32
42
|
# Use a stream to paginate the result set
|
33
43
|
rpc :FindAllCommits, ::Gitaly::FindAllCommitsRequest, stream(::Gitaly::FindAllCommitsResponse)
|
44
|
+
# This comment is left unintentionally blank.
|
34
45
|
rpc :FindCommits, ::Gitaly::FindCommitsRequest, stream(::Gitaly::FindCommitsResponse)
|
46
|
+
# This comment is left unintentionally blank.
|
35
47
|
rpc :CommitLanguages, ::Gitaly::CommitLanguagesRequest, ::Gitaly::CommitLanguagesResponse
|
48
|
+
# This comment is left unintentionally blank.
|
36
49
|
rpc :RawBlame, ::Gitaly::RawBlameRequest, stream(::Gitaly::RawBlameResponse)
|
50
|
+
# This comment is left unintentionally blank.
|
37
51
|
rpc :LastCommitForPath, ::Gitaly::LastCommitForPathRequest, ::Gitaly::LastCommitForPathResponse
|
52
|
+
# This comment is left unintentionally blank.
|
38
53
|
rpc :ListLastCommitsForTree, ::Gitaly::ListLastCommitsForTreeRequest, stream(::Gitaly::ListLastCommitsForTreeResponse)
|
54
|
+
# This comment is left unintentionally blank.
|
39
55
|
rpc :CommitsByMessage, ::Gitaly::CommitsByMessageRequest, stream(::Gitaly::CommitsByMessageResponse)
|
56
|
+
# This comment is left unintentionally blank.
|
40
57
|
rpc :ListCommitsByOid, ::Gitaly::ListCommitsByOidRequest, stream(::Gitaly::ListCommitsByOidResponse)
|
58
|
+
# This comment is left unintentionally blank.
|
41
59
|
rpc :ListCommitsByRefName, ::Gitaly::ListCommitsByRefNameRequest, stream(::Gitaly::ListCommitsByRefNameResponse)
|
60
|
+
# This comment is left unintentionally blank.
|
42
61
|
rpc :FilterShasWithSignatures, stream(::Gitaly::FilterShasWithSignaturesRequest), stream(::Gitaly::FilterShasWithSignaturesResponse)
|
62
|
+
# This comment is left unintentionally blank.
|
43
63
|
rpc :GetCommitSignatures, ::Gitaly::GetCommitSignaturesRequest, stream(::Gitaly::GetCommitSignaturesResponse)
|
64
|
+
# This comment is left unintentionally blank.
|
44
65
|
rpc :GetCommitMessages, ::Gitaly::GetCommitMessagesRequest, stream(::Gitaly::GetCommitMessagesResponse)
|
45
66
|
# CheckObjectsExist will check for the existence of revisions against a
|
46
67
|
# repository. It returns two sets of data. An array containing the revisions
|
@@ -6,6 +6,8 @@ require 'conflicts_pb'
|
|
6
6
|
|
7
7
|
module Gitaly
|
8
8
|
module ConflictsService
|
9
|
+
# ConflictsService is a service which provides RPCs to interact with conflicts
|
10
|
+
# resulting from a merge.
|
9
11
|
class Service
|
10
12
|
|
11
13
|
include ::GRPC::GenericService
|
@@ -14,6 +16,8 @@ module Gitaly
|
|
14
16
|
self.unmarshal_class_method = :decode
|
15
17
|
self.service_name = 'gitaly.ConflictsService'
|
16
18
|
|
19
|
+
# ListConflictFiles returns all conflicting files which result from a merge
|
20
|
+
# of two specified commit objects.
|
17
21
|
rpc :ListConflictFiles, ::Gitaly::ListConflictFilesRequest, stream(::Gitaly::ListConflictFilesResponse)
|
18
22
|
# ResolveConflicts tries to resolve a conflicting merge with a set of
|
19
23
|
# user-provided merge resolutions. If resolving the conflict succeeds, the
|
@@ -6,6 +6,8 @@ require 'diff_pb'
|
|
6
6
|
|
7
7
|
module Gitaly
|
8
8
|
module DiffService
|
9
|
+
# DiffService is a service which provides RPCs to inspect differences
|
10
|
+
# introduced between a set of commits.
|
9
11
|
class Service
|
10
12
|
|
11
13
|
include ::GRPC::GenericService
|
@@ -18,8 +20,11 @@ module Gitaly
|
|
18
20
|
rpc :CommitDiff, ::Gitaly::CommitDiffRequest, stream(::Gitaly::CommitDiffResponse)
|
19
21
|
# Return a stream so we can divide the response in chunks of deltas
|
20
22
|
rpc :CommitDelta, ::Gitaly::CommitDeltaRequest, stream(::Gitaly::CommitDeltaResponse)
|
23
|
+
# This comment is left unintentionally blank.
|
21
24
|
rpc :RawDiff, ::Gitaly::RawDiffRequest, stream(::Gitaly::RawDiffResponse)
|
25
|
+
# This comment is left unintentionally blank.
|
22
26
|
rpc :RawPatch, ::Gitaly::RawPatchRequest, stream(::Gitaly::RawPatchResponse)
|
27
|
+
# This comment is left unintentionally blank.
|
23
28
|
rpc :DiffStats, ::Gitaly::DiffStatsRequest, stream(::Gitaly::DiffStatsResponse)
|
24
29
|
# Return a list of files changed along with the status of each file
|
25
30
|
rpc :FindChangedPaths, ::Gitaly::FindChangedPathsRequest, stream(::Gitaly::FindChangedPathsResponse)
|
@@ -33,6 +33,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
33
33
|
optional :error_message, :string, 1
|
34
34
|
optional :retry_after, :message, 2, "google.protobuf.Duration"
|
35
35
|
end
|
36
|
+
add_message "gitaly.CustomHookError" do
|
37
|
+
optional :stdout, :bytes, 1
|
38
|
+
optional :stderr, :bytes, 2
|
39
|
+
optional :hook_type, :enum, 3, "gitaly.CustomHookError.HookType"
|
40
|
+
end
|
41
|
+
add_enum "gitaly.CustomHookError.HookType" do
|
42
|
+
value :HOOK_TYPE_UNSPECIFIED, 0
|
43
|
+
value :HOOK_TYPE_PRERECEIVE, 1
|
44
|
+
value :HOOK_TYPE_UPDATE, 2
|
45
|
+
value :HOOK_TYPE_POSTRECEIVE, 3
|
46
|
+
end
|
36
47
|
end
|
37
48
|
end
|
38
49
|
|
@@ -44,4 +55,6 @@ module Gitaly
|
|
44
55
|
ReferenceUpdateError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceUpdateError").msgclass
|
45
56
|
ResolveRevisionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ResolveRevisionError").msgclass
|
46
57
|
LimitError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LimitError").msgclass
|
58
|
+
CustomHookError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CustomHookError").msgclass
|
59
|
+
CustomHookError::HookType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CustomHookError.HookType").enummodule
|
47
60
|
end
|
@@ -6,6 +6,9 @@ require 'hook_pb'
|
|
6
6
|
|
7
7
|
module Gitaly
|
8
8
|
module HookService
|
9
|
+
# HookService is a service which provides the implementation of a subset of
|
10
|
+
# Git hooks. These are typically invoked via the `gitaly-hooks` binary to
|
11
|
+
# ensure that the actual hook logic is executed in the context of the server.
|
9
12
|
class Service
|
10
13
|
|
11
14
|
include ::GRPC::GenericService
|
@@ -14,9 +17,13 @@ module Gitaly
|
|
14
17
|
self.unmarshal_class_method = :decode
|
15
18
|
self.service_name = 'gitaly.HookService'
|
16
19
|
|
20
|
+
# This comment is left unintentionally blank.
|
17
21
|
rpc :PreReceiveHook, stream(::Gitaly::PreReceiveHookRequest), stream(::Gitaly::PreReceiveHookResponse)
|
22
|
+
# This comment is left unintentionally blank.
|
18
23
|
rpc :PostReceiveHook, stream(::Gitaly::PostReceiveHookRequest), stream(::Gitaly::PostReceiveHookResponse)
|
24
|
+
# This comment is left unintentionally blank.
|
19
25
|
rpc :UpdateHook, ::Gitaly::UpdateHookRequest, stream(::Gitaly::UpdateHookResponse)
|
26
|
+
# This comment is left unintentionally blank.
|
20
27
|
rpc :ReferenceTransactionHook, stream(::Gitaly::ReferenceTransactionHookRequest), stream(::Gitaly::ReferenceTransactionHookResponse)
|
21
28
|
# PackObjectsHookWithSidechannel is an optimized version of PackObjectsHook that uses
|
22
29
|
# a unix socket side channel.
|
@@ -6,6 +6,9 @@ require 'namespace_pb'
|
|
6
6
|
|
7
7
|
module Gitaly
|
8
8
|
module NamespaceService
|
9
|
+
# NamespaceService is a service which provides RPCs to manage namespaces of a
|
10
|
+
# storage. Namespaces had been used before Gitaly migrated to hashed storages
|
11
|
+
# and shouldn't be used nowadays anymore.
|
9
12
|
class Service
|
10
13
|
|
11
14
|
include ::GRPC::GenericService
|
@@ -14,9 +17,13 @@ module Gitaly
|
|
14
17
|
self.unmarshal_class_method = :decode
|
15
18
|
self.service_name = 'gitaly.NamespaceService'
|
16
19
|
|
20
|
+
# This comment is left unintentionally blank.
|
17
21
|
rpc :AddNamespace, ::Gitaly::AddNamespaceRequest, ::Gitaly::AddNamespaceResponse
|
22
|
+
# This comment is left unintentionally blank.
|
18
23
|
rpc :RemoveNamespace, ::Gitaly::RemoveNamespaceRequest, ::Gitaly::RemoveNamespaceResponse
|
24
|
+
# This comment is left unintentionally blank.
|
19
25
|
rpc :RenameNamespace, ::Gitaly::RenameNamespaceRequest, ::Gitaly::RenameNamespaceResponse
|
26
|
+
# This comment is left unintentionally blank.
|
20
27
|
rpc :NamespaceExists, ::Gitaly::NamespaceExistsRequest, ::Gitaly::NamespaceExistsResponse
|
21
28
|
end
|
22
29
|
|
@@ -6,6 +6,10 @@ require 'objectpool_pb'
|
|
6
6
|
|
7
7
|
module Gitaly
|
8
8
|
module ObjectPoolService
|
9
|
+
# ObjectPoolService is a service containing RPCs to manipulate object pools.
|
10
|
+
# An object pool is a separate repository that can be linked to from multiple
|
11
|
+
# satellite repositories in order to deduplicate common objects between them.
|
12
|
+
# This is mostly used in the contexet of repository forks.
|
9
13
|
class Service
|
10
14
|
|
11
15
|
include ::GRPC::GenericService
|
@@ -14,13 +18,19 @@ module Gitaly
|
|
14
18
|
self.unmarshal_class_method = :decode
|
15
19
|
self.service_name = 'gitaly.ObjectPoolService'
|
16
20
|
|
21
|
+
# This comment is left unintentionally blank.
|
17
22
|
rpc :CreateObjectPool, ::Gitaly::CreateObjectPoolRequest, ::Gitaly::CreateObjectPoolResponse
|
23
|
+
# This comment is left unintentionally blank.
|
18
24
|
rpc :DeleteObjectPool, ::Gitaly::DeleteObjectPoolRequest, ::Gitaly::DeleteObjectPoolResponse
|
19
25
|
# Repositories are assumed to be stored on the same disk
|
20
26
|
rpc :LinkRepositoryToObjectPool, ::Gitaly::LinkRepositoryToObjectPoolRequest, ::Gitaly::LinkRepositoryToObjectPoolResponse
|
27
|
+
# This comment is left unintentionally blank.
|
21
28
|
rpc :ReduplicateRepository, ::Gitaly::ReduplicateRepositoryRequest, ::Gitaly::ReduplicateRepositoryResponse
|
29
|
+
# This comment is left unintentionally blank.
|
22
30
|
rpc :DisconnectGitAlternates, ::Gitaly::DisconnectGitAlternatesRequest, ::Gitaly::DisconnectGitAlternatesResponse
|
31
|
+
# This comment is left unintentionally blank.
|
23
32
|
rpc :FetchIntoObjectPool, ::Gitaly::FetchIntoObjectPoolRequest, ::Gitaly::FetchIntoObjectPoolResponse
|
33
|
+
# This comment is left unintentionally blank.
|
24
34
|
rpc :GetObjectPool, ::Gitaly::GetObjectPoolRequest, ::Gitaly::GetObjectPoolResponse
|
25
35
|
end
|
26
36
|
|
@@ -76,6 +76,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
76
76
|
oneof :error do
|
77
77
|
optional :access_check, :message, 1, "gitaly.AccessCheckError"
|
78
78
|
optional :reference_update, :message, 2, "gitaly.ReferenceUpdateError"
|
79
|
+
optional :custom_hook, :message, 3, "gitaly.CustomHookError"
|
79
80
|
end
|
80
81
|
end
|
81
82
|
add_message "gitaly.UserMergeToRefRequest" do
|
@@ -18,11 +18,15 @@ module Gitaly
|
|
18
18
|
self.unmarshal_class_method = :decode
|
19
19
|
self.service_name = 'gitaly.OperationService'
|
20
20
|
|
21
|
+
# This comment is left unintentionally blank.
|
21
22
|
rpc :UserCreateBranch, ::Gitaly::UserCreateBranchRequest, ::Gitaly::UserCreateBranchResponse
|
23
|
+
# This comment is left unintentionally blank.
|
22
24
|
rpc :UserUpdateBranch, ::Gitaly::UserUpdateBranchRequest, ::Gitaly::UserUpdateBranchResponse
|
25
|
+
# This comment is left unintentionally blank.
|
23
26
|
rpc :UserDeleteBranch, ::Gitaly::UserDeleteBranchRequest, ::Gitaly::UserDeleteBranchResponse
|
24
27
|
# UserCreateTag creates a new tag.
|
25
28
|
rpc :UserCreateTag, ::Gitaly::UserCreateTagRequest, ::Gitaly::UserCreateTagResponse
|
29
|
+
# This comment is left unintentionally blank.
|
26
30
|
rpc :UserDeleteTag, ::Gitaly::UserDeleteTagRequest, ::Gitaly::UserDeleteTagResponse
|
27
31
|
# UserMergeRef creates a merge commit and updates target_ref to point to that
|
28
32
|
# new commit. The first parent of the merge commit (the main line) is taken
|
@@ -6,6 +6,8 @@ require 'praefect_pb'
|
|
6
6
|
|
7
7
|
module Gitaly
|
8
8
|
module PraefectInfoService
|
9
|
+
# PraefectInfoService is a service which provides RPCs to query and modify
|
10
|
+
# Praefect-specific parameters.
|
9
11
|
class Service
|
10
12
|
|
11
13
|
include ::GRPC::GenericService
|
@@ -14,6 +16,7 @@ module Gitaly
|
|
14
16
|
self.unmarshal_class_method = :decode
|
15
17
|
self.service_name = 'gitaly.PraefectInfoService'
|
16
18
|
|
19
|
+
# This comment is left unintentionally blank.
|
17
20
|
rpc :RepositoryReplicas, ::Gitaly::RepositoryReplicasRequest, ::Gitaly::RepositoryReplicasResponse
|
18
21
|
# DatalossCheck checks for unavailable repositories.
|
19
22
|
rpc :DatalossCheck, ::Gitaly::DatalossCheckRequest, ::Gitaly::DatalossCheckResponse
|
@@ -6,6 +6,7 @@ require 'ref_pb'
|
|
6
6
|
|
7
7
|
module Gitaly
|
8
8
|
module RefService
|
9
|
+
# RefService is a service that provides RPCs to list and modify Git references.
|
9
10
|
class Service
|
10
11
|
|
11
12
|
include ::GRPC::GenericService
|
@@ -14,28 +15,39 @@ module Gitaly
|
|
14
15
|
self.unmarshal_class_method = :decode
|
15
16
|
self.service_name = 'gitaly.RefService'
|
16
17
|
|
18
|
+
# This comment is left unintentionally blank.
|
17
19
|
rpc :FindDefaultBranchName, ::Gitaly::FindDefaultBranchNameRequest, ::Gitaly::FindDefaultBranchNameResponse
|
20
|
+
# This comment is left unintentionally blank.
|
18
21
|
rpc :FindAllBranchNames, ::Gitaly::FindAllBranchNamesRequest, stream(::Gitaly::FindAllBranchNamesResponse)
|
22
|
+
# This comment is left unintentionally blank.
|
19
23
|
rpc :FindAllTagNames, ::Gitaly::FindAllTagNamesRequest, stream(::Gitaly::FindAllTagNamesResponse)
|
20
24
|
# Return a stream so we can divide the response in chunks of branches
|
21
25
|
rpc :FindLocalBranches, ::Gitaly::FindLocalBranchesRequest, stream(::Gitaly::FindLocalBranchesResponse)
|
26
|
+
# This comment is left unintentionally blank.
|
22
27
|
rpc :FindAllBranches, ::Gitaly::FindAllBranchesRequest, stream(::Gitaly::FindAllBranchesResponse)
|
23
28
|
# Returns a stream of tags repository has.
|
24
29
|
rpc :FindAllTags, ::Gitaly::FindAllTagsRequest, stream(::Gitaly::FindAllTagsResponse)
|
30
|
+
# This comment is left unintentionally blank.
|
25
31
|
rpc :FindTag, ::Gitaly::FindTagRequest, ::Gitaly::FindTagResponse
|
32
|
+
# This comment is left unintentionally blank.
|
26
33
|
rpc :FindAllRemoteBranches, ::Gitaly::FindAllRemoteBranchesRequest, stream(::Gitaly::FindAllRemoteBranchesResponse)
|
34
|
+
# This comment is left unintentionally blank.
|
27
35
|
rpc :RefExists, ::Gitaly::RefExistsRequest, ::Gitaly::RefExistsResponse
|
28
36
|
# FindBranch finds a branch by its unqualified name (like "master") and
|
29
37
|
# returns the commit it currently points to.
|
30
38
|
rpc :FindBranch, ::Gitaly::FindBranchRequest, ::Gitaly::FindBranchResponse
|
39
|
+
# This comment is left unintentionally blank.
|
31
40
|
rpc :DeleteRefs, ::Gitaly::DeleteRefsRequest, ::Gitaly::DeleteRefsResponse
|
41
|
+
# This comment is left unintentionally blank.
|
32
42
|
rpc :ListBranchNamesContainingCommit, ::Gitaly::ListBranchNamesContainingCommitRequest, stream(::Gitaly::ListBranchNamesContainingCommitResponse)
|
43
|
+
# This comment is left unintentionally blank.
|
33
44
|
rpc :ListTagNamesContainingCommit, ::Gitaly::ListTagNamesContainingCommitRequest, stream(::Gitaly::ListTagNamesContainingCommitResponse)
|
34
45
|
# GetTagSignatures returns signatures for annotated tags resolved from a set of revisions. Revisions
|
35
46
|
# which don't resolve to an annotated tag are silently discarded. Revisions which cannot be resolved
|
36
47
|
# result in an error. Tags which are annotated but not signed will return a TagSignature response
|
37
48
|
# which has no signature, but its unsigned contents will still be returned.
|
38
49
|
rpc :GetTagSignatures, ::Gitaly::GetTagSignaturesRequest, stream(::Gitaly::GetTagSignaturesResponse)
|
50
|
+
# This comment is left unintentionally blank.
|
39
51
|
rpc :GetTagMessages, ::Gitaly::GetTagMessagesRequest, stream(::Gitaly::GetTagMessagesResponse)
|
40
52
|
# PackRefs is deprecated in favor of OptimizeRepository.
|
41
53
|
rpc :PackRefs, ::Gitaly::PackRefsRequest, ::Gitaly::PackRefsResponse
|
@@ -6,6 +6,8 @@ require 'remote_pb'
|
|
6
6
|
|
7
7
|
module Gitaly
|
8
8
|
module RemoteService
|
9
|
+
# RemoteService is a service providing RPCs to interact with a remote
|
10
|
+
# repository that is hosted on another Git server.
|
9
11
|
class Service
|
10
12
|
|
11
13
|
include ::GRPC::GenericService
|
@@ -20,6 +22,7 @@ module Gitaly
|
|
20
22
|
# deleted from the mirror. UpdateRemoteMirror updates all tags. Branches are updated if they match
|
21
23
|
# the patterns specified in the requests.
|
22
24
|
rpc :UpdateRemoteMirror, stream(::Gitaly::UpdateRemoteMirrorRequest), ::Gitaly::UpdateRemoteMirrorResponse
|
25
|
+
# This comment is left unintentionally blank.
|
23
26
|
rpc :FindRemoteRepository, ::Gitaly::FindRemoteRepositoryRequest, ::Gitaly::FindRemoteRepositoryResponse
|
24
27
|
# FindRemoteRootRef tries to find the root reference of a remote
|
25
28
|
# repository. The root reference is the default branch as pointed to by
|
@@ -6,6 +6,7 @@ require 'repository_pb'
|
|
6
6
|
|
7
7
|
module Gitaly
|
8
8
|
module RepositoryService
|
9
|
+
# RepositoryService is a service providing RPCs accessing repositories as a whole.
|
9
10
|
class Service
|
10
11
|
|
11
12
|
include ::GRPC::GenericService
|
@@ -14,6 +15,7 @@ module Gitaly
|
|
14
15
|
self.unmarshal_class_method = :decode
|
15
16
|
self.service_name = 'gitaly.RepositoryService'
|
16
17
|
|
18
|
+
# This comment is left unintentionally blank.
|
17
19
|
rpc :RepositoryExists, ::Gitaly::RepositoryExistsRequest, ::Gitaly::RepositoryExistsResponse
|
18
20
|
# RepackIncremental is deprecated in favor of OptimizeRepository.
|
19
21
|
rpc :RepackIncremental, ::Gitaly::RepackIncrementalRequest, ::Gitaly::RepackIncrementalResponse
|
@@ -25,21 +27,31 @@ module Gitaly
|
|
25
27
|
rpc :GarbageCollect, ::Gitaly::GarbageCollectRequest, ::Gitaly::GarbageCollectResponse
|
26
28
|
# WriteCommitGraph is deprecated in favor of OptimizeRepository.
|
27
29
|
rpc :WriteCommitGraph, ::Gitaly::WriteCommitGraphRequest, ::Gitaly::WriteCommitGraphResponse
|
30
|
+
# This comment is left unintentionally blank.
|
28
31
|
rpc :RepositorySize, ::Gitaly::RepositorySizeRequest, ::Gitaly::RepositorySizeResponse
|
32
|
+
# This comment is left unintentionally blank.
|
29
33
|
rpc :ApplyGitattributes, ::Gitaly::ApplyGitattributesRequest, ::Gitaly::ApplyGitattributesResponse
|
30
34
|
# FetchRemote fetches references from a remote repository into the local
|
31
35
|
# repository.
|
32
36
|
rpc :FetchRemote, ::Gitaly::FetchRemoteRequest, ::Gitaly::FetchRemoteResponse
|
37
|
+
# This comment is left unintentionally blank.
|
33
38
|
rpc :CreateRepository, ::Gitaly::CreateRepositoryRequest, ::Gitaly::CreateRepositoryResponse
|
39
|
+
# This comment is left unintentionally blank.
|
34
40
|
rpc :GetArchive, ::Gitaly::GetArchiveRequest, stream(::Gitaly::GetArchiveResponse)
|
41
|
+
# This comment is left unintentionally blank.
|
35
42
|
rpc :HasLocalBranches, ::Gitaly::HasLocalBranchesRequest, ::Gitaly::HasLocalBranchesResponse
|
36
43
|
# FetchSourceBranch fetches a branch from a second (potentially remote)
|
37
44
|
# repository into the given repository.
|
38
45
|
rpc :FetchSourceBranch, ::Gitaly::FetchSourceBranchRequest, ::Gitaly::FetchSourceBranchResponse
|
46
|
+
# This comment is left unintentionally blank.
|
39
47
|
rpc :Fsck, ::Gitaly::FsckRequest, ::Gitaly::FsckResponse
|
48
|
+
# This comment is left unintentionally blank.
|
40
49
|
rpc :WriteRef, ::Gitaly::WriteRefRequest, ::Gitaly::WriteRefResponse
|
50
|
+
# This comment is left unintentionally blank.
|
41
51
|
rpc :FindMergeBase, ::Gitaly::FindMergeBaseRequest, ::Gitaly::FindMergeBaseResponse
|
52
|
+
# This comment is left unintentionally blank.
|
42
53
|
rpc :CreateFork, ::Gitaly::CreateForkRequest, ::Gitaly::CreateForkResponse
|
54
|
+
# This comment is left unintentionally blank.
|
43
55
|
rpc :CreateRepositoryFromURL, ::Gitaly::CreateRepositoryFromURLRequest, ::Gitaly::CreateRepositoryFromURLResponse
|
44
56
|
# CreateBundle creates a bundle from all refs
|
45
57
|
rpc :CreateBundle, ::Gitaly::CreateBundleRequest, stream(::Gitaly::CreateBundleResponse)
|
@@ -50,28 +62,42 @@ module Gitaly
|
|
50
62
|
# Refs will be mirrored to the target repository with the refspec
|
51
63
|
# "+refs/*:refs/*" and refs that do not exist in the bundle will be removed.
|
52
64
|
rpc :FetchBundle, stream(::Gitaly::FetchBundleRequest), ::Gitaly::FetchBundleResponse
|
65
|
+
# This comment is left unintentionally blank.
|
53
66
|
rpc :CreateRepositoryFromBundle, stream(::Gitaly::CreateRepositoryFromBundleRequest), ::Gitaly::CreateRepositoryFromBundleResponse
|
54
67
|
# GetConfig reads the target repository's gitconfig and streams its contents
|
55
68
|
# back. Returns a NotFound error in case no gitconfig was found.
|
56
69
|
rpc :GetConfig, ::Gitaly::GetConfigRequest, stream(::Gitaly::GetConfigResponse)
|
70
|
+
# This comment is left unintentionally blank.
|
57
71
|
rpc :FindLicense, ::Gitaly::FindLicenseRequest, ::Gitaly::FindLicenseResponse
|
72
|
+
# This comment is left unintentionally blank.
|
58
73
|
rpc :GetInfoAttributes, ::Gitaly::GetInfoAttributesRequest, stream(::Gitaly::GetInfoAttributesResponse)
|
74
|
+
# This comment is left unintentionally blank.
|
59
75
|
rpc :CalculateChecksum, ::Gitaly::CalculateChecksumRequest, ::Gitaly::CalculateChecksumResponse
|
60
76
|
# Cleanup is deprecated in favor of OptimizeRepository.
|
61
77
|
rpc :Cleanup, ::Gitaly::CleanupRequest, ::Gitaly::CleanupResponse
|
78
|
+
# This comment is left unintentionally blank.
|
62
79
|
rpc :GetSnapshot, ::Gitaly::GetSnapshotRequest, stream(::Gitaly::GetSnapshotResponse)
|
80
|
+
# This comment is left unintentionally blank.
|
63
81
|
rpc :CreateRepositoryFromSnapshot, ::Gitaly::CreateRepositoryFromSnapshotRequest, ::Gitaly::CreateRepositoryFromSnapshotResponse
|
82
|
+
# This comment is left unintentionally blank.
|
64
83
|
rpc :GetRawChanges, ::Gitaly::GetRawChangesRequest, stream(::Gitaly::GetRawChangesResponse)
|
84
|
+
# This comment is left unintentionally blank.
|
65
85
|
rpc :SearchFilesByContent, ::Gitaly::SearchFilesByContentRequest, stream(::Gitaly::SearchFilesByContentResponse)
|
86
|
+
# This comment is left unintentionally blank.
|
66
87
|
rpc :SearchFilesByName, ::Gitaly::SearchFilesByNameRequest, stream(::Gitaly::SearchFilesByNameResponse)
|
88
|
+
# This comment is left unintentionally blank.
|
67
89
|
rpc :RestoreCustomHooks, stream(::Gitaly::RestoreCustomHooksRequest), ::Gitaly::RestoreCustomHooksResponse
|
90
|
+
# This comment is left unintentionally blank.
|
68
91
|
rpc :BackupCustomHooks, ::Gitaly::BackupCustomHooksRequest, stream(::Gitaly::BackupCustomHooksResponse)
|
92
|
+
# This comment is left unintentionally blank.
|
69
93
|
rpc :GetObjectDirectorySize, ::Gitaly::GetObjectDirectorySizeRequest, ::Gitaly::GetObjectDirectorySizeResponse
|
70
94
|
# RemoveRepository will move the repository to `+gitaly/tmp/<relative_path>_removed` and
|
71
95
|
# eventually remove it. This ensures that even on networked filesystems the
|
72
96
|
# data is actually removed even if there's someone still handling the data.
|
73
97
|
rpc :RemoveRepository, ::Gitaly::RemoveRepositoryRequest, ::Gitaly::RemoveRepositoryResponse
|
98
|
+
# This comment is left unintentionally blank.
|
74
99
|
rpc :RenameRepository, ::Gitaly::RenameRepositoryRequest, ::Gitaly::RenameRepositoryResponse
|
100
|
+
# This comment is left unintentionally blank.
|
75
101
|
rpc :ReplicateRepository, ::Gitaly::ReplicateRepositoryRequest, ::Gitaly::ReplicateRepositoryResponse
|
76
102
|
# OptimizeRepository performs all maintenance tasks in a repository to keep
|
77
103
|
# it in an efficient state. It cleans up stale data, repacks objects,
|
@@ -6,6 +6,7 @@ require 'server_pb'
|
|
6
6
|
|
7
7
|
module Gitaly
|
8
8
|
module ServerService
|
9
|
+
# ServerService is a service that provides information about a Gitaly server.
|
9
10
|
class Service
|
10
11
|
|
11
12
|
include ::GRPC::GenericService
|
@@ -14,7 +15,9 @@ module Gitaly
|
|
14
15
|
self.unmarshal_class_method = :decode
|
15
16
|
self.service_name = 'gitaly.ServerService'
|
16
17
|
|
18
|
+
# This comment is left unintentionally blank.
|
17
19
|
rpc :ServerInfo, ::Gitaly::ServerInfoRequest, ::Gitaly::ServerInfoResponse
|
20
|
+
# This comment is left unintentionally blank.
|
18
21
|
rpc :DiskStatistics, ::Gitaly::DiskStatisticsRequest, ::Gitaly::DiskStatisticsResponse
|
19
22
|
# ClockSynced checks if machine clock is synced
|
20
23
|
# (the offset is less that the one passed in the request).
|
@@ -6,6 +6,11 @@ require 'transaction_pb'
|
|
6
6
|
|
7
7
|
module Gitaly
|
8
8
|
module RefTransaction
|
9
|
+
# RefTransaction is a service which provides RPCs to interact with reference
|
10
|
+
# transactions. Reference transactions are used in the context of Gitaly
|
11
|
+
# Cluster to ensure that all nodes part of a single transaction perform the
|
12
|
+
# same change: given a set of changes, the changes are hashed and the hash is
|
13
|
+
# then voted on.
|
9
14
|
class Service
|
10
15
|
|
11
16
|
include ::GRPC::GenericService
|
@@ -14,7 +19,28 @@ module Gitaly
|
|
14
19
|
self.unmarshal_class_method = :decode
|
15
20
|
self.service_name = 'gitaly.RefTransaction'
|
16
21
|
|
22
|
+
# VoteTransaction casts a vote on a transaction to establish whether the
|
23
|
+
# node is doing the same change as all the other nodes part of the
|
24
|
+
# transaction. This RPC blocks until quorum has been reached, which may be
|
25
|
+
# _before_ all nodes have cast a vote.
|
26
|
+
#
|
27
|
+
# This RPC may return one of the following error codes:
|
28
|
+
#
|
29
|
+
# - `NotFound` in case the transaction could not be found.
|
30
|
+
# - `Canceled` in case the transaction has been canceled before quorum was
|
31
|
+
# reached.
|
17
32
|
rpc :VoteTransaction, ::Gitaly::VoteTransactionRequest, ::Gitaly::VoteTransactionResponse
|
33
|
+
# StopTransaction gracefully stops a transaction. This RPC can be used if
|
34
|
+
# only a subset of nodes executes specific code which may cause the
|
35
|
+
# transaction to fail. One such example is Git hooks, which only execute on
|
36
|
+
# the primary Gitaly noded. Other nodes which vote on this transaction will
|
37
|
+
# get a response with the `STOP` state being set.
|
38
|
+
#
|
39
|
+
# This RPC may return one of the following error codes:
|
40
|
+
#
|
41
|
+
# - `NotFound` in case the transaction could not be found.
|
42
|
+
# - `Canceled` in case the transaction has been canceled before quorum was
|
43
|
+
# reached.
|
18
44
|
rpc :StopTransaction, ::Gitaly::StopTransactionRequest, ::Gitaly::StopTransactionResponse
|
19
45
|
end
|
20
46
|
|
@@ -6,6 +6,9 @@ require 'wiki_pb'
|
|
6
6
|
|
7
7
|
module Gitaly
|
8
8
|
module WikiService
|
9
|
+
# WikiService is a service that provides Wiki-related functionality. This
|
10
|
+
# service is deprecated and should not be used anymore. Instead, all
|
11
|
+
# functionality to implement Wikis should use Git-based RPCS.
|
9
12
|
class Service
|
10
13
|
|
11
14
|
include ::GRPC::GenericService
|
@@ -14,11 +17,15 @@ module Gitaly
|
|
14
17
|
self.unmarshal_class_method = :decode
|
15
18
|
self.service_name = 'gitaly.WikiService'
|
16
19
|
|
20
|
+
# This comment is left unintentionally blank.
|
17
21
|
rpc :WikiWritePage, stream(::Gitaly::WikiWritePageRequest), ::Gitaly::WikiWritePageResponse
|
22
|
+
# This comment is left unintentionally blank.
|
18
23
|
rpc :WikiUpdatePage, stream(::Gitaly::WikiUpdatePageRequest), ::Gitaly::WikiUpdatePageResponse
|
19
24
|
# WikiFindPage returns a stream because the page's raw_data field may be arbitrarily large.
|
20
25
|
rpc :WikiFindPage, ::Gitaly::WikiFindPageRequest, stream(::Gitaly::WikiFindPageResponse)
|
26
|
+
# This comment is left unintentionally blank.
|
21
27
|
rpc :WikiGetAllPages, ::Gitaly::WikiGetAllPagesRequest, stream(::Gitaly::WikiGetAllPagesResponse)
|
28
|
+
# This comment is left unintentionally blank.
|
22
29
|
rpc :WikiListPages, ::Gitaly::WikiListPagesRequest, stream(::Gitaly::WikiListPagesResponse)
|
23
30
|
end
|
24
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitaly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.0.0.pre.
|
4
|
+
version: 15.0.0.pre.rc3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jacob Vosmaer
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05-
|
11
|
+
date: 2022-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|
@@ -79,7 +79,7 @@ homepage: https://gitlab.com/gitlab-org/gitaly
|
|
79
79
|
licenses:
|
80
80
|
- MIT
|
81
81
|
metadata: {}
|
82
|
-
post_install_message:
|
82
|
+
post_install_message:
|
83
83
|
rdoc_options: []
|
84
84
|
require_paths:
|
85
85
|
- ruby/proto
|
@@ -94,8 +94,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: 1.3.1
|
96
96
|
requirements: []
|
97
|
-
rubygems_version: 3.
|
98
|
-
signing_key:
|
97
|
+
rubygems_version: 3.3.8
|
98
|
+
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: Auto-generated gRPC client for gitaly
|
101
101
|
test_files: []
|