gitaly-qmnguyen 16.7.0.pre.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ruby/proto/gitaly/analysis_pb.rb +43 -0
- data/ruby/proto/gitaly/analysis_services_pb.rb +32 -0
- data/ruby/proto/gitaly/blob_pb.rb +57 -0
- data/ruby/proto/gitaly/blob_services_pb.rb +53 -0
- data/ruby/proto/gitaly/cleanup_pb.rb +42 -0
- data/ruby/proto/gitaly/cleanup_services_pb.rb +24 -0
- data/ruby/proto/gitaly/commit_pb.rb +104 -0
- data/ruby/proto/gitaly/commit_services_pb.rb +88 -0
- data/ruby/proto/gitaly/conflicts_pb.rb +48 -0
- data/ruby/proto/gitaly/conflicts_services_pb.rb +30 -0
- data/ruby/proto/gitaly/diff_pb.rb +63 -0
- data/ruby/proto/gitaly/diff_services_pb.rb +48 -0
- data/ruby/proto/gitaly/errors_pb.rb +57 -0
- data/ruby/proto/gitaly/hook_pb.rb +52 -0
- data/ruby/proto/gitaly/hook_services_pb.rb +40 -0
- data/ruby/proto/gitaly/internal_pb.rb +41 -0
- data/ruby/proto/gitaly/internal_services_pb.rb +26 -0
- data/ruby/proto/gitaly/lint_pb.rb +40 -0
- data/ruby/proto/gitaly/log_pb.rb +46 -0
- data/ruby/proto/gitaly/objectpool_pb.rb +51 -0
- data/ruby/proto/gitaly/objectpool_services_pb.rb +77 -0
- data/ruby/proto/gitaly/operations_pb.rb +91 -0
- data/ruby/proto/gitaly/operations_services_pb.rb +135 -0
- data/ruby/proto/gitaly/packfile_pb.rb +36 -0
- data/ruby/proto/gitaly/praefect_pb.rb +59 -0
- data/ruby/proto/gitaly/praefect_services_pb.rb +47 -0
- data/ruby/proto/gitaly/ref_pb.rb +85 -0
- data/ruby/proto/gitaly/ref_services_pb.rb +87 -0
- data/ruby/proto/gitaly/remote_pb.rb +46 -0
- data/ruby/proto/gitaly/remote_services_pb.rb +39 -0
- data/ruby/proto/gitaly/repository_pb.rb +137 -0
- data/ruby/proto/gitaly/repository_services_pb.rb +198 -0
- data/ruby/proto/gitaly/server_pb.rb +52 -0
- data/ruby/proto/gitaly/server_services_pb.rb +31 -0
- data/ruby/proto/gitaly/service_config_pb.rb +47 -0
- data/ruby/proto/gitaly/shared_pb.rb +56 -0
- data/ruby/proto/gitaly/smarthttp_pb.rb +47 -0
- data/ruby/proto/gitaly/smarthttp_services_pb.rb +44 -0
- data/ruby/proto/gitaly/ssh_pb.rb +49 -0
- data/ruby/proto/gitaly/ssh_services_pb.rb +39 -0
- data/ruby/proto/gitaly/transaction_pb.rb +45 -0
- data/ruby/proto/gitaly/transaction_services_pb.rb +49 -0
- data/ruby/proto/gitaly/version.rb +4 -0
- data/ruby/proto/gitaly.rb +41 -0
- metadata +104 -0
@@ -0,0 +1,46 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: remote.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'lint_pb'
|
8
|
+
require 'shared_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n\x0cremote.proto\x12\x06gitaly\x1a\nlint.proto\x1a\x0cshared.proto\"\xdb\x02\n\x19UpdateRemoteMirrorRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x38\n\x06remote\x18\x07 \x01(\x0b\x32(.gitaly.UpdateRemoteMirrorRequest.Remote\x12\x1e\n\x16only_branches_matching\x18\x03 \x03(\x0c\x12\x0f\n\x07ssh_key\x18\x04 \x01(\t\x12\x13\n\x0bknown_hosts\x18\x05 \x01(\t\x12\x1b\n\x13keep_divergent_refs\x18\x06 \x01(\x08\x1a\x63\n\x06Remote\x12\x0b\n\x03url\x18\x01 \x01(\t\x12!\n\x19http_authorization_header\x18\x02 \x01(\t\x12\x18\n\x10resolved_address\x18\x04 \x01(\tJ\x04\x08\x03\x10\x04R\thttp_hostJ\x04\x08\x02\x10\x03R\x08ref_name\"4\n\x1aUpdateRemoteMirrorResponse\x12\x16\n\x0e\x64ivergent_refs\x18\x01 \x03(\x0c\"I\n\x1b\x46indRemoteRepositoryRequest\x12\x0e\n\x06remote\x18\x01 \x01(\t\x12\x1a\n\x0cstorage_name\x18\x02 \x01(\tB\x04\x88\xc6,\x01\".\n\x1c\x46indRemoteRepositoryResponse\x12\x0e\n\x06\x65xists\x18\x01 \x01(\x08\"\xb8\x01\n\x18\x46indRemoteRootRefRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x12\n\nremote_url\x18\x03 \x01(\t\x12!\n\x19http_authorization_header\x18\x04 \x01(\t\x12\x18\n\x10resolved_address\x18\x06 \x01(\tJ\x04\x08\x02\x10\x03J\x04\x08\x05\x10\x06R\x06remoteR\thttp_host\"(\n\x19\x46indRemoteRootRefResponse\x12\x0b\n\x03ref\x18\x01 \x01(\t2\xc5\x02\n\rRemoteService\x12\x65\n\x12UpdateRemoteMirror\x12!.gitaly.UpdateRemoteMirrorRequest\x1a\".gitaly.UpdateRemoteMirrorResponse\"\x06\xfa\x97(\x02\x08\x02(\x01\x12k\n\x14\x46indRemoteRepository\x12#.gitaly.FindRemoteRepositoryRequest\x1a$.gitaly.FindRemoteRepositoryResponse\"\x08\xfa\x97(\x04\x08\x02\x10\x02\x12`\n\x11\x46indRemoteRootRef\x12 .gitaly.FindRemoteRootRefRequest\x1a!.gitaly.FindRemoteRootRefResponse\"\x06\xfa\x97(\x02\x08\x02\x42\x34Z2gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypbb\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["gitaly.Repository", "shared.proto"],
|
27
|
+
]
|
28
|
+
imports.each do |type_name, expected_filename|
|
29
|
+
import_file = pool.lookup(type_name).file_descriptor
|
30
|
+
if import_file.name != expected_filename
|
31
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
35
|
+
warn "This will become an error in the next major version."
|
36
|
+
end
|
37
|
+
|
38
|
+
module Gitaly
|
39
|
+
UpdateRemoteMirrorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UpdateRemoteMirrorRequest").msgclass
|
40
|
+
UpdateRemoteMirrorRequest::Remote = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UpdateRemoteMirrorRequest.Remote").msgclass
|
41
|
+
UpdateRemoteMirrorResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UpdateRemoteMirrorResponse").msgclass
|
42
|
+
FindRemoteRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRemoteRepositoryRequest").msgclass
|
43
|
+
FindRemoteRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRemoteRepositoryResponse").msgclass
|
44
|
+
FindRemoteRootRefRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRemoteRootRefRequest").msgclass
|
45
|
+
FindRemoteRootRefResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRemoteRootRefResponse").msgclass
|
46
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: remote.proto for package 'gitaly'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'remote_pb'
|
6
|
+
|
7
|
+
module Gitaly
|
8
|
+
module RemoteService
|
9
|
+
# RemoteService is a service providing RPCs to interact with a remote
|
10
|
+
# repository that is hosted on another Git server.
|
11
|
+
class Service
|
12
|
+
|
13
|
+
include ::GRPC::GenericService
|
14
|
+
|
15
|
+
self.marshal_class_method = :encode
|
16
|
+
self.unmarshal_class_method = :decode
|
17
|
+
self.service_name = 'gitaly.RemoteService'
|
18
|
+
|
19
|
+
# UpdateRemoteMirror compares the references in the target repository and its remote mirror
|
20
|
+
# repository. Any differences in the references are then addressed by pushing the differing
|
21
|
+
# references to the mirror. Created and modified references are updated, removed references are
|
22
|
+
# deleted from the mirror. UpdateRemoteMirror updates all tags. Branches are updated if they match
|
23
|
+
# the patterns specified in the requests.
|
24
|
+
rpc :UpdateRemoteMirror, stream(::Gitaly::UpdateRemoteMirrorRequest), ::Gitaly::UpdateRemoteMirrorResponse
|
25
|
+
# FindRemoteRepository detects whether a repository exists at the given URI. This is done by
|
26
|
+
# asking git-ls-remote(1) to enumerate the remote's HEAD and then checking that we recognize it
|
27
|
+
# as a valid reference.
|
28
|
+
rpc :FindRemoteRepository, ::Gitaly::FindRemoteRepositoryRequest, ::Gitaly::FindRemoteRepositoryResponse
|
29
|
+
# FindRemoteRootRef tries to find the root reference of a remote
|
30
|
+
# repository. The root reference is the default branch as pointed to by
|
31
|
+
# the remotes HEAD reference. Returns an InvalidArgument error if the
|
32
|
+
# specified remote does not exist and a NotFound error in case no HEAD
|
33
|
+
# branch was found.
|
34
|
+
rpc :FindRemoteRootRef, ::Gitaly::FindRemoteRootRefRequest, ::Gitaly::FindRemoteRootRefResponse
|
35
|
+
end
|
36
|
+
|
37
|
+
Stub = Service.rpc_stub_class
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,137 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: repository.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'lint_pb'
|
8
|
+
require 'shared_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n\x10repository.proto\x12\x06gitaly\x1a\nlint.proto\x1a\x0cshared.proto\"G\n\x17RepositoryExistsRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"*\n\x18RepositoryExistsResponse\x12\x0e\n\x06\x65xists\x18\x01 \x01(\x08\"E\n\x15RepositorySizeRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"&\n\x16RepositorySizeResponse\x12\x0c\n\x04size\x18\x01 \x01(\x03\"E\n\x15RepositoryInfoRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"\xbb\x02\n\x16RepositoryInfoResponse\x12\x0c\n\x04size\x18\x01 \x01(\x04\x12\x41\n\nreferences\x18\x02 \x01(\x0b\x32-.gitaly.RepositoryInfoResponse.ReferencesInfo\x12;\n\x07objects\x18\x03 \x01(\x0b\x32*.gitaly.RepositoryInfoResponse.ObjectsInfo\x1a:\n\x0eReferencesInfo\x12\x13\n\x0bloose_count\x18\x01 \x01(\x04\x12\x13\n\x0bpacked_size\x18\x02 \x01(\x04\x1aW\n\x0bObjectsInfo\x12\x0c\n\x04size\x18\x01 \x01(\x04\x12\x13\n\x0brecent_size\x18\x02 \x01(\x04\x12\x12\n\nstale_size\x18\x03 \x01(\x04\x12\x11\n\tkeep_size\x18\x04 \x01(\x04\"U\n\x12ObjectsSizeRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x11\n\trevisions\x18\x02 \x03(\x0c\"#\n\x13ObjectsSizeResponse\x12\x0c\n\x04size\x18\x01 \x01(\x04\"C\n\x13ObjectFormatRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"<\n\x14ObjectFormatResponse\x12$\n\x06\x66ormat\x18\x01 \x01(\x0e\x32\x14.gitaly.ObjectFormat\"[\n\x19\x41pplyGitattributesRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x10\n\x08revision\x18\x02 \x01(\x0c\"\x1c\n\x1a\x41pplyGitattributesResponse\"e\n\x12\x46\x65tchBundleRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12\x13\n\x0bupdate_head\x18\x03 \x01(\x08\"\x15\n\x13\x46\x65tchBundleResponse\"\x82\x02\n\x12\x46\x65tchRemoteRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\r\n\x05\x66orce\x18\x03 \x01(\x08\x12\x0f\n\x07no_tags\x18\x04 \x01(\x08\x12\x0f\n\x07timeout\x18\x05 \x01(\x05\x12\x0f\n\x07ssh_key\x18\x06 \x01(\t\x12\x13\n\x0bknown_hosts\x18\x07 \x01(\t\x12\x10\n\x08no_prune\x18\t \x01(\x08\x12%\n\rremote_params\x18\n \x01(\x0b\x32\x0e.gitaly.Remote\x12\x1a\n\x12\x63heck_tags_changed\x18\x0b \x01(\x08J\x04\x08\x08\x10\tJ\x04\x08\x02\x10\x03R\x06remote\"+\n\x13\x46\x65tchRemoteResponse\x12\x14\n\x0ctags_changed\x18\x01 \x01(\x08\"\x8c\x01\n\x17\x43reateRepositoryRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0e\x64\x65\x66\x61ult_branch\x18\x02 \x01(\x0c\x12+\n\robject_format\x18\x03 \x01(\x0e\x32\x14.gitaly.ObjectFormat\"\x1a\n\x18\x43reateRepositoryResponse\"\x99\x02\n\x11GetArchiveRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x11\n\tcommit_id\x18\x02 \x01(\t\x12\x0e\n\x06prefix\x18\x03 \x01(\t\x12\x30\n\x06\x66ormat\x18\x04 \x01(\x0e\x32 .gitaly.GetArchiveRequest.Format\x12\x0c\n\x04path\x18\x05 \x01(\x0c\x12\x0f\n\x07\x65xclude\x18\x06 \x03(\x0c\x12\x12\n\nelide_path\x18\x07 \x01(\x08\x12\x19\n\x11include_lfs_blobs\x18\x08 \x01(\x08\"3\n\x06\x46ormat\x12\x07\n\x03ZIP\x10\x00\x12\x07\n\x03TAR\x10\x01\x12\n\n\x06TAR_GZ\x10\x02\x12\x0b\n\x07TAR_BZ2\x10\x03\"\"\n\x12GetArchiveResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"G\n\x17HasLocalBranchesRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\")\n\x18HasLocalBranchesResponse\x12\r\n\x05value\x18\x01 \x01(\x08\"\xa2\x01\n\x18\x46\x65tchSourceBranchRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12-\n\x11source_repository\x18\x02 \x01(\x0b\x32\x12.gitaly.Repository\x12\x15\n\rsource_branch\x18\x03 \x01(\x0c\x12\x12\n\ntarget_ref\x18\x04 \x01(\x0c\"+\n\x19\x46\x65tchSourceBranchResponse\x12\x0e\n\x06result\x18\x01 \x01(\x08\";\n\x0b\x46sckRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"\x1d\n\x0c\x46sckResponse\x12\r\n\x05\x65rror\x18\x01 \x01(\x0c\"\x87\x01\n\x0fWriteRefRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0b\n\x03ref\x18\x02 \x01(\x0c\x12\x10\n\x08revision\x18\x03 \x01(\x0c\x12\x14\n\x0cold_revision\x18\x04 \x01(\x0cJ\x04\x08\x05\x10\x06J\x04\x08\x06\x10\x07R\x05\x66orce\"\x18\n\x10WriteRefResponseJ\x04\x08\x01\x10\x02\"W\n\x14\x46indMergeBaseRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x11\n\trevisions\x18\x02 \x03(\x0c\"%\n\x15\x46indMergeBaseResponse\x12\x0c\n\x04\x62\x61se\x18\x01 \x01(\t\"\x82\x01\n\x11\x43reateForkRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12-\n\x11source_repository\x18\x02 \x01(\x0b\x32\x12.gitaly.Repository\x12\x10\n\x08revision\x18\x03 \x01(\x0c\"\x14\n\x12\x43reateForkResponse\"\xb9\x01\n\x1e\x43reateRepositoryFromURLRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0b\n\x03url\x18\x02 \x01(\t\x12!\n\x19http_authorization_header\x18\x04 \x01(\t\x12\x0e\n\x06mirror\x18\x05 \x01(\x08\x12\x18\n\x10resolved_address\x18\x06 \x01(\tJ\x04\x08\x03\x10\x04R\thttp_host\"!\n\x1f\x43reateRepositoryFromURLResponse\"C\n\x13\x43reateBundleRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"$\n\x14\x43reateBundleResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"`\n\x1e\x43reateBundleFromRefListRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x10\n\x08patterns\x18\x02 \x03(\x0c\"/\n\x1f\x43reateBundleFromRefListResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"@\n\x10GetConfigRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"!\n\x11GetConfigResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"W\n\x19RestoreCustomHooksRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"S\n\x15SetCustomHooksRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"\x1c\n\x1aRestoreCustomHooksResponse\"\x18\n\x16SetCustomHooksResponse\"H\n\x18\x42\x61\x63kupCustomHooksRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"E\n\x15GetCustomHooksRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\")\n\x19\x42\x61\x63kupCustomHooksResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"&\n\x16GetCustomHooksResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"_\n!CreateRepositoryFromBundleRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"$\n\"CreateRepositoryFromBundleResponse\"B\n\x12\x46indLicenseRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"\x8c\x01\n\x13\x46indLicenseResponse\x12\x1a\n\x12license_short_name\x18\x01 \x01(\t\x12\x14\n\x0clicense_name\x18\x02 \x01(\t\x12\x13\n\x0blicense_url\x18\x03 \x01(\t\x12\x14\n\x0clicense_path\x18\x04 \x01(\t\x12\x18\n\x10license_nickname\x18\x05 \x01(\t\"H\n\x18GetInfoAttributesRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"/\n\x19GetInfoAttributesResponse\x12\x12\n\nattributes\x18\x01 \x01(\x0c\"H\n\x18\x43\x61lculateChecksumRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"-\n\x19\x43\x61lculateChecksumResponse\x12\x10\n\x08\x63hecksum\x18\x01 \x01(\t\"B\n\x12GetSnapshotRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"#\n\x13GetSnapshotResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"\xa3\x01\n#CreateRepositoryFromSnapshotRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x10\n\x08http_url\x18\x02 \x01(\t\x12\x11\n\thttp_auth\x18\x03 \x01(\t\x12\x18\n\x10resolved_address\x18\x05 \x01(\tJ\x04\x08\x04\x10\x05R\thttp_host\"&\n$CreateRepositoryFromSnapshotResponse\"p\n\x14GetRawChangesRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x15\n\rfrom_revision\x18\x02 \x01(\t\x12\x13\n\x0bto_revision\x18\x03 \x01(\t\"\xbc\x03\n\x15GetRawChangesResponse\x12<\n\x0braw_changes\x18\x01 \x03(\x0b\x32\'.gitaly.GetRawChangesResponse.RawChange\x1a\xe4\x02\n\tRawChange\x12\x0f\n\x07\x62lob_id\x18\x01 \x01(\t\x12\x0c\n\x04size\x18\x02 \x01(\x03\x12\x44\n\toperation\x18\x05 \x01(\x0e\x32\x31.gitaly.GetRawChangesResponse.RawChange.Operation\x12\x10\n\x08old_mode\x18\x07 \x01(\x05\x12\x10\n\x08new_mode\x18\x08 \x01(\x05\x12\x16\n\x0enew_path_bytes\x18\t \x01(\x0c\x12\x16\n\x0eold_path_bytes\x18\n \x01(\x0c\"i\n\tOperation\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x01\x12\n\n\x06\x43OPIED\x10\x02\x12\x0b\n\x07\x44\x45LETED\x10\x03\x12\x0c\n\x08MODIFIED\x10\x04\x12\x0b\n\x07RENAMED\x10\x05\x12\x10\n\x0cTYPE_CHANGED\x10\x06J\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05J\x04\x08\x06\x10\x07R\x08new_pathR\x08old_pathR\rraw_operation\"\x93\x01\n\x18SearchFilesByNameRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\r\n\x05query\x18\x02 \x01(\t\x12\x0b\n\x03ref\x18\x03 \x01(\x0c\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\r\n\x05limit\x18\x05 \x01(\r\x12\x0e\n\x06offset\x18\x06 \x01(\r\"*\n\x19SearchFilesByNameResponse\x12\r\n\x05\x66iles\x18\x01 \x03(\x0c\"\x7f\n\x1bSearchFilesByContentRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\r\n\x05query\x18\x02 \x01(\t\x12\x0b\n\x03ref\x18\x03 \x01(\x0cJ\x04\x08\x04\x10\x05R\x10\x63hunked_response\"W\n\x1cSearchFilesByContentResponse\x12\x12\n\nmatch_data\x18\x02 \x01(\x0c\x12\x14\n\x0c\x65nd_of_match\x18\x03 \x01(\x08J\x04\x08\x01\x10\x02R\x07matches\"\x87\x01\n\x06Remote\x12\x0b\n\x03url\x18\x01 \x01(\t\x12!\n\x19http_authorization_header\x18\x03 \x01(\t\x12\x16\n\x0emirror_refmaps\x18\x04 \x03(\t\x12\x18\n\x10resolved_address\x18\x06 \x01(\tJ\x04\x08\x02\x10\x03J\x04\x08\x05\x10\x06R\x04nameR\thttp_host\"M\n\x1dGetObjectDirectorySizeRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\".\n\x1eGetObjectDirectorySizeResponse\x12\x0c\n\x04size\x18\x01 \x01(\x03\"G\n\x17RemoveRepositoryRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"\x1a\n\x18RemoveRepositoryResponse\"\xa9\x01\n\x1aReplicateRepositoryRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\"\n\x06source\x18\x02 \x01(\x0b\x32\x12.gitaly.Repository\x12\x39\n1replicate_object_deduplication_network_membership\x18\x03 \x01(\x08\"\x1d\n\x1bReplicateRepositoryResponse\"\xdb\x01\n\x19OptimizeRepositoryRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12<\n\x08strategy\x18\x02 \x01(\x0e\x32*.gitaly.OptimizeRepositoryRequest.Strategy\"R\n\x08Strategy\x12\x18\n\x14STRATEGY_UNSPECIFIED\x10\x00\x12\x18\n\x14STRATEGY_HEURISTICAL\x10\x01\x12\x12\n\x0eSTRATEGY_EAGER\x10\x02\"\x1c\n\x1aOptimizeRepositoryResponse\"N\n\x1ePruneUnreachableObjectsRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"!\n\x1fPruneUnreachableObjectsResponse\"P\n\x12SetFullPathRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0c\n\x04path\x18\x02 \x01(\t\"\x15\n\x13SetFullPathResponse\"?\n\x0f\x46ullPathRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\" \n\x10\x46ullPathResponse\x12\x0c\n\x04path\x18\x01 \x01(\t\".\n\x10RemoveAllRequest\x12\x1a\n\x0cstorage_name\x18\x01 \x01(\tB\x04\x88\xc6,\x01\"\x13\n\x11RemoveAllResponse\"\x9e\x01\n\x17\x42\x61\x63kupRepositoryRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12-\n\x11vanity_repository\x18\x02 \x01(\x0b\x32\x12.gitaly.Repository\x12\x11\n\tbackup_id\x18\x03 \x01(\t\x12\x13\n\x0bincremental\x18\x04 \x01(\x08\"*\n\x18\x42\x61\x63kupRepositoryResponse\x1a\x0e\n\x0cSkippedError\"\xa1\x01\n\x18RestoreRepositoryRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12-\n\x11vanity_repository\x18\x02 \x01(\x0b\x32\x12.gitaly.Repository\x12\x11\n\tbackup_id\x18\x03 \x01(\t\x12\x15\n\ralways_create\x18\x04 \x01(\x08\"+\n\x19RestoreRepositoryResponse\x1a\x0e\n\x0cSkippedError\"}\n\x18GetFileAttributesRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x10\n\x08revision\x18\x02 \x01(\x0c\x12\x12\n\nattributes\x18\x03 \x03(\t\x12\r\n\x05paths\x18\x04 \x03(\t\"\xa6\x01\n\x19GetFileAttributesResponse\x12H\n\x0f\x61ttribute_infos\x18\x01 \x03(\x0b\x32/.gitaly.GetFileAttributesResponse.AttributeInfo\x1a?\n\rAttributeInfo\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x11\n\tattribute\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\t2\xaf \n\x11RepositoryService\x12]\n\x10RepositoryExists\x12\x1f.gitaly.RepositoryExistsRequest\x1a .gitaly.RepositoryExistsResponse\"\x06\xfa\x97(\x02\x08\x02\x12W\n\x0eRepositorySize\x12\x1d.gitaly.RepositorySizeRequest\x1a\x1e.gitaly.RepositorySizeResponse\"\x06\xfa\x97(\x02\x08\x02\x12W\n\x0eRepositoryInfo\x12\x1d.gitaly.RepositoryInfoRequest\x1a\x1e.gitaly.RepositoryInfoResponse\"\x06\xfa\x97(\x02\x08\x02\x12P\n\x0bObjectsSize\x12\x1a.gitaly.ObjectsSizeRequest\x1a\x1b.gitaly.ObjectsSizeResponse\"\x06\xfa\x97(\x02\x08\x02(\x01\x12Q\n\x0cObjectFormat\x12\x1b.gitaly.ObjectFormatRequest\x1a\x1c.gitaly.ObjectFormatResponse\"\x06\xfa\x97(\x02\x08\x02\x12\x66\n\x12\x41pplyGitattributes\x12!.gitaly.ApplyGitattributesRequest\x1a\".gitaly.ApplyGitattributesResponse\"\t\x88\x02\x01\xfa\x97(\x02\x08\x01\x12N\n\x0b\x46\x65tchRemote\x12\x1a.gitaly.FetchRemoteRequest\x1a\x1b.gitaly.FetchRemoteResponse\"\x06\xfa\x97(\x02\x08\x01\x12]\n\x10\x43reateRepository\x12\x1f.gitaly.CreateRepositoryRequest\x1a .gitaly.CreateRepositoryResponse\"\x06\xfa\x97(\x02\x08\x01\x12M\n\nGetArchive\x12\x19.gitaly.GetArchiveRequest\x1a\x1a.gitaly.GetArchiveResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12]\n\x10HasLocalBranches\x12\x1f.gitaly.HasLocalBranchesRequest\x1a .gitaly.HasLocalBranchesResponse\"\x06\xfa\x97(\x02\x08\x02\x12`\n\x11\x46\x65tchSourceBranch\x12 .gitaly.FetchSourceBranchRequest\x1a!.gitaly.FetchSourceBranchResponse\"\x06\xfa\x97(\x02\x08\x01\x12\x39\n\x04\x46sck\x12\x13.gitaly.FsckRequest\x1a\x14.gitaly.FsckResponse\"\x06\xfa\x97(\x02\x08\x02\x12\x45\n\x08WriteRef\x12\x17.gitaly.WriteRefRequest\x1a\x18.gitaly.WriteRefResponse\"\x06\xfa\x97(\x02\x08\x01\x12T\n\rFindMergeBase\x12\x1c.gitaly.FindMergeBaseRequest\x1a\x1d.gitaly.FindMergeBaseResponse\"\x06\xfa\x97(\x02\x08\x02\x12K\n\nCreateFork\x12\x19.gitaly.CreateForkRequest\x1a\x1a.gitaly.CreateForkResponse\"\x06\xfa\x97(\x02\x08\x01\x12r\n\x17\x43reateRepositoryFromURL\x12&.gitaly.CreateRepositoryFromURLRequest\x1a\'.gitaly.CreateRepositoryFromURLResponse\"\x06\xfa\x97(\x02\x08\x01\x12S\n\x0c\x43reateBundle\x12\x1b.gitaly.CreateBundleRequest\x1a\x1c.gitaly.CreateBundleResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12v\n\x17\x43reateBundleFromRefList\x12&.gitaly.CreateBundleFromRefListRequest\x1a\'.gitaly.CreateBundleFromRefListResponse\"\x06\xfa\x97(\x02\x08\x02(\x01\x30\x01\x12P\n\x0b\x46\x65tchBundle\x12\x1a.gitaly.FetchBundleRequest\x1a\x1b.gitaly.FetchBundleResponse\"\x06\xfa\x97(\x02\x08\x01(\x01\x12}\n\x1a\x43reateRepositoryFromBundle\x12).gitaly.CreateRepositoryFromBundleRequest\x1a*.gitaly.CreateRepositoryFromBundleResponse\"\x06\xfa\x97(\x02\x08\x01(\x01\x12J\n\tGetConfig\x12\x18.gitaly.GetConfigRequest\x1a\x19.gitaly.GetConfigResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12N\n\x0b\x46indLicense\x12\x1a.gitaly.FindLicenseRequest\x1a\x1b.gitaly.FindLicenseResponse\"\x06\xfa\x97(\x02\x08\x02\x12\x65\n\x11GetInfoAttributes\x12 .gitaly.GetInfoAttributesRequest\x1a!.gitaly.GetInfoAttributesResponse\"\t\x88\x02\x01\xfa\x97(\x02\x08\x02\x30\x01\x12`\n\x11\x43\x61lculateChecksum\x12 .gitaly.CalculateChecksumRequest\x1a!.gitaly.CalculateChecksumResponse\"\x06\xfa\x97(\x02\x08\x02\x12P\n\x0bGetSnapshot\x12\x1a.gitaly.GetSnapshotRequest\x1a\x1b.gitaly.GetSnapshotResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12\x81\x01\n\x1c\x43reateRepositoryFromSnapshot\x12+.gitaly.CreateRepositoryFromSnapshotRequest\x1a,.gitaly.CreateRepositoryFromSnapshotResponse\"\x06\xfa\x97(\x02\x08\x01\x12V\n\rGetRawChanges\x12\x1c.gitaly.GetRawChangesRequest\x1a\x1d.gitaly.GetRawChangesResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12k\n\x14SearchFilesByContent\x12#.gitaly.SearchFilesByContentRequest\x1a$.gitaly.SearchFilesByContentResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12\x62\n\x11SearchFilesByName\x12 .gitaly.SearchFilesByNameRequest\x1a!.gitaly.SearchFilesByNameResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12h\n\x12RestoreCustomHooks\x12!.gitaly.RestoreCustomHooksRequest\x1a\".gitaly.RestoreCustomHooksResponse\"\t\x88\x02\x01\xfa\x97(\x02\x08\x01(\x01\x12Y\n\x0eSetCustomHooks\x12\x1d.gitaly.SetCustomHooksRequest\x1a\x1e.gitaly.SetCustomHooksResponse\"\x06\xfa\x97(\x02\x08\x01(\x01\x12\x65\n\x11\x42\x61\x63kupCustomHooks\x12 .gitaly.BackupCustomHooksRequest\x1a!.gitaly.BackupCustomHooksResponse\"\t\x88\x02\x01\xfa\x97(\x02\x08\x02\x30\x01\x12Y\n\x0eGetCustomHooks\x12\x1d.gitaly.GetCustomHooksRequest\x1a\x1e.gitaly.GetCustomHooksResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12o\n\x16GetObjectDirectorySize\x12%.gitaly.GetObjectDirectorySizeRequest\x1a&.gitaly.GetObjectDirectorySizeResponse\"\x06\xfa\x97(\x02\x08\x02\x12]\n\x10RemoveRepository\x12\x1f.gitaly.RemoveRepositoryRequest\x1a .gitaly.RemoveRepositoryResponse\"\x06\xfa\x97(\x02\x08\x01\x12\x66\n\x13ReplicateRepository\x12\".gitaly.ReplicateRepositoryRequest\x1a#.gitaly.ReplicateRepositoryResponse\"\x06\xfa\x97(\x02\x08\x01\x12\x63\n\x12OptimizeRepository\x12!.gitaly.OptimizeRepositoryRequest\x1a\".gitaly.OptimizeRepositoryResponse\"\x06\xfa\x97(\x02\x08\x03\x12r\n\x17PruneUnreachableObjects\x12&.gitaly.PruneUnreachableObjectsRequest\x1a\'.gitaly.PruneUnreachableObjectsResponse\"\x06\xfa\x97(\x02\x08\x03\x12Q\n\x0bSetFullPath\x12\x1a.gitaly.SetFullPathRequest\x1a\x1b.gitaly.SetFullPathResponse\"\t\x88\x02\x01\xfa\x97(\x02\x08\x01\x12H\n\x08\x46ullPath\x12\x17.gitaly.FullPathRequest\x1a\x18.gitaly.FullPathResponse\"\t\x88\x02\x01\xfa\x97(\x02\x08\x02\x12J\n\tRemoveAll\x12\x18.gitaly.RemoveAllRequest\x1a\x19.gitaly.RemoveAllResponse\"\x08\xfa\x97(\x04\x08\x01\x10\x02\x12]\n\x10\x42\x61\x63kupRepository\x12\x1f.gitaly.BackupRepositoryRequest\x1a .gitaly.BackupRepositoryResponse\"\x06\xfa\x97(\x02\x08\x02\x12`\n\x11RestoreRepository\x12 .gitaly.RestoreRepositoryRequest\x1a!.gitaly.RestoreRepositoryResponse\"\x06\xfa\x97(\x02\x08\x01\x12`\n\x11GetFileAttributes\x12 .gitaly.GetFileAttributesRequest\x1a!.gitaly.GetFileAttributesResponse\"\x06\xfa\x97(\x02\x08\x02\x42\x34Z2gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypbb\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["gitaly.Repository", "shared.proto"],
|
27
|
+
]
|
28
|
+
imports.each do |type_name, expected_filename|
|
29
|
+
import_file = pool.lookup(type_name).file_descriptor
|
30
|
+
if import_file.name != expected_filename
|
31
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
35
|
+
warn "This will become an error in the next major version."
|
36
|
+
end
|
37
|
+
|
38
|
+
module Gitaly
|
39
|
+
RepositoryExistsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositoryExistsRequest").msgclass
|
40
|
+
RepositoryExistsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositoryExistsResponse").msgclass
|
41
|
+
RepositorySizeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositorySizeRequest").msgclass
|
42
|
+
RepositorySizeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositorySizeResponse").msgclass
|
43
|
+
RepositoryInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositoryInfoRequest").msgclass
|
44
|
+
RepositoryInfoResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositoryInfoResponse").msgclass
|
45
|
+
RepositoryInfoResponse::ReferencesInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositoryInfoResponse.ReferencesInfo").msgclass
|
46
|
+
RepositoryInfoResponse::ObjectsInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositoryInfoResponse.ObjectsInfo").msgclass
|
47
|
+
ObjectsSizeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ObjectsSizeRequest").msgclass
|
48
|
+
ObjectsSizeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ObjectsSizeResponse").msgclass
|
49
|
+
ObjectFormatRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ObjectFormatRequest").msgclass
|
50
|
+
ObjectFormatResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ObjectFormatResponse").msgclass
|
51
|
+
ApplyGitattributesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ApplyGitattributesRequest").msgclass
|
52
|
+
ApplyGitattributesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ApplyGitattributesResponse").msgclass
|
53
|
+
FetchBundleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchBundleRequest").msgclass
|
54
|
+
FetchBundleResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchBundleResponse").msgclass
|
55
|
+
FetchRemoteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchRemoteRequest").msgclass
|
56
|
+
FetchRemoteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchRemoteResponse").msgclass
|
57
|
+
CreateRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateRepositoryRequest").msgclass
|
58
|
+
CreateRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateRepositoryResponse").msgclass
|
59
|
+
GetArchiveRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetArchiveRequest").msgclass
|
60
|
+
GetArchiveRequest::Format = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetArchiveRequest.Format").enummodule
|
61
|
+
GetArchiveResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetArchiveResponse").msgclass
|
62
|
+
HasLocalBranchesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.HasLocalBranchesRequest").msgclass
|
63
|
+
HasLocalBranchesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.HasLocalBranchesResponse").msgclass
|
64
|
+
FetchSourceBranchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchSourceBranchRequest").msgclass
|
65
|
+
FetchSourceBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchSourceBranchResponse").msgclass
|
66
|
+
FsckRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FsckRequest").msgclass
|
67
|
+
FsckResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FsckResponse").msgclass
|
68
|
+
WriteRefRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.WriteRefRequest").msgclass
|
69
|
+
WriteRefResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.WriteRefResponse").msgclass
|
70
|
+
FindMergeBaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindMergeBaseRequest").msgclass
|
71
|
+
FindMergeBaseResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindMergeBaseResponse").msgclass
|
72
|
+
CreateForkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateForkRequest").msgclass
|
73
|
+
CreateForkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateForkResponse").msgclass
|
74
|
+
CreateRepositoryFromURLRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateRepositoryFromURLRequest").msgclass
|
75
|
+
CreateRepositoryFromURLResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateRepositoryFromURLResponse").msgclass
|
76
|
+
CreateBundleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateBundleRequest").msgclass
|
77
|
+
CreateBundleResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateBundleResponse").msgclass
|
78
|
+
CreateBundleFromRefListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateBundleFromRefListRequest").msgclass
|
79
|
+
CreateBundleFromRefListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateBundleFromRefListResponse").msgclass
|
80
|
+
GetConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetConfigRequest").msgclass
|
81
|
+
GetConfigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetConfigResponse").msgclass
|
82
|
+
RestoreCustomHooksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RestoreCustomHooksRequest").msgclass
|
83
|
+
SetCustomHooksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetCustomHooksRequest").msgclass
|
84
|
+
RestoreCustomHooksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RestoreCustomHooksResponse").msgclass
|
85
|
+
SetCustomHooksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetCustomHooksResponse").msgclass
|
86
|
+
BackupCustomHooksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.BackupCustomHooksRequest").msgclass
|
87
|
+
GetCustomHooksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetCustomHooksRequest").msgclass
|
88
|
+
BackupCustomHooksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.BackupCustomHooksResponse").msgclass
|
89
|
+
GetCustomHooksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetCustomHooksResponse").msgclass
|
90
|
+
CreateRepositoryFromBundleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateRepositoryFromBundleRequest").msgclass
|
91
|
+
CreateRepositoryFromBundleResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateRepositoryFromBundleResponse").msgclass
|
92
|
+
FindLicenseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindLicenseRequest").msgclass
|
93
|
+
FindLicenseResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindLicenseResponse").msgclass
|
94
|
+
GetInfoAttributesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetInfoAttributesRequest").msgclass
|
95
|
+
GetInfoAttributesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetInfoAttributesResponse").msgclass
|
96
|
+
CalculateChecksumRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CalculateChecksumRequest").msgclass
|
97
|
+
CalculateChecksumResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CalculateChecksumResponse").msgclass
|
98
|
+
GetSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetSnapshotRequest").msgclass
|
99
|
+
GetSnapshotResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetSnapshotResponse").msgclass
|
100
|
+
CreateRepositoryFromSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateRepositoryFromSnapshotRequest").msgclass
|
101
|
+
CreateRepositoryFromSnapshotResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateRepositoryFromSnapshotResponse").msgclass
|
102
|
+
GetRawChangesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetRawChangesRequest").msgclass
|
103
|
+
GetRawChangesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetRawChangesResponse").msgclass
|
104
|
+
GetRawChangesResponse::RawChange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetRawChangesResponse.RawChange").msgclass
|
105
|
+
GetRawChangesResponse::RawChange::Operation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetRawChangesResponse.RawChange.Operation").enummodule
|
106
|
+
SearchFilesByNameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SearchFilesByNameRequest").msgclass
|
107
|
+
SearchFilesByNameResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SearchFilesByNameResponse").msgclass
|
108
|
+
SearchFilesByContentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SearchFilesByContentRequest").msgclass
|
109
|
+
SearchFilesByContentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SearchFilesByContentResponse").msgclass
|
110
|
+
Remote = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.Remote").msgclass
|
111
|
+
GetObjectDirectorySizeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetObjectDirectorySizeRequest").msgclass
|
112
|
+
GetObjectDirectorySizeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetObjectDirectorySizeResponse").msgclass
|
113
|
+
RemoveRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RemoveRepositoryRequest").msgclass
|
114
|
+
RemoveRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RemoveRepositoryResponse").msgclass
|
115
|
+
ReplicateRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReplicateRepositoryRequest").msgclass
|
116
|
+
ReplicateRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReplicateRepositoryResponse").msgclass
|
117
|
+
OptimizeRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OptimizeRepositoryRequest").msgclass
|
118
|
+
OptimizeRepositoryRequest::Strategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OptimizeRepositoryRequest.Strategy").enummodule
|
119
|
+
OptimizeRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OptimizeRepositoryResponse").msgclass
|
120
|
+
PruneUnreachableObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PruneUnreachableObjectsRequest").msgclass
|
121
|
+
PruneUnreachableObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PruneUnreachableObjectsResponse").msgclass
|
122
|
+
SetFullPathRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetFullPathRequest").msgclass
|
123
|
+
SetFullPathResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetFullPathResponse").msgclass
|
124
|
+
FullPathRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FullPathRequest").msgclass
|
125
|
+
FullPathResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FullPathResponse").msgclass
|
126
|
+
RemoveAllRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RemoveAllRequest").msgclass
|
127
|
+
RemoveAllResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RemoveAllResponse").msgclass
|
128
|
+
BackupRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.BackupRepositoryRequest").msgclass
|
129
|
+
BackupRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.BackupRepositoryResponse").msgclass
|
130
|
+
BackupRepositoryResponse::SkippedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.BackupRepositoryResponse.SkippedError").msgclass
|
131
|
+
RestoreRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RestoreRepositoryRequest").msgclass
|
132
|
+
RestoreRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RestoreRepositoryResponse").msgclass
|
133
|
+
RestoreRepositoryResponse::SkippedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RestoreRepositoryResponse.SkippedError").msgclass
|
134
|
+
GetFileAttributesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetFileAttributesRequest").msgclass
|
135
|
+
GetFileAttributesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetFileAttributesResponse").msgclass
|
136
|
+
GetFileAttributesResponse::AttributeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetFileAttributesResponse.AttributeInfo").msgclass
|
137
|
+
end
|
@@ -0,0 +1,198 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: repository.proto for package 'gitaly'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'repository_pb'
|
6
|
+
|
7
|
+
module Gitaly
|
8
|
+
module RepositoryService
|
9
|
+
# RepositoryService is a service providing RPCs accessing repositories as a whole.
|
10
|
+
class Service
|
11
|
+
|
12
|
+
include ::GRPC::GenericService
|
13
|
+
|
14
|
+
self.marshal_class_method = :encode
|
15
|
+
self.unmarshal_class_method = :decode
|
16
|
+
self.service_name = 'gitaly.RepositoryService'
|
17
|
+
|
18
|
+
# RepositoryExists returns whether a given repository exists.
|
19
|
+
rpc :RepositoryExists, ::Gitaly::RepositoryExistsRequest, ::Gitaly::RepositoryExistsResponse
|
20
|
+
# RepositorySize returns information on the complete on-disk repository size. If you need more
|
21
|
+
# detailed information about the size of various sub-structures you should instead use the
|
22
|
+
# repositoryInfo RPC.
|
23
|
+
rpc :RepositorySize, ::Gitaly::RepositorySizeRequest, ::Gitaly::RepositorySizeResponse
|
24
|
+
# RepositoryInfo returns detailed information about a repository and its data structures.
|
25
|
+
rpc :RepositoryInfo, ::Gitaly::RepositoryInfoRequest, ::Gitaly::RepositoryInfoResponse
|
26
|
+
# ObjectsSize calculates the total on-disk object size of reachable objects in bytes. In contrast
|
27
|
+
# to RepositorySize and RepositoryInfo, this RPC performs a graph walk of the specified revisions
|
28
|
+
# and will thus return an accurate view of how large the accumulated on-disk size of reachable
|
29
|
+
# objects is.
|
30
|
+
#
|
31
|
+
# As this RPC needs to perform a revision walk, it is significantly more expensive than the RPCs
|
32
|
+
# which simply check the size of on-disk data structures. On the other hand, it allows the caller
|
33
|
+
# to accurately compute the size of objects in a way that is at least somewhat detached from the
|
34
|
+
# on-disk representation:
|
35
|
+
#
|
36
|
+
# - Objects which exist in multiple packfiles will not be double-counted.
|
37
|
+
# - Objects which aren't reachable will not be accounted for.
|
38
|
+
# - It is possible to only account for a subset of references, e.g. only those that an admin
|
39
|
+
# would have direct control over.
|
40
|
+
#
|
41
|
+
# It is thus recommended to use this RPC whenever you want to calculate sizes which will end up
|
42
|
+
# being shown to the user.
|
43
|
+
#
|
44
|
+
# Note that the size is still bound to change when repositories are getting repacked and thus
|
45
|
+
# cannot be considered to be stable. This is because the on-disk size of any object can change
|
46
|
+
# depending on how Git decides to deltify it in a packfile. Thus, when a repack would cause a
|
47
|
+
# different delta base to be picked, the actual on-disk size of any given object may change.
|
48
|
+
rpc :ObjectsSize, stream(::Gitaly::ObjectsSizeRequest), ::Gitaly::ObjectsSizeResponse
|
49
|
+
# ObjectFormat determines the object format that is being used by the repository.
|
50
|
+
rpc :ObjectFormat, ::Gitaly::ObjectFormatRequest, ::Gitaly::ObjectFormatResponse
|
51
|
+
# ApplyGitattributes writes the attributes from the given revision to info/attributes.
|
52
|
+
# This RPC will be removed in 17.0.
|
53
|
+
rpc :ApplyGitattributes, ::Gitaly::ApplyGitattributesRequest, ::Gitaly::ApplyGitattributesResponse
|
54
|
+
# FetchRemote fetches references from a remote repository into the local
|
55
|
+
# repository. The remote can be fetched via HTTP or SSH depending on the
|
56
|
+
# request options provided.
|
57
|
+
rpc :FetchRemote, ::Gitaly::FetchRemoteRequest, ::Gitaly::FetchRemoteResponse
|
58
|
+
# CreateRepository creates a new empty repository.
|
59
|
+
rpc :CreateRepository, ::Gitaly::CreateRepositoryRequest, ::Gitaly::CreateRepositoryResponse
|
60
|
+
# GetArchive produces and returns an archive of a repository.
|
61
|
+
rpc :GetArchive, ::Gitaly::GetArchiveRequest, stream(::Gitaly::GetArchiveResponse)
|
62
|
+
# HasLocalBranches returns whether the given repo contains any branches.
|
63
|
+
rpc :HasLocalBranches, ::Gitaly::HasLocalBranchesRequest, ::Gitaly::HasLocalBranchesResponse
|
64
|
+
# FetchSourceBranch fetches a branch from a second (potentially remote)
|
65
|
+
# repository into the given repository.
|
66
|
+
rpc :FetchSourceBranch, ::Gitaly::FetchSourceBranchRequest, ::Gitaly::FetchSourceBranchResponse
|
67
|
+
# Fsck checks the repository for consistency via git-fsck(1). This can be used to check for
|
68
|
+
# repository corruption.
|
69
|
+
rpc :Fsck, ::Gitaly::FsckRequest, ::Gitaly::FsckResponse
|
70
|
+
# WriteRef creates or updates a ref in a repository to point to a new value.
|
71
|
+
rpc :WriteRef, ::Gitaly::WriteRefRequest, ::Gitaly::WriteRefResponse
|
72
|
+
# FindMergeBase returns the best common ancestor between two or more commits. Consult the man
|
73
|
+
# pages of git-merge-base(1) for more information on how this is calculated.
|
74
|
+
rpc :FindMergeBase, ::Gitaly::FindMergeBaseRequest, ::Gitaly::FindMergeBaseResponse
|
75
|
+
# CreateFork creates a new repository from a specific source repository. This new repository will
|
76
|
+
# have the same branches and tags as the source repository. Internal references will not be
|
77
|
+
# recreated in the forked repository.
|
78
|
+
#
|
79
|
+
# all objects of the source repository will be duplicated, that is there are no space savings by
|
80
|
+
# creating the repository like this. The newly created repository does not join the object pool
|
81
|
+
# of the source repository, if there is any.
|
82
|
+
rpc :CreateFork, ::Gitaly::CreateForkRequest, ::Gitaly::CreateForkResponse
|
83
|
+
# CreateRepositoryFromURL creates a new repo and seeds it with the contents of an existing Git repo
|
84
|
+
# reachable at the provided URL.
|
85
|
+
rpc :CreateRepositoryFromURL, ::Gitaly::CreateRepositoryFromURLRequest, ::Gitaly::CreateRepositoryFromURLResponse
|
86
|
+
# CreateBundle creates a bundle from all refs
|
87
|
+
rpc :CreateBundle, ::Gitaly::CreateBundleRequest, stream(::Gitaly::CreateBundleResponse)
|
88
|
+
# CreateBundleFromRefList creates a bundle from a stream of ref patterns.
|
89
|
+
# When the bundle would be empty the FailedPrecondition error code is returned.
|
90
|
+
rpc :CreateBundleFromRefList, stream(::Gitaly::CreateBundleFromRefListRequest), stream(::Gitaly::CreateBundleFromRefListResponse)
|
91
|
+
# FetchBundle fetches references from a bundle into the local repository.
|
92
|
+
# refs will be mirrored to the target repository with the refspec
|
93
|
+
# "+refs/*:refs/*" and refs that do not exist in the bundle will be removed.
|
94
|
+
rpc :FetchBundle, stream(::Gitaly::FetchBundleRequest), ::Gitaly::FetchBundleResponse
|
95
|
+
# CreateRepositoryFromBundle creates a Git repository at the specified storage and path, if it
|
96
|
+
# does not already exist, from the provided Git bundle.
|
97
|
+
rpc :CreateRepositoryFromBundle, stream(::Gitaly::CreateRepositoryFromBundleRequest), ::Gitaly::CreateRepositoryFromBundleResponse
|
98
|
+
# GetConfig reads the target repository's gitconfig and streams its contents
|
99
|
+
# back. Returns a NotFound error in case no gitconfig was found.
|
100
|
+
rpc :GetConfig, ::Gitaly::GetConfigRequest, stream(::Gitaly::GetConfigResponse)
|
101
|
+
# FindLicense looks in the given repository and attempts to detect all the
|
102
|
+
# details about the license used in the repository.
|
103
|
+
rpc :FindLicense, ::Gitaly::FindLicenseRequest, ::Gitaly::FindLicenseResponse
|
104
|
+
# GetInfoAttributes reads the contents from info/attributes.
|
105
|
+
# This RPC will be removed in 17.0.
|
106
|
+
rpc :GetInfoAttributes, ::Gitaly::GetInfoAttributesRequest, stream(::Gitaly::GetInfoAttributesResponse)
|
107
|
+
# CalculateChecksum returns a checksum of the repository by hashing its references. Refs
|
108
|
+
# outside of well-known namespaces are not considered when computing the checksum.
|
109
|
+
rpc :CalculateChecksum, ::Gitaly::CalculateChecksumRequest, ::Gitaly::CalculateChecksumResponse
|
110
|
+
# GetSnapshot returns a snapshot of the repository. A snapshot comprises all Git references
|
111
|
+
# and objects required to recreate the state of a repository at a point in time.
|
112
|
+
rpc :GetSnapshot, ::Gitaly::GetSnapshotRequest, stream(::Gitaly::GetSnapshotResponse)
|
113
|
+
# CreateRepositoryFromSnapshot creates a new repository based on a snapshot created with
|
114
|
+
# the GetSnapshot RPC. The snapshot is fetched via HTTP.
|
115
|
+
rpc :CreateRepositoryFromSnapshot, ::Gitaly::CreateRepositoryFromSnapshotRequest, ::Gitaly::CreateRepositoryFromSnapshotResponse
|
116
|
+
# GetRawChanges returns metadata in raw format on the changes between two revisions.
|
117
|
+
rpc :GetRawChanges, ::Gitaly::GetRawChangesRequest, stream(::Gitaly::GetRawChangesResponse)
|
118
|
+
# SearchFilesByContent searches files in the repository using the provided grep pattern.
|
119
|
+
# For each result, the matched line is returned along with the two previous and next lines.
|
120
|
+
rpc :SearchFilesByContent, ::Gitaly::SearchFilesByContentRequest, stream(::Gitaly::SearchFilesByContentResponse)
|
121
|
+
# SearchFilesByName searches files in the repository based on its name and an
|
122
|
+
# optional filter.
|
123
|
+
rpc :SearchFilesByName, ::Gitaly::SearchFilesByNameRequest, stream(::Gitaly::SearchFilesByNameResponse)
|
124
|
+
# RestoreCustomHooks sets the git hooks for a repository. The hooks are sent
|
125
|
+
# in a tar archive containing a `custom_hooks` directory. This directory is
|
126
|
+
# ultimately extracted to the repository.
|
127
|
+
rpc :RestoreCustomHooks, stream(::Gitaly::RestoreCustomHooksRequest), ::Gitaly::RestoreCustomHooksResponse
|
128
|
+
# SetCustomHooks sets the git hooks for a repository. The hooks are sent in a
|
129
|
+
# tar archive containing a `custom_hooks` directory (i.e. the response from the
|
130
|
+
# GetCustomHooksResponse RPC. This directory will be extracted into the repository.
|
131
|
+
rpc :SetCustomHooks, stream(::Gitaly::SetCustomHooksRequest), ::Gitaly::SetCustomHooksResponse
|
132
|
+
# BackupCustomHooks fetches the git hooks for a repository. The hooks are
|
133
|
+
# sent in a tar archive containing a `custom_hooks` directory. If no hooks
|
134
|
+
# are present in the repository, the response will have no data.
|
135
|
+
rpc :BackupCustomHooks, ::Gitaly::BackupCustomHooksRequest, stream(::Gitaly::BackupCustomHooksResponse)
|
136
|
+
# GetCustomHooks fetches the git hooks for a repository. The hooks are sent
|
137
|
+
# in a tar archive containing a `custom_hooks` directory. If no hooks are
|
138
|
+
# present in the repository, the response will have no data.
|
139
|
+
rpc :GetCustomHooks, ::Gitaly::GetCustomHooksRequest, stream(::Gitaly::GetCustomHooksResponse)
|
140
|
+
# GetObjectDirectorySize returns the size in kibibytes of the object directory of a repository.
|
141
|
+
rpc :GetObjectDirectorySize, ::Gitaly::GetObjectDirectorySizeRequest, ::Gitaly::GetObjectDirectorySizeResponse
|
142
|
+
# RemoveRepository will move the repository to `+gitaly/tmp/<relative_path>_removed` and
|
143
|
+
# eventually remove it. This ensures that even on networked filesystems the
|
144
|
+
# data is actually removed even if there's someone still handling the data.
|
145
|
+
rpc :RemoveRepository, ::Gitaly::RemoveRepositoryRequest, ::Gitaly::RemoveRepositoryResponse
|
146
|
+
# ReplicateRepository replicates data from a source repository to target repository. On the
|
147
|
+
# target repository, this operation ensures synchronization of the following components:
|
148
|
+
#
|
149
|
+
# - Git config
|
150
|
+
# - Git attributes
|
151
|
+
# - Custom Git hooks,
|
152
|
+
# - References and objects
|
153
|
+
# - (Optional) Object deduplication network membership
|
154
|
+
rpc :ReplicateRepository, ::Gitaly::ReplicateRepositoryRequest, ::Gitaly::ReplicateRepositoryResponse
|
155
|
+
# OptimizeRepository performs all maintenance tasks in a repository to keep
|
156
|
+
# it in an efficient state. It cleans up stale data, repacks objects,
|
157
|
+
# updates auxiliary caches like commit-graphs and packs references. The
|
158
|
+
# optimizations performed are based on heuristics and will adapt to the
|
159
|
+
# repository's size. This RPC call is designed as a black-box such that
|
160
|
+
# Gitaly has complete control of the on-disk state of repositories.
|
161
|
+
rpc :OptimizeRepository, ::Gitaly::OptimizeRepositoryRequest, ::Gitaly::OptimizeRepositoryResponse
|
162
|
+
# PruneUnreachableObjects will prune all objects which aren't reachable from
|
163
|
+
# the repository's current set of references. Because pruning can only
|
164
|
+
# happen for objects which aren't packed, you are required to first run
|
165
|
+
# OptimizeRepository to explode any unreachable objects into loose objects.
|
166
|
+
#
|
167
|
+
# Furthermore, this RPC call has a grace period of 30 minutes: any
|
168
|
+
# unreachable loose objects must not have been accessed or modified in the
|
169
|
+
# last 30 minutes. This is a hard requirement to avoid repository corruption.
|
170
|
+
#
|
171
|
+
# to make proper use of this RPC you thus need to call OptimizeRepository,
|
172
|
+
# wait 30 minutes, and then call PruneUnreachableObjects.
|
173
|
+
rpc :PruneUnreachableObjects, ::Gitaly::PruneUnreachableObjectsRequest, ::Gitaly::PruneUnreachableObjectsResponse
|
174
|
+
# SetFullPath writes the "gitlab.fullpath" configuration into the
|
175
|
+
# repository's gitconfig. This is mainly to help debugging purposes in case
|
176
|
+
# an admin inspects the repository's gitconfig such that he can easily see
|
177
|
+
# what the repository name is.
|
178
|
+
rpc :SetFullPath, ::Gitaly::SetFullPathRequest, ::Gitaly::SetFullPathResponse
|
179
|
+
# FullPath reads the "gitlab.fullpath" configuration from the repository's
|
180
|
+
# gitconfig. Returns an error in case the full path has not been configured.
|
181
|
+
rpc :FullPath, ::Gitaly::FullPathRequest, ::Gitaly::FullPathResponse
|
182
|
+
# RemoveAll deletes all repositories on a specified storage.
|
183
|
+
rpc :RemoveAll, ::Gitaly::RemoveAllRequest, ::Gitaly::RemoveAllResponse
|
184
|
+
# BackupRepository creates a full or incremental backup streamed directly to
|
185
|
+
# object-storage. The backup is created synchronously. The destination must
|
186
|
+
# be configured in config.backup.go_cloud_url
|
187
|
+
rpc :BackupRepository, ::Gitaly::BackupRepositoryRequest, ::Gitaly::BackupRepositoryResponse
|
188
|
+
# RestoreRepository restores a backup streamed directly from object-storage.
|
189
|
+
# The repository is restored synchronously. The source object-storage must
|
190
|
+
# be configured in config.backup.go_cloud_url
|
191
|
+
rpc :RestoreRepository, ::Gitaly::RestoreRepositoryRequest, ::Gitaly::RestoreRepositoryResponse
|
192
|
+
# GetFileAttributes queries given file attributes as specified in .gitattributes file
|
193
|
+
rpc :GetFileAttributes, ::Gitaly::GetFileAttributesRequest, ::Gitaly::GetFileAttributesResponse
|
194
|
+
end
|
195
|
+
|
196
|
+
Stub = Service.rpc_stub_class
|
197
|
+
end
|
198
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: server.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/duration_pb'
|
8
|
+
require 'lint_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n\x0cserver.proto\x12\x06gitaly\x1a\x1egoogle/protobuf/duration.proto\x1a\nlint.proto\"\x13\n\x11ServerInfoRequest\"\x96\x02\n\x12ServerInfoResponse\x12\x16\n\x0eserver_version\x18\x01 \x01(\t\x12\x13\n\x0bgit_version\x18\x02 \x01(\t\x12\x42\n\x10storage_statuses\x18\x03 \x03(\x0b\x32(.gitaly.ServerInfoResponse.StorageStatus\x1a\x8e\x01\n\rStorageStatus\x12\x14\n\x0cstorage_name\x18\x01 \x01(\t\x12\x10\n\x08readable\x18\x02 \x01(\x08\x12\x11\n\twriteable\x18\x03 \x01(\x08\x12\x0f\n\x07\x66s_type\x18\x04 \x01(\t\x12\x15\n\rfilesystem_id\x18\x05 \x01(\t\x12\x1a\n\x12replication_factor\x18\x06 \x01(\r\"\x17\n\x15\x44iskStatisticsRequest\"\xa8\x01\n\x16\x44iskStatisticsResponse\x12\x46\n\x10storage_statuses\x18\x01 \x03(\x0b\x32,.gitaly.DiskStatisticsResponse.StorageStatus\x1a\x46\n\rStorageStatus\x12\x14\n\x0cstorage_name\x18\x01 \x01(\t\x12\x11\n\tavailable\x18\x02 \x01(\x03\x12\x0c\n\x04used\x18\x03 \x01(\x03\"x\n\x12\x43lockSyncedRequest\x12\x10\n\x08ntp_host\x18\x01 \x01(\t\x12\x32\n\x0f\x64rift_threshold\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationJ\x04\x08\x02\x10\x03R\x16\x64rift_threshold_millis\"%\n\x13\x43lockSyncedResponse\x12\x0e\n\x06synced\x18\x01 \x01(\x08\"C\n\x15ReadinessCheckRequest\x12*\n\x07timeout\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xab\x02\n\x16ReadinessCheckResponse\x12\x38\n\x0bok_response\x18\x01 \x01(\x0b\x32!.gitaly.ReadinessCheckResponse.OkH\x00\x12\x42\n\x10\x66\x61ilure_response\x18\x02 \x01(\x0b\x32&.gitaly.ReadinessCheckResponse.FailureH\x00\x1a\x04\n\x02Ok\x1a\x82\x01\n\x07\x46\x61ilure\x12\x46\n\rfailed_checks\x18\x01 \x03(\x0b\x32/.gitaly.ReadinessCheckResponse.Failure.Response\x1a/\n\x08Response\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x15\n\rerror_message\x18\x02 \x01(\tB\x08\n\x06Result2\xc4\x02\n\rServerService\x12\x43\n\nServerInfo\x12\x19.gitaly.ServerInfoRequest\x1a\x1a.gitaly.ServerInfoResponse\x12O\n\x0e\x44iskStatistics\x12\x1d.gitaly.DiskStatisticsRequest\x1a\x1e.gitaly.DiskStatisticsResponse\x12\x46\n\x0b\x43lockSynced\x12\x1a.gitaly.ClockSyncedRequest\x1a\x1b.gitaly.ClockSyncedResponse\x12O\n\x0eReadinessCheck\x12\x1d.gitaly.ReadinessCheckRequest\x1a\x1e.gitaly.ReadinessCheckResponse\x1a\x04\xf0\x97(\x01\x42\x34Z2gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypbb\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
27
|
+
]
|
28
|
+
imports.each do |type_name, expected_filename|
|
29
|
+
import_file = pool.lookup(type_name).file_descriptor
|
30
|
+
if import_file.name != expected_filename
|
31
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
35
|
+
warn "This will become an error in the next major version."
|
36
|
+
end
|
37
|
+
|
38
|
+
module Gitaly
|
39
|
+
ServerInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ServerInfoRequest").msgclass
|
40
|
+
ServerInfoResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ServerInfoResponse").msgclass
|
41
|
+
ServerInfoResponse::StorageStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ServerInfoResponse.StorageStatus").msgclass
|
42
|
+
DiskStatisticsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiskStatisticsRequest").msgclass
|
43
|
+
DiskStatisticsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiskStatisticsResponse").msgclass
|
44
|
+
DiskStatisticsResponse::StorageStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiskStatisticsResponse.StorageStatus").msgclass
|
45
|
+
ClockSyncedRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ClockSyncedRequest").msgclass
|
46
|
+
ClockSyncedResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ClockSyncedResponse").msgclass
|
47
|
+
ReadinessCheckRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReadinessCheckRequest").msgclass
|
48
|
+
ReadinessCheckResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReadinessCheckResponse").msgclass
|
49
|
+
ReadinessCheckResponse::Ok = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReadinessCheckResponse.Ok").msgclass
|
50
|
+
ReadinessCheckResponse::Failure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReadinessCheckResponse.Failure").msgclass
|
51
|
+
ReadinessCheckResponse::Failure::Response = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReadinessCheckResponse.Failure.Response").msgclass
|
52
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: server.proto for package 'gitaly'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'server_pb'
|
6
|
+
|
7
|
+
module Gitaly
|
8
|
+
module ServerService
|
9
|
+
# ServerService is a service that provides information about a Gitaly server.
|
10
|
+
class Service
|
11
|
+
|
12
|
+
include ::GRPC::GenericService
|
13
|
+
|
14
|
+
self.marshal_class_method = :encode
|
15
|
+
self.unmarshal_class_method = :decode
|
16
|
+
self.service_name = 'gitaly.ServerService'
|
17
|
+
|
18
|
+
# ServerInfo ...
|
19
|
+
rpc :ServerInfo, ::Gitaly::ServerInfoRequest, ::Gitaly::ServerInfoResponse
|
20
|
+
# DiskStatistics ...
|
21
|
+
rpc :DiskStatistics, ::Gitaly::DiskStatisticsRequest, ::Gitaly::DiskStatisticsResponse
|
22
|
+
# ClockSynced checks if machine clock is synced
|
23
|
+
# (the offset is less that the one passed in the request).
|
24
|
+
rpc :ClockSynced, ::Gitaly::ClockSyncedRequest, ::Gitaly::ClockSyncedResponse
|
25
|
+
# ReadinessCheck runs the set of the checks to make sure service is in operational state.
|
26
|
+
rpc :ReadinessCheck, ::Gitaly::ReadinessCheckRequest, ::Gitaly::ReadinessCheckResponse
|
27
|
+
end
|
28
|
+
|
29
|
+
Stub = Service.rpc_stub_class
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: service_config.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/duration_pb'
|
8
|
+
require 'google/protobuf/wrappers_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n\x14service_config.proto\x12\x06gitaly\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto\"x\n\rServiceConfig\x12:\n\x15load_balancing_config\x18\x01 \x03(\x0b\x32\x1b.gitaly.LoadBalancingConfig\x12+\n\rmethod_config\x18\x02 \x03(\x0b\x32\x14.gitaly.MethodConfig\"\x98\x01\n\x13LoadBalancingConfig\x12\x39\n\npick_first\x18\x01 \x01(\x0b\x32\x17.gitaly.PickFirstConfigH\x00R\npick_first\x12<\n\x0bround_robin\x18\x02 \x01(\x0b\x32\x18.gitaly.RoundRobinConfigH\x00R\x0bround_robinB\x08\n\x06policy\"\x11\n\x0fPickFirstConfig\"\x12\n\x10RoundRobinConfig\"\xc1\x04\n\x0cMethodConfig\x12\'\n\x04name\x18\x01 \x03(\x0b\x32\x19.gitaly.MethodConfig.Name\x12\x32\n\x0ewait_for_ready\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12*\n\x07timeout\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12?\n\x19max_request_message_bytes\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12@\n\x1amax_response_message_bytes\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12\x36\n\x0cretry_policy\x18\x06 \x01(\x0b\x32 .gitaly.MethodConfig.RetryPolicy\x1a\'\n\x04Name\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x0e\n\x06method\x18\x02 \x01(\t\x1a\xc3\x01\n\x0bRetryPolicy\x12\x14\n\x0cmax_attempts\x18\x01 \x01(\r\x12\x32\n\x0finitial_backoff\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x0bmax_backoff\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1a\n\x12\x62\x61\x63koff_multiplier\x18\x04 \x01(\x02\x12\x1e\n\x16retryable_status_codes\x18\x05 \x03(\tB4Z2gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypbb\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["google.protobuf.BoolValue", "google/protobuf/wrappers.proto"],
|
27
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
37
|
+
end
|
38
|
+
|
39
|
+
module Gitaly
|
40
|
+
ServiceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ServiceConfig").msgclass
|
41
|
+
LoadBalancingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LoadBalancingConfig").msgclass
|
42
|
+
PickFirstConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PickFirstConfig").msgclass
|
43
|
+
RoundRobinConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RoundRobinConfig").msgclass
|
44
|
+
MethodConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MethodConfig").msgclass
|
45
|
+
MethodConfig::Name = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MethodConfig.Name").msgclass
|
46
|
+
MethodConfig::RetryPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MethodConfig.RetryPolicy").msgclass
|
47
|
+
end
|