gitaly-eju 16.7.0.pre.1cf5071d5
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 +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 +105 -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 +61 -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,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: shared.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
8
|
+
require 'lint_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n\x0cshared.proto\x12\x06gitaly\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\nlint.proto\"\xc3\x01\n\nRepository\x12\x14\n\x0cstorage_name\x18\x02 \x01(\t\x12\x15\n\rrelative_path\x18\x03 \x01(\t\x12\x1c\n\x14git_object_directory\x18\x04 \x01(\t\x12(\n git_alternate_object_directories\x18\x05 \x03(\t\x12\x15\n\rgl_repository\x18\x06 \x01(\t\x12\x17\n\x0fgl_project_path\x18\x08 \x01(\tJ\x04\x08\x01\x10\x02J\x04\x08\x07\x10\x08R\x04path\"+\n\rCommitTrailer\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\"M\n\x0e\x43ommitStatInfo\x12\x11\n\tadditions\x18\x01 \x01(\x05\x12\x11\n\tdeletions\x18\x02 \x01(\x05\x12\x15\n\rchanged_files\x18\x03 \x01(\x05\"\xeb\x02\n\tGitCommit\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\x0c\x12\x0c\n\x04\x62ody\x18\x03 \x01(\x0c\x12$\n\x06\x61uthor\x18\x04 \x01(\x0b\x32\x14.gitaly.CommitAuthor\x12\'\n\tcommitter\x18\x05 \x01(\x0b\x32\x14.gitaly.CommitAuthor\x12\x12\n\nparent_ids\x18\x06 \x03(\t\x12\x11\n\tbody_size\x18\x07 \x01(\x03\x12-\n\x0esignature_type\x18\x08 \x01(\x0e\x32\x15.gitaly.SignatureType\x12\x0f\n\x07tree_id\x18\t \x01(\t\x12\'\n\x08trailers\x18\n \x03(\x0b\x32\x15.gitaly.CommitTrailer\x12+\n\x0bshort_stats\x18\x0b \x01(\x0b\x32\x16.gitaly.CommitStatInfo\x12\x15\n\rreferenced_by\x18\x0c \x03(\x0c\x12\x10\n\x08\x65ncoding\x18\r \x01(\t\"g\n\x0c\x43ommitAuthor\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12\r\n\x05\x65mail\x18\x02 \x01(\x0c\x12(\n\x04\x64\x61te\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08timezone\x18\x04 \x01(\x0c\"\x1b\n\nExitStatus\x12\r\n\x05value\x18\x01 \x01(\x05\"@\n\x06\x42ranch\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12(\n\rtarget_commit\x18\x02 \x01(\x0b\x32\x11.gitaly.GitCommit\"\xc5\x01\n\x03Tag\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12\n\n\x02id\x18\x02 \x01(\t\x12(\n\rtarget_commit\x18\x03 \x01(\x0b\x32\x11.gitaly.GitCommit\x12\x0f\n\x07message\x18\x04 \x01(\x0c\x12\x14\n\x0cmessage_size\x18\x05 \x01(\x03\x12$\n\x06tagger\x18\x06 \x01(\x0b\x32\x14.gitaly.CommitAuthor\x12-\n\x0esignature_type\x18\x07 \x01(\x0e\x32\x15.gitaly.SignatureType\"Y\n\x04User\x12\r\n\x05gl_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\x0c\x12\r\n\x05\x65mail\x18\x03 \x01(\x0c\x12\x13\n\x0bgl_username\x18\x04 \x01(\t\x12\x10\n\x08timezone\x18\x05 \x01(\t\":\n\nObjectPool\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x90\xc6,\x01\"8\n\x13PaginationParameter\x12\x12\n\npage_token\x18\x01 \x01(\t\x12\r\n\x05limit\x18\x02 \x01(\x05\"\'\n\x10PaginationCursor\x12\x13\n\x0bnext_cursor\x18\x01 \x01(\t\"*\n\rGlobalOptions\x12\x19\n\x11literal_pathspecs\x18\x01 \x01(\x08*B\n\nObjectType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06\x43OMMIT\x10\x01\x12\x08\n\x04\x42LOB\x10\x02\x12\x08\n\x04TREE\x10\x03\x12\x07\n\x03TAG\x10\x04*_\n\x0cObjectFormat\x12\x1d\n\x19OBJECT_FORMAT_UNSPECIFIED\x10\x00\x12\x16\n\x12OBJECT_FORMAT_SHA1\x10\x01\x12\x18\n\x14OBJECT_FORMAT_SHA256\x10\x02*5\n\rSignatureType\x12\x08\n\x04NONE\x10\x00\x12\x07\n\x03PGP\x10\x01\x12\x08\n\x04X509\x10\x02\x12\x07\n\x03SSH\x10\x03*.\n\rSortDirection\x12\r\n\tASCENDING\x10\x00\x12\x0e\n\nDESCENDING\x10\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.Timestamp", "google/protobuf/timestamp.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
|
+
Repository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.Repository").msgclass
|
40
|
+
CommitTrailer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitTrailer").msgclass
|
41
|
+
CommitStatInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitStatInfo").msgclass
|
42
|
+
GitCommit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GitCommit").msgclass
|
43
|
+
CommitAuthor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitAuthor").msgclass
|
44
|
+
ExitStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ExitStatus").msgclass
|
45
|
+
Branch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.Branch").msgclass
|
46
|
+
Tag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.Tag").msgclass
|
47
|
+
User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.User").msgclass
|
48
|
+
ObjectPool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ObjectPool").msgclass
|
49
|
+
PaginationParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PaginationParameter").msgclass
|
50
|
+
PaginationCursor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PaginationCursor").msgclass
|
51
|
+
GlobalOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GlobalOptions").msgclass
|
52
|
+
ObjectType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ObjectType").enummodule
|
53
|
+
ObjectFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ObjectFormat").enummodule
|
54
|
+
SignatureType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SignatureType").enummodule
|
55
|
+
SortDirection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SortDirection").enummodule
|
56
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: smarthttp.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'lint_pb'
|
8
|
+
require 'packfile_pb'
|
9
|
+
require 'shared_pb'
|
10
|
+
|
11
|
+
|
12
|
+
descriptor_data = "\n\x0fsmarthttp.proto\x12\x06gitaly\x1a\nlint.proto\x1a\x0epackfile.proto\x1a\x0cshared.proto\"q\n\x0fInfoRefsRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1a\n\x12git_config_options\x18\x02 \x03(\t\x12\x14\n\x0cgit_protocol\x18\x03 \x01(\t\" \n\x10InfoRefsResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"\x86\x01\n$PostUploadPackWithSidechannelRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1a\n\x12git_config_options\x18\x02 \x03(\t\x12\x14\n\x0cgit_protocol\x18\x03 \x01(\t\"w\n%PostUploadPackWithSidechannelResponse\x12N\n\x1fpackfile_negotiation_statistics\x18\x01 \x01(\x0b\x32%.gitaly.PackfileNegotiationStatistics\"\xc1\x01\n\x16PostReceivePackRequest\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\r\n\x05gl_id\x18\x03 \x01(\t\x12\x15\n\rgl_repository\x18\x04 \x01(\t\x12\x13\n\x0bgl_username\x18\x05 \x01(\t\x12\x14\n\x0cgit_protocol\x18\x06 \x01(\t\x12\x1a\n\x12git_config_options\x18\x07 \x03(\t\"\'\n\x17PostReceivePackResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x32\xa0\x03\n\x10SmartHTTPService\x12Q\n\x12InfoRefsUploadPack\x12\x17.gitaly.InfoRefsRequest\x1a\x18.gitaly.InfoRefsResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12R\n\x13InfoRefsReceivePack\x12\x17.gitaly.InfoRefsRequest\x1a\x18.gitaly.InfoRefsResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12\x84\x01\n\x1dPostUploadPackWithSidechannel\x12,.gitaly.PostUploadPackWithSidechannelRequest\x1a-.gitaly.PostUploadPackWithSidechannelResponse\"\x06\xfa\x97(\x02\x08\x02\x12^\n\x0fPostReceivePack\x12\x1e.gitaly.PostReceivePackRequest\x1a\x1f.gitaly.PostReceivePackResponse\"\x06\xfa\x97(\x02\x08\x01(\x01\x30\x01\x42\x34Z2gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypbb\x06proto3"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError => e
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
+
parsed.clear_dependency
|
23
|
+
serialized = parsed.class.encode(parsed)
|
24
|
+
file = pool.add_serialized_file(serialized)
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
+
imports = [
|
27
|
+
["gitaly.Repository", "shared.proto"],
|
28
|
+
["gitaly.PackfileNegotiationStatistics", "packfile.proto"],
|
29
|
+
]
|
30
|
+
imports.each do |type_name, expected_filename|
|
31
|
+
import_file = pool.lookup(type_name).file_descriptor
|
32
|
+
if import_file.name != expected_filename
|
33
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
37
|
+
warn "This will become an error in the next major version."
|
38
|
+
end
|
39
|
+
|
40
|
+
module Gitaly
|
41
|
+
InfoRefsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.InfoRefsRequest").msgclass
|
42
|
+
InfoRefsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.InfoRefsResponse").msgclass
|
43
|
+
PostUploadPackWithSidechannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostUploadPackWithSidechannelRequest").msgclass
|
44
|
+
PostUploadPackWithSidechannelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostUploadPackWithSidechannelResponse").msgclass
|
45
|
+
PostReceivePackRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostReceivePackRequest").msgclass
|
46
|
+
PostReceivePackResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostReceivePackResponse").msgclass
|
47
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: smarthttp.proto for package 'gitaly'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'smarthttp_pb'
|
6
|
+
|
7
|
+
module Gitaly
|
8
|
+
module SmartHTTPService
|
9
|
+
# SmartHTTPService is a service that provides RPCs required for HTTP-based Git
|
10
|
+
# clones via the smart HTTP protocol.
|
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.SmartHTTPService'
|
18
|
+
|
19
|
+
# InfoRefsUploadPack provides the response for GET /info/refs?service=git-upload-pack.
|
20
|
+
# It is invoked when the client fetches packs from the server, meaning the server will
|
21
|
+
# upload the packs to that client. The client doesn't upload new objects. This is used
|
22
|
+
# to advertise the references available on the server to the client via
|
23
|
+
# git-upload-pack(1)'s `--advertise-refs` option.
|
24
|
+
rpc :InfoRefsUploadPack, ::Gitaly::InfoRefsRequest, stream(::Gitaly::InfoRefsResponse)
|
25
|
+
# InfoRefsReceivePack provides the response for GET /info/refs?service=git-receive-pack.
|
26
|
+
# It is invoked when the client pushes packs to the server, meaning the server
|
27
|
+
# will fetch the packs from the client. This is used to advertise the references
|
28
|
+
# available on the server to the client via git-receive-pack(1)'s `--advertise-refs`
|
29
|
+
# option.
|
30
|
+
rpc :InfoRefsReceivePack, ::Gitaly::InfoRefsRequest, stream(::Gitaly::InfoRefsResponse)
|
31
|
+
# PostUploadPackWithSidechannel provides the response for POST /upload-pack. It
|
32
|
+
# used to transfer pack files from the server to the client via sidechannels. This
|
33
|
+
# is invoked when the client executes `git fetch`.
|
34
|
+
#
|
35
|
+
# More info on sidechannels: https://gitlab.com/gitlab-org/gitaly/-/blob/master/doc/sidechannel.md
|
36
|
+
rpc :PostUploadPackWithSidechannel, ::Gitaly::PostUploadPackWithSidechannelRequest, ::Gitaly::PostUploadPackWithSidechannelResponse
|
37
|
+
# PostReceivePack provides the response for POST /receive-pack. It used to transfer
|
38
|
+
# pack files from the client to the server. This is invoked when the client executes `git push`.
|
39
|
+
rpc :PostReceivePack, stream(::Gitaly::PostReceivePackRequest), stream(::Gitaly::PostReceivePackResponse)
|
40
|
+
end
|
41
|
+
|
42
|
+
Stub = Service.rpc_stub_class
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: ssh.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'lint_pb'
|
8
|
+
require 'packfile_pb'
|
9
|
+
require 'shared_pb'
|
10
|
+
|
11
|
+
|
12
|
+
descriptor_data = "\n\tssh.proto\x12\x06gitaly\x1a\nlint.proto\x1a\x0epackfile.proto\x1a\x0cshared.proto\"\xa2\x01\n\x14SSHUploadPackRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\r\n\x05stdin\x18\x02 \x01(\x0c\x12\x1a\n\x12git_config_options\x18\x04 \x03(\t\x12\x14\n\x0cgit_protocol\x18\x05 \x01(\tJ\x04\x08\x03\x10\x04R\x15git_config_parameters\"`\n\x15SSHUploadPackResponse\x12\x0e\n\x06stdout\x18\x01 \x01(\x0c\x12\x0e\n\x06stderr\x18\x02 \x01(\x0c\x12\'\n\x0b\x65xit_status\x18\x03 \x01(\x0b\x32\x12.gitaly.ExitStatus\"\x85\x01\n#SSHUploadPackWithSidechannelRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1a\n\x12git_config_options\x18\x02 \x03(\t\x12\x14\n\x0cgit_protocol\x18\x03 \x01(\t\"v\n$SSHUploadPackWithSidechannelResponse\x12N\n\x1fpackfile_negotiation_statistics\x18\x01 \x01(\x0b\x32%.gitaly.PackfileNegotiationStatistics\"\xc1\x01\n\x15SSHReceivePackRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\r\n\x05stdin\x18\x02 \x01(\x0c\x12\r\n\x05gl_id\x18\x03 \x01(\t\x12\x15\n\rgl_repository\x18\x04 \x01(\t\x12\x13\n\x0bgl_username\x18\x05 \x01(\t\x12\x14\n\x0cgit_protocol\x18\x06 \x01(\t\x12\x1a\n\x12git_config_options\x18\x07 \x03(\t\"a\n\x16SSHReceivePackResponse\x12\x0e\n\x06stdout\x18\x01 \x01(\x0c\x12\x0e\n\x06stderr\x18\x02 \x01(\x0c\x12\'\n\x0b\x65xit_status\x18\x03 \x01(\x0b\x32\x12.gitaly.ExitStatus\"V\n\x17SSHUploadArchiveRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\r\n\x05stdin\x18\x02 \x01(\x0c\"c\n\x18SSHUploadArchiveResponse\x12\x0e\n\x06stdout\x18\x01 \x01(\x0c\x12\x0e\n\x06stderr\x18\x02 \x01(\x0c\x12\'\n\x0b\x65xit_status\x18\x03 \x01(\x0b\x32\x12.gitaly.ExitStatus2\xaa\x03\n\nSSHService\x12X\n\rSSHUploadPack\x12\x1c.gitaly.SSHUploadPackRequest\x1a\x1d.gitaly.SSHUploadPackResponse\"\x06\xfa\x97(\x02\x08\x02(\x01\x30\x01\x12\x81\x01\n\x1cSSHUploadPackWithSidechannel\x12+.gitaly.SSHUploadPackWithSidechannelRequest\x1a,.gitaly.SSHUploadPackWithSidechannelResponse\"\x06\xfa\x97(\x02\x08\x02\x12[\n\x0eSSHReceivePack\x12\x1d.gitaly.SSHReceivePackRequest\x1a\x1e.gitaly.SSHReceivePackResponse\"\x06\xfa\x97(\x02\x08\x01(\x01\x30\x01\x12\x61\n\x10SSHUploadArchive\x12\x1f.gitaly.SSHUploadArchiveRequest\x1a .gitaly.SSHUploadArchiveResponse\"\x06\xfa\x97(\x02\x08\x02(\x01\x30\x01\x42\x34Z2gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypbb\x06proto3"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError => e
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
+
parsed.clear_dependency
|
23
|
+
serialized = parsed.class.encode(parsed)
|
24
|
+
file = pool.add_serialized_file(serialized)
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
+
imports = [
|
27
|
+
["gitaly.Repository", "shared.proto"],
|
28
|
+
["gitaly.PackfileNegotiationStatistics", "packfile.proto"],
|
29
|
+
]
|
30
|
+
imports.each do |type_name, expected_filename|
|
31
|
+
import_file = pool.lookup(type_name).file_descriptor
|
32
|
+
if import_file.name != expected_filename
|
33
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
37
|
+
warn "This will become an error in the next major version."
|
38
|
+
end
|
39
|
+
|
40
|
+
module Gitaly
|
41
|
+
SSHUploadPackRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHUploadPackRequest").msgclass
|
42
|
+
SSHUploadPackResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHUploadPackResponse").msgclass
|
43
|
+
SSHUploadPackWithSidechannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHUploadPackWithSidechannelRequest").msgclass
|
44
|
+
SSHUploadPackWithSidechannelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHUploadPackWithSidechannelResponse").msgclass
|
45
|
+
SSHReceivePackRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHReceivePackRequest").msgclass
|
46
|
+
SSHReceivePackResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHReceivePackResponse").msgclass
|
47
|
+
SSHUploadArchiveRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHUploadArchiveRequest").msgclass
|
48
|
+
SSHUploadArchiveResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHUploadArchiveResponse").msgclass
|
49
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: ssh.proto for package 'gitaly'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'ssh_pb'
|
6
|
+
|
7
|
+
module Gitaly
|
8
|
+
module SSHService
|
9
|
+
# SSHService is a service that provides RPCs required for SSH-based Git clones.
|
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.SSHService'
|
17
|
+
|
18
|
+
# SSHUploadPack is an RPC to forward git-upload-pack(1) to Gitaly for SSH sessions. The RPC uses
|
19
|
+
# bidirectional streaming so the client can stream stdin and the server can stream stdout and
|
20
|
+
# stderr for git-upload-pack(1).
|
21
|
+
rpc :SSHUploadPack, stream(::Gitaly::SSHUploadPackRequest), stream(::Gitaly::SSHUploadPackResponse)
|
22
|
+
# SSHUploadPackWithSidechannel is an RPC to forward git-upload-pack(1) to Gitaly for SSH
|
23
|
+
# sessions, via sidechannels. Sidechannel connections sidestep gRPC Protobuf message overhead and
|
24
|
+
# allow higher throughput of bulk data transfers. The stdin, stdout, and stderr for the
|
25
|
+
# git-upload-pack(1) are streamed through the sidechannel connection.
|
26
|
+
rpc :SSHUploadPackWithSidechannel, ::Gitaly::SSHUploadPackWithSidechannelRequest, ::Gitaly::SSHUploadPackWithSidechannelResponse
|
27
|
+
# SSHReceivePack is an RPC to forward git-receive-pack(1) to Gitaly for SSH sessions. The RPC uses
|
28
|
+
# bidirectional streaming so the client can stream stdin and the server can stream stdout and
|
29
|
+
# stderr for git-receive-pack(1).
|
30
|
+
rpc :SSHReceivePack, stream(::Gitaly::SSHReceivePackRequest), stream(::Gitaly::SSHReceivePackResponse)
|
31
|
+
# SSHUploadArchive is an RPC to forward git-upload-archive(1) to Gitaly for SSH sessions. The RPC
|
32
|
+
# uses bidirectional streaming so the client can stream stdin and the server can stream stdout
|
33
|
+
# and stderr for git-upload-archive(1).
|
34
|
+
rpc :SSHUploadArchive, stream(::Gitaly::SSHUploadArchiveRequest), stream(::Gitaly::SSHUploadArchiveResponse)
|
35
|
+
end
|
36
|
+
|
37
|
+
Stub = Service.rpc_stub_class
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: transaction.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'lint_pb'
|
8
|
+
require 'shared_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n\x11transaction.proto\x12\x06gitaly\x1a\nlint.proto\x1a\x0cshared.proto\"\x9e\x02\n\x16VoteTransactionRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0etransaction_id\x18\x02 \x01(\x04\x12\x0c\n\x04node\x18\x03 \x01(\t\x12\x1e\n\x16reference_updates_hash\x18\x04 \x01(\x0c\x12\x33\n\x05phase\x18\x05 \x01(\x0e\x32$.gitaly.VoteTransactionRequest.Phase\"[\n\x05Phase\x12\x11\n\rUNKNOWN_PHASE\x10\x00\x12\x12\n\x0ePREPARED_PHASE\x10\x01\x12\x13\n\x0f\x43OMMITTED_PHASE\x10\x02\x12\x16\n\x12SYNCHRONIZED_PHASE\x10\x03\"\x8f\x01\n\x17VoteTransactionResponse\x12?\n\x05state\x18\x01 \x01(\x0e\x32\x30.gitaly.VoteTransactionResponse.TransactionState\"3\n\x10TransactionState\x12\n\n\x06\x43OMMIT\x10\x00\x12\t\n\x05\x41\x42ORT\x10\x01\x12\x08\n\x04STOP\x10\x02\"^\n\x16StopTransactionRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0etransaction_id\x18\x02 \x01(\x04\"\x19\n\x17StopTransactionResponse2\xbe\x01\n\x0eRefTransaction\x12R\n\x0fVoteTransaction\x12\x1e.gitaly.VoteTransactionRequest\x1a\x1f.gitaly.VoteTransactionResponse\x12R\n\x0fStopTransaction\x12\x1e.gitaly.StopTransactionRequest\x1a\x1f.gitaly.StopTransactionResponse\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
|
+
["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
|
+
VoteTransactionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.VoteTransactionRequest").msgclass
|
40
|
+
VoteTransactionRequest::Phase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.VoteTransactionRequest.Phase").enummodule
|
41
|
+
VoteTransactionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.VoteTransactionResponse").msgclass
|
42
|
+
VoteTransactionResponse::TransactionState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.VoteTransactionResponse.TransactionState").enummodule
|
43
|
+
StopTransactionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.StopTransactionRequest").msgclass
|
44
|
+
StopTransactionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.StopTransactionResponse").msgclass
|
45
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: transaction.proto for package 'gitaly'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'transaction_pb'
|
6
|
+
|
7
|
+
module Gitaly
|
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.
|
14
|
+
class Service
|
15
|
+
|
16
|
+
include ::GRPC::GenericService
|
17
|
+
|
18
|
+
self.marshal_class_method = :encode
|
19
|
+
self.unmarshal_class_method = :decode
|
20
|
+
self.service_name = 'gitaly.RefTransaction'
|
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.
|
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.
|
44
|
+
rpc :StopTransaction, ::Gitaly::StopTransactionRequest, ::Gitaly::StopTransactionResponse
|
45
|
+
end
|
46
|
+
|
47
|
+
Stub = Service.rpc_stub_class
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# This file is generated by build-proto-gem. Do not edit.
|
2
|
+
$:.unshift(File.expand_path('../gitaly', __FILE__))
|
3
|
+
|
4
|
+
require 'gitaly/version'
|
5
|
+
|
6
|
+
require 'gitaly/analysis_services_pb'
|
7
|
+
|
8
|
+
require 'gitaly/blob_services_pb'
|
9
|
+
|
10
|
+
require 'gitaly/cleanup_services_pb'
|
11
|
+
|
12
|
+
require 'gitaly/commit_services_pb'
|
13
|
+
|
14
|
+
require 'gitaly/conflicts_services_pb'
|
15
|
+
|
16
|
+
require 'gitaly/diff_services_pb'
|
17
|
+
|
18
|
+
require 'gitaly/hook_services_pb'
|
19
|
+
|
20
|
+
require 'gitaly/internal_services_pb'
|
21
|
+
|
22
|
+
require 'gitaly/objectpool_services_pb'
|
23
|
+
|
24
|
+
require 'gitaly/operations_services_pb'
|
25
|
+
|
26
|
+
require 'gitaly/praefect_services_pb'
|
27
|
+
|
28
|
+
require 'gitaly/ref_services_pb'
|
29
|
+
|
30
|
+
require 'gitaly/remote_services_pb'
|
31
|
+
|
32
|
+
require 'gitaly/repository_services_pb'
|
33
|
+
|
34
|
+
require 'gitaly/server_services_pb'
|
35
|
+
|
36
|
+
require 'gitaly/smarthttp_services_pb'
|
37
|
+
|
38
|
+
require 'gitaly/ssh_services_pb'
|
39
|
+
|
40
|
+
require 'gitaly/transaction_services_pb'
|
41
|
+
|
metadata
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gitaly-eju
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 16.7.0.pre.1cf5071d5
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- GitLab Engineering
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-01-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: grpc
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
description: Auto-generated gRPC client for gitaly.
|
28
|
+
email:
|
29
|
+
- engineering@gitlab.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- ruby/proto/gitaly.rb
|
35
|
+
- ruby/proto/gitaly/analysis_pb.rb
|
36
|
+
- ruby/proto/gitaly/analysis_services_pb.rb
|
37
|
+
- ruby/proto/gitaly/blob_pb.rb
|
38
|
+
- ruby/proto/gitaly/blob_services_pb.rb
|
39
|
+
- ruby/proto/gitaly/cleanup_pb.rb
|
40
|
+
- ruby/proto/gitaly/cleanup_services_pb.rb
|
41
|
+
- ruby/proto/gitaly/commit_pb.rb
|
42
|
+
- ruby/proto/gitaly/commit_services_pb.rb
|
43
|
+
- ruby/proto/gitaly/conflicts_pb.rb
|
44
|
+
- ruby/proto/gitaly/conflicts_services_pb.rb
|
45
|
+
- ruby/proto/gitaly/diff_pb.rb
|
46
|
+
- ruby/proto/gitaly/diff_services_pb.rb
|
47
|
+
- ruby/proto/gitaly/errors_pb.rb
|
48
|
+
- ruby/proto/gitaly/hook_pb.rb
|
49
|
+
- ruby/proto/gitaly/hook_services_pb.rb
|
50
|
+
- ruby/proto/gitaly/internal_pb.rb
|
51
|
+
- ruby/proto/gitaly/internal_services_pb.rb
|
52
|
+
- ruby/proto/gitaly/lint_pb.rb
|
53
|
+
- ruby/proto/gitaly/log_pb.rb
|
54
|
+
- ruby/proto/gitaly/objectpool_pb.rb
|
55
|
+
- ruby/proto/gitaly/objectpool_services_pb.rb
|
56
|
+
- ruby/proto/gitaly/operations_pb.rb
|
57
|
+
- ruby/proto/gitaly/operations_services_pb.rb
|
58
|
+
- ruby/proto/gitaly/packfile_pb.rb
|
59
|
+
- ruby/proto/gitaly/praefect_pb.rb
|
60
|
+
- ruby/proto/gitaly/praefect_services_pb.rb
|
61
|
+
- ruby/proto/gitaly/ref_pb.rb
|
62
|
+
- ruby/proto/gitaly/ref_services_pb.rb
|
63
|
+
- ruby/proto/gitaly/remote_pb.rb
|
64
|
+
- ruby/proto/gitaly/remote_services_pb.rb
|
65
|
+
- ruby/proto/gitaly/repository_pb.rb
|
66
|
+
- ruby/proto/gitaly/repository_services_pb.rb
|
67
|
+
- ruby/proto/gitaly/server_pb.rb
|
68
|
+
- ruby/proto/gitaly/server_services_pb.rb
|
69
|
+
- ruby/proto/gitaly/service_config_pb.rb
|
70
|
+
- ruby/proto/gitaly/shared_pb.rb
|
71
|
+
- ruby/proto/gitaly/smarthttp_pb.rb
|
72
|
+
- ruby/proto/gitaly/smarthttp_services_pb.rb
|
73
|
+
- ruby/proto/gitaly/ssh_pb.rb
|
74
|
+
- ruby/proto/gitaly/ssh_services_pb.rb
|
75
|
+
- ruby/proto/gitaly/transaction_pb.rb
|
76
|
+
- ruby/proto/gitaly/transaction_services_pb.rb
|
77
|
+
- ruby/proto/gitaly/version.rb
|
78
|
+
homepage: https://gitlab.com/gitlab-org/gitaly
|
79
|
+
licenses:
|
80
|
+
- MIT
|
81
|
+
metadata:
|
82
|
+
homepage_uri: https://gitlab.com/gitlab-org/gitaly
|
83
|
+
bug_tracker_uri: https://gitlab.com/gitlab-org/gitaly/-/issues
|
84
|
+
source_code_uri: https://gitlab.com/gitlab-org/gitaly/-/tree/master/proto
|
85
|
+
post_install_message:
|
86
|
+
rdoc_options: []
|
87
|
+
require_paths:
|
88
|
+
- ruby/proto
|
89
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
requirements: []
|
100
|
+
rubygems_version: 3.5.3
|
101
|
+
signing_key:
|
102
|
+
specification_version: 4
|
103
|
+
summary: Auto-generated gRPC client for gitaly
|
104
|
+
test_files: []
|