diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2021-08-12 13:52:22 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2021-08-24 12:31:26 +0300 |
commit | 8ced7fa57ffc19bc343a8e83b711297597b17e86 (patch) | |
tree | ee8e00315b105910f25aca01927b19c464784bab /ruby | |
parent | b78f644f35cf8513667b2f0d18a75809f00254f7 (diff) |
Add proto definition for PackObjectsHookWithSidechannel
The implementation will follow in a later commit.
Diffstat (limited to 'ruby')
-rw-r--r-- | ruby/proto/gitaly/hook_pb.rb | 8 | ||||
-rw-r--r-- | ruby/proto/gitaly/hook_services_pb.rb | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/ruby/proto/gitaly/hook_pb.rb b/ruby/proto/gitaly/hook_pb.rb index 20c8cb8b1..6ac768187 100644 --- a/ruby/proto/gitaly/hook_pb.rb +++ b/ruby/proto/gitaly/hook_pb.rb @@ -66,6 +66,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do optional :stdout, :bytes, 1 optional :stderr, :bytes, 2 end + add_message "gitaly.PackObjectsHookWithSidechannelRequest" do + optional :repository, :message, 1, "gitaly.Repository" + repeated :args, :string, 2 + end + add_message "gitaly.PackObjectsHookWithSidechannelResponse" do + end end end @@ -81,4 +87,6 @@ module Gitaly ReferenceTransactionHookResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceTransactionHookResponse").msgclass PackObjectsHookRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackObjectsHookRequest").msgclass PackObjectsHookResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackObjectsHookResponse").msgclass + PackObjectsHookWithSidechannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackObjectsHookWithSidechannelRequest").msgclass + PackObjectsHookWithSidechannelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackObjectsHookWithSidechannelResponse").msgclass end diff --git a/ruby/proto/gitaly/hook_services_pb.rb b/ruby/proto/gitaly/hook_services_pb.rb index de4048201..1059d58bd 100644 --- a/ruby/proto/gitaly/hook_services_pb.rb +++ b/ruby/proto/gitaly/hook_services_pb.rb @@ -22,6 +22,9 @@ module Gitaly # uploadpack.packObjectsHook mechanism. It generates a stream of packed # Git objects. rpc :PackObjectsHook, stream(::Gitaly::PackObjectsHookRequest), stream(::Gitaly::PackObjectsHookResponse) + # PackObjectsHookWithSidechannel is an optimized version of PackObjectsHook that uses + # a unix socket side channel. + rpc :PackObjectsHookWithSidechannel, ::Gitaly::PackObjectsHookWithSidechannelRequest, ::Gitaly::PackObjectsHookWithSidechannelResponse end Stub = Service.rpc_stub_class |