diff options
author | James Fargher <jfargher@gitlab.com> | 2022-06-17 03:01:36 +0300 |
---|---|---|
committer | James Fargher <jfargher@gitlab.com> | 2022-07-04 04:39:43 +0300 |
commit | 19f47f2757ab7afdbb22e0ae7a0a60e96cc773e3 (patch) | |
tree | b5b73d850175816e374892104190c9177de13b85 /ruby | |
parent | c54d613d0eb9c573d79f5da0975655f11f007932 (diff) |
Add proto for FullPath RPC
FullPath will allow fetching the value previously set by the SetFullPath
RPC. FullPath assists admins to determine which repo on disk is
associated with which repository on gitlab.
Changelog: added
Diffstat (limited to 'ruby')
-rw-r--r-- | ruby/proto/gitaly/repository_pb.rb | 8 | ||||
-rw-r--r-- | ruby/proto/gitaly/repository_services_pb.rb | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/ruby/proto/gitaly/repository_pb.rb b/ruby/proto/gitaly/repository_pb.rb index e7c24784c..64c5e03e9 100644 --- a/ruby/proto/gitaly/repository_pb.rb +++ b/ruby/proto/gitaly/repository_pb.rb @@ -321,6 +321,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do end add_message "gitaly.SetFullPathResponse" do end + add_message "gitaly.FullPathRequest" do + optional :repository, :message, 1, "gitaly.Repository" + end + add_message "gitaly.FullPathResponse" do + optional :path, :string, 1 + end end end @@ -412,4 +418,6 @@ module Gitaly PruneUnreachableObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PruneUnreachableObjectsResponse").msgclass SetFullPathRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetFullPathRequest").msgclass SetFullPathResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetFullPathResponse").msgclass + FullPathRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FullPathRequest").msgclass + FullPathResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FullPathResponse").msgclass end diff --git a/ruby/proto/gitaly/repository_services_pb.rb b/ruby/proto/gitaly/repository_services_pb.rb index e7043c8aa..57cc9199a 100644 --- a/ruby/proto/gitaly/repository_services_pb.rb +++ b/ruby/proto/gitaly/repository_services_pb.rb @@ -123,6 +123,9 @@ module Gitaly # an admin inspects the repository's gitconfig such that he can easily see # what the repository name is. rpc :SetFullPath, ::Gitaly::SetFullPathRequest, ::Gitaly::SetFullPathResponse + # FullPath reads the "gitlab.fullpath" configuration from the repository's + # gitconfig. Returns an error in case the full path has not been configured. + rpc :FullPath, ::Gitaly::FullPathRequest, ::Gitaly::FullPathResponse end Stub = Service.rpc_stub_class |