gitaly-qmnguyen 16.7.0.pre.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +7 -0
  2. data/ruby/proto/gitaly/analysis_pb.rb +43 -0
  3. data/ruby/proto/gitaly/analysis_services_pb.rb +32 -0
  4. data/ruby/proto/gitaly/blob_pb.rb +57 -0
  5. data/ruby/proto/gitaly/blob_services_pb.rb +53 -0
  6. data/ruby/proto/gitaly/cleanup_pb.rb +42 -0
  7. data/ruby/proto/gitaly/cleanup_services_pb.rb +24 -0
  8. data/ruby/proto/gitaly/commit_pb.rb +104 -0
  9. data/ruby/proto/gitaly/commit_services_pb.rb +88 -0
  10. data/ruby/proto/gitaly/conflicts_pb.rb +48 -0
  11. data/ruby/proto/gitaly/conflicts_services_pb.rb +30 -0
  12. data/ruby/proto/gitaly/diff_pb.rb +63 -0
  13. data/ruby/proto/gitaly/diff_services_pb.rb +48 -0
  14. data/ruby/proto/gitaly/errors_pb.rb +57 -0
  15. data/ruby/proto/gitaly/hook_pb.rb +52 -0
  16. data/ruby/proto/gitaly/hook_services_pb.rb +40 -0
  17. data/ruby/proto/gitaly/internal_pb.rb +41 -0
  18. data/ruby/proto/gitaly/internal_services_pb.rb +26 -0
  19. data/ruby/proto/gitaly/lint_pb.rb +40 -0
  20. data/ruby/proto/gitaly/log_pb.rb +46 -0
  21. data/ruby/proto/gitaly/objectpool_pb.rb +51 -0
  22. data/ruby/proto/gitaly/objectpool_services_pb.rb +77 -0
  23. data/ruby/proto/gitaly/operations_pb.rb +91 -0
  24. data/ruby/proto/gitaly/operations_services_pb.rb +135 -0
  25. data/ruby/proto/gitaly/packfile_pb.rb +36 -0
  26. data/ruby/proto/gitaly/praefect_pb.rb +59 -0
  27. data/ruby/proto/gitaly/praefect_services_pb.rb +47 -0
  28. data/ruby/proto/gitaly/ref_pb.rb +85 -0
  29. data/ruby/proto/gitaly/ref_services_pb.rb +87 -0
  30. data/ruby/proto/gitaly/remote_pb.rb +46 -0
  31. data/ruby/proto/gitaly/remote_services_pb.rb +39 -0
  32. data/ruby/proto/gitaly/repository_pb.rb +137 -0
  33. data/ruby/proto/gitaly/repository_services_pb.rb +198 -0
  34. data/ruby/proto/gitaly/server_pb.rb +52 -0
  35. data/ruby/proto/gitaly/server_services_pb.rb +31 -0
  36. data/ruby/proto/gitaly/service_config_pb.rb +47 -0
  37. data/ruby/proto/gitaly/shared_pb.rb +56 -0
  38. data/ruby/proto/gitaly/smarthttp_pb.rb +47 -0
  39. data/ruby/proto/gitaly/smarthttp_services_pb.rb +44 -0
  40. data/ruby/proto/gitaly/ssh_pb.rb +49 -0
  41. data/ruby/proto/gitaly/ssh_services_pb.rb +39 -0
  42. data/ruby/proto/gitaly/transaction_pb.rb +45 -0
  43. data/ruby/proto/gitaly/transaction_services_pb.rb +49 -0
  44. data/ruby/proto/gitaly/version.rb +4 -0
  45. data/ruby/proto/gitaly.rb +41 -0
  46. metadata +104 -0
@@ -0,0 +1,63 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: diff.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'lint_pb'
8
+ require 'shared_pb'
9
+
10
+
11
+ descriptor_data = "\n\ndiff.proto\x12\x06gitaly\x1a\nlint.proto\x1a\x0cshared.proto\"\xd8\x06\n\x11\x43ommitDiffRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\x12\r\n\x05paths\x18\x05 \x03(\x0c\x12\x16\n\x0e\x63ollapse_diffs\x18\x06 \x01(\x08\x12\x16\n\x0e\x65nforce_limits\x18\x07 \x01(\x08\x12\x11\n\tmax_files\x18\x08 \x01(\x05\x12\x11\n\tmax_lines\x18\t \x01(\x05\x12\x11\n\tmax_bytes\x18\n \x01(\x05\x12\x17\n\x0fmax_patch_bytes\x18\x0e \x01(\x05\x12\x16\n\x0esafe_max_files\x18\x0b \x01(\x05\x12\x16\n\x0esafe_max_lines\x18\x0c \x01(\x05\x12\x16\n\x0esafe_max_bytes\x18\r \x01(\x05\x12\x35\n\tdiff_mode\x18\x0f \x01(\x0e\x32\".gitaly.CommitDiffRequest.DiffMode\x12h\n\"max_patch_bytes_for_file_extension\x18\x10 \x03(\x0b\x32<.gitaly.CommitDiffRequest.MaxPatchBytesForFileExtensionEntry\x12G\n\x12whitespace_changes\x18\x11 \x01(\x0e\x32+.gitaly.CommitDiffRequest.WhitespaceChanges\x12\x19\n\x11\x63ollect_all_paths\x18\x12 \x01(\x08\x1a\x44\n\"MaxPatchBytesForFileExtensionEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\"%\n\x08\x44iffMode\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x0c\n\x08WORDDIFF\x10\x01\"y\n\x11WhitespaceChanges\x12\"\n\x1eWHITESPACE_CHANGES_UNSPECIFIED\x10\x00\x12\x1d\n\x19WHITESPACE_CHANGES_IGNORE\x10\x01\x12!\n\x1dWHITESPACE_CHANGES_IGNORE_ALL\x10\x02J\x04\x08\x04\x10\x05R\x18ignore_whitespace_change\"\xff\x01\n\x12\x43ommitDiffResponse\x12\x11\n\tfrom_path\x18\x01 \x01(\x0c\x12\x0f\n\x07to_path\x18\x02 \x01(\x0c\x12\x0f\n\x07\x66rom_id\x18\x03 \x01(\t\x12\r\n\x05to_id\x18\x04 \x01(\t\x12\x10\n\x08old_mode\x18\x05 \x01(\x05\x12\x10\n\x08new_mode\x18\x06 \x01(\x05\x12\x0e\n\x06\x62inary\x18\x07 \x01(\x08\x12\x16\n\x0eraw_patch_data\x18\t \x01(\x0c\x12\x14\n\x0c\x65nd_of_patch\x18\n \x01(\x08\x12\x17\n\x0foverflow_marker\x18\x0b \x01(\x08\x12\x11\n\tcollapsed\x18\x0c \x01(\x08\x12\x11\n\ttoo_large\x18\r \x01(\x08J\x04\x08\x08\x10\t\"\x82\x01\n\x12\x43ommitDeltaRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\x12\r\n\x05paths\x18\x04 \x03(\x0c\"u\n\x0b\x43ommitDelta\x12\x11\n\tfrom_path\x18\x01 \x01(\x0c\x12\x0f\n\x07to_path\x18\x02 \x01(\x0c\x12\x0f\n\x07\x66rom_id\x18\x03 \x01(\t\x12\r\n\x05to_id\x18\x04 \x01(\t\x12\x10\n\x08old_mode\x18\x05 \x01(\x05\x12\x10\n\x08new_mode\x18\x06 \x01(\x05\":\n\x13\x43ommitDeltaResponse\x12#\n\x06\x64\x65ltas\x18\x01 \x03(\x0b\x32\x13.gitaly.CommitDelta\"o\n\x0eRawDiffRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\"\x1f\n\x0fRawDiffResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"p\n\x0fRawPatchRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\" \n\x10RawPatchResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"q\n\x10\x44iffStatsRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\"Q\n\tDiffStats\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12\x11\n\tadditions\x18\x02 \x01(\x05\x12\x11\n\tdeletions\x18\x03 \x01(\x05\x12\x10\n\x08old_path\x18\x04 \x01(\x0c\"5\n\x11\x44iffStatsResponse\x12 \n\x05stats\x18\x01 \x03(\x0b\x32\x11.gitaly.DiffStats\"\xc4\x05\n\x17\x46indChangedPathsRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x13\n\x07\x63ommits\x18\x02 \x03(\tB\x02\x18\x01\x12\x39\n\x08requests\x18\x03 \x03(\x0b\x32\'.gitaly.FindChangedPathsRequest.Request\x12S\n\x16merge_commit_diff_mode\x18\x04 \x01(\x0e\x32\x33.gitaly.FindChangedPathsRequest.MergeCommitDiffMode\x1a\xc2\x02\n\x07Request\x12K\n\x0ctree_request\x18\x01 \x01(\x0b\x32\x33.gitaly.FindChangedPathsRequest.Request.TreeRequestH\x00\x12O\n\x0e\x63ommit_request\x18\x02 \x01(\x0b\x32\x35.gitaly.FindChangedPathsRequest.Request.CommitRequestH\x00\x1a\x46\n\x0bTreeRequest\x12\x1a\n\x12left_tree_revision\x18\x01 \x01(\t\x12\x1b\n\x13right_tree_revision\x18\x02 \x01(\t\x1aI\n\rCommitRequest\x12\x17\n\x0f\x63ommit_revision\x18\x01 \x01(\t\x12\x1f\n\x17parent_commit_revisions\x18\x02 \x03(\tB\x06\n\x04type\"\x90\x01\n\x13MergeCommitDiffMode\x12&\n\"MERGE_COMMIT_DIFF_MODE_UNSPECIFIED\x10\x00\x12)\n%MERGE_COMMIT_DIFF_MODE_INCLUDE_MERGES\x10\x01\x12&\n\"MERGE_COMMIT_DIFF_MODE_ALL_PARENTS\x10\x02\"?\n\x18\x46indChangedPathsResponse\x12#\n\x05paths\x18\x01 \x03(\x0b\x32\x14.gitaly.ChangedPaths\"\xba\x01\n\x0c\x43hangedPaths\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12+\n\x06status\x18\x02 \x01(\x0e\x32\x1b.gitaly.ChangedPaths.Status\x12\x10\n\x08old_mode\x18\x03 \x01(\x05\x12\x10\n\x08new_mode\x18\x04 \x01(\x05\"K\n\x06Status\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x00\x12\x0c\n\x08MODIFIED\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\x12\x0f\n\x0bTYPE_CHANGE\x10\x03\x12\n\n\x06\x43OPIED\x10\x04\"m\n\x11GetPatchIDRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x14\n\x0cold_revision\x18\x02 \x01(\x0c\x12\x14\n\x0cnew_revision\x18\x03 \x01(\x0c\"&\n\x12GetPatchIDResponse\x12\x10\n\x08patch_id\x18\x01 \x01(\t2\xb7\x04\n\x0b\x44iffService\x12M\n\nCommitDiff\x12\x19.gitaly.CommitDiffRequest\x1a\x1a.gitaly.CommitDiffResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12P\n\x0b\x43ommitDelta\x12\x1a.gitaly.CommitDeltaRequest\x1a\x1b.gitaly.CommitDeltaResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12\x44\n\x07RawDiff\x12\x16.gitaly.RawDiffRequest\x1a\x17.gitaly.RawDiffResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12G\n\x08RawPatch\x12\x17.gitaly.RawPatchRequest\x1a\x18.gitaly.RawPatchResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12J\n\tDiffStats\x12\x18.gitaly.DiffStatsRequest\x1a\x19.gitaly.DiffStatsResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12_\n\x10\x46indChangedPaths\x12\x1f.gitaly.FindChangedPathsRequest\x1a .gitaly.FindChangedPathsResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12K\n\nGetPatchID\x12\x19.gitaly.GetPatchIDRequest\x1a\x1a.gitaly.GetPatchIDResponse\"\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
+ CommitDiffRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitDiffRequest").msgclass
40
+ CommitDiffRequest::DiffMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitDiffRequest.DiffMode").enummodule
41
+ CommitDiffRequest::WhitespaceChanges = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitDiffRequest.WhitespaceChanges").enummodule
42
+ CommitDiffResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitDiffResponse").msgclass
43
+ CommitDeltaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitDeltaRequest").msgclass
44
+ CommitDelta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitDelta").msgclass
45
+ CommitDeltaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitDeltaResponse").msgclass
46
+ RawDiffRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RawDiffRequest").msgclass
47
+ RawDiffResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RawDiffResponse").msgclass
48
+ RawPatchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RawPatchRequest").msgclass
49
+ RawPatchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RawPatchResponse").msgclass
50
+ DiffStatsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiffStatsRequest").msgclass
51
+ DiffStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiffStats").msgclass
52
+ DiffStatsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiffStatsResponse").msgclass
53
+ FindChangedPathsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsRequest").msgclass
54
+ FindChangedPathsRequest::Request = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsRequest.Request").msgclass
55
+ FindChangedPathsRequest::Request::TreeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsRequest.Request.TreeRequest").msgclass
56
+ FindChangedPathsRequest::Request::CommitRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsRequest.Request.CommitRequest").msgclass
57
+ FindChangedPathsRequest::MergeCommitDiffMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsRequest.MergeCommitDiffMode").enummodule
58
+ FindChangedPathsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsResponse").msgclass
59
+ ChangedPaths = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ChangedPaths").msgclass
60
+ ChangedPaths::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ChangedPaths.Status").enummodule
61
+ GetPatchIDRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetPatchIDRequest").msgclass
62
+ GetPatchIDResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetPatchIDResponse").msgclass
63
+ end
@@ -0,0 +1,48 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: diff.proto for package 'gitaly'
3
+
4
+ require 'grpc'
5
+ require 'diff_pb'
6
+
7
+ module Gitaly
8
+ module DiffService
9
+ # DiffService is a service which provides RPCs to inspect differences
10
+ # introduced between a set of commits.
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.DiffService'
18
+
19
+ # CommitDiff returns a diff between two different commits. The patch data is
20
+ # chunked across messages and get streamed back to the client.
21
+ rpc :CommitDiff, ::Gitaly::CommitDiffRequest, stream(::Gitaly::CommitDiffResponse)
22
+ # CommitDelta returns the deltas between two different commits. A delta
23
+ # includes everthing that changed about a set of paths except for the actual
24
+ # diff.
25
+ rpc :CommitDelta, ::Gitaly::CommitDeltaRequest, stream(::Gitaly::CommitDeltaResponse)
26
+ # RawDiff returns a diff between two commits. The output is the unmodified
27
+ # output from git-diff(1). This is not to be confused with git-diff(1)'s
28
+ # --raw mode.
29
+ rpc :RawDiff, ::Gitaly::RawDiffRequest, stream(::Gitaly::RawDiffResponse)
30
+ # RawPatch returns a diff between two commits in a formatted patch.The output
31
+ # is the unmodified output from git-format-patch(1). This is not to be confused with
32
+ # git-diff(1)'s --raw mode.
33
+ rpc :RawPatch, ::Gitaly::RawPatchRequest, stream(::Gitaly::RawPatchResponse)
34
+ # DiffStats returns the diff stats between two commits such as number of lines
35
+ # changed, etc.
36
+ rpc :DiffStats, ::Gitaly::DiffStatsRequest, stream(::Gitaly::DiffStatsResponse)
37
+ # FindChangedPaths returns a list of files changed along with the status of each file
38
+ rpc :FindChangedPaths, ::Gitaly::FindChangedPathsRequest, stream(::Gitaly::FindChangedPathsResponse)
39
+ # GetPatchID computes a patch ID for a patch. Patch IDs are a unique ID computed by hashing
40
+ # a patch with some parameters like line numbers ignored. The patch ID can thus be used to compare
41
+ # whether diffs make the same change. Please refer to git-patch-id(1) for further information.
42
+ # If the difference between old and new change is empty then this RPC returns an error.
43
+ rpc :GetPatchID, ::Gitaly::GetPatchIDRequest, ::Gitaly::GetPatchIDResponse
44
+ end
45
+
46
+ Stub = Service.rpc_stub_class
47
+ end
48
+ end
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: errors.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/protobuf/duration_pb'
8
+
9
+
10
+ descriptor_data = "\n\x0c\x65rrors.proto\x12\x06gitaly\x1a\x1egoogle/protobuf/duration.proto\"]\n\x10\x41\x63\x63\x65ssCheckError\x12\x15\n\rerror_message\x18\x01 \x01(\t\x12\x10\n\x08protocol\x18\x02 \x01(\t\x12\x0f\n\x07user_id\x18\x03 \x01(\t\x12\x0f\n\x07\x63hanges\x18\x04 \x01(\x0c\"\xae\x02\n\nIndexError\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12\x30\n\nerror_type\x18\x02 \x01(\x0e\x32\x1c.gitaly.IndexError.ErrorType\"\xdf\x01\n\tErrorType\x12\x1a\n\x16\x45RROR_TYPE_UNSPECIFIED\x10\x00\x12\x19\n\x15\x45RROR_TYPE_EMPTY_PATH\x10\x01\x12\x1b\n\x17\x45RROR_TYPE_INVALID_PATH\x10\x02\x12\x1f\n\x1b\x45RROR_TYPE_DIRECTORY_EXISTS\x10\x03\x12\"\n\x1e\x45RROR_TYPE_DIRECTORY_TRAVERSAL\x10\x04\x12\x1a\n\x16\x45RROR_TYPE_FILE_EXISTS\x10\x05\x12\x1d\n\x19\x45RROR_TYPE_FILE_NOT_FOUND\x10\x06\"%\n\x15InvalidRefFormatError\x12\x0c\n\x04refs\x18\x02 \x03(\x0c\"C\n\x10NotAncestorError\x12\x17\n\x0fparent_revision\x18\x01 \x01(\x0c\x12\x16\n\x0e\x63hild_revision\x18\x02 \x01(\x0c\"\x1c\n\x1a\x43hangesAlreadyAppliedError\"O\n\x12MergeConflictError\x12\x19\n\x11\x63onflicting_files\x18\x01 \x03(\x0c\x12\x1e\n\x16\x63onflicting_commit_ids\x18\x02 \x03(\t\"%\n\x15ReferencesLockedError\x12\x0c\n\x04refs\x18\x01 \x03(\x0c\";\n\x14ReferenceExistsError\x12\x16\n\x0ereference_name\x18\x01 \x01(\x0c\x12\x0b\n\x03oid\x18\x02 \x01(\t\"0\n\x16ReferenceNotFoundError\x12\x16\n\x0ereference_name\x18\x01 \x01(\x0c\"k\n\x1bReferenceStateMismatchError\x12\x16\n\x0ereference_name\x18\x01 \x01(\x0c\x12\x1a\n\x12\x65xpected_object_id\x18\x02 \x01(\x0c\x12\x18\n\x10\x61\x63tual_object_id\x18\x03 \x01(\x0c\"P\n\x14ReferenceUpdateError\x12\x16\n\x0ereference_name\x18\x01 \x01(\x0c\x12\x0f\n\x07old_oid\x18\x02 \x01(\t\x12\x0f\n\x07new_oid\x18\x03 \x01(\t\"(\n\x14ResolveRevisionError\x12\x10\n\x08revision\x18\x01 \x01(\x0c\"S\n\nLimitError\x12\x15\n\rerror_message\x18\x01 \x01(\t\x12.\n\x0bretry_after\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xd8\x01\n\x0f\x43ustomHookError\x12\x0e\n\x06stdout\x18\x01 \x01(\x0c\x12\x0e\n\x06stderr\x18\x02 \x01(\x0c\x12\x33\n\thook_type\x18\x03 \x01(\x0e\x32 .gitaly.CustomHookError.HookType\"p\n\x08HookType\x12\x19\n\x15HOOK_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14HOOK_TYPE_PRERECEIVE\x10\x01\x12\x14\n\x10HOOK_TYPE_UPDATE\x10\x02\x12\x19\n\x15HOOK_TYPE_POSTRECEIVE\x10\x03\"\xf8\x01\n\tPathError\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12/\n\nerror_type\x18\x02 \x01(\x0e\x32\x1b.gitaly.PathError.ErrorType\"\xab\x01\n\tErrorType\x12\x1a\n\x16\x45RROR_TYPE_UNSPECIFIED\x10\x00\x12\x19\n\x15\x45RROR_TYPE_EMPTY_PATH\x10\x01\x12/\n+ERROR_TYPE_RELATIVE_PATH_ESCAPES_REPOSITORY\x10\x02\x12\x1c\n\x18\x45RROR_TYPE_ABSOLUTE_PATH\x10\x03\x12\x18\n\x14\x45RROR_TYPE_LONG_PATH\x10\x04\"!\n\x11PathNotFoundError\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x42\x34Z2gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypbb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
+ end
32
+ end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
35
+ end
36
+
37
+ module Gitaly
38
+ AccessCheckError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.AccessCheckError").msgclass
39
+ IndexError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.IndexError").msgclass
40
+ IndexError::ErrorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.IndexError.ErrorType").enummodule
41
+ InvalidRefFormatError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.InvalidRefFormatError").msgclass
42
+ NotAncestorError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.NotAncestorError").msgclass
43
+ ChangesAlreadyAppliedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ChangesAlreadyAppliedError").msgclass
44
+ MergeConflictError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MergeConflictError").msgclass
45
+ ReferencesLockedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferencesLockedError").msgclass
46
+ ReferenceExistsError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceExistsError").msgclass
47
+ ReferenceNotFoundError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceNotFoundError").msgclass
48
+ ReferenceStateMismatchError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceStateMismatchError").msgclass
49
+ ReferenceUpdateError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceUpdateError").msgclass
50
+ ResolveRevisionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ResolveRevisionError").msgclass
51
+ LimitError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LimitError").msgclass
52
+ CustomHookError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CustomHookError").msgclass
53
+ CustomHookError::HookType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CustomHookError.HookType").enummodule
54
+ PathError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PathError").msgclass
55
+ PathError::ErrorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PathError.ErrorType").enummodule
56
+ PathNotFoundError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PathNotFoundError").msgclass
57
+ end
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: hook.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'lint_pb'
8
+ require 'shared_pb'
9
+
10
+
11
+ descriptor_data = "\n\nhook.proto\x12\x06gitaly\x1a\nlint.proto\x1a\x0cshared.proto\"\x8d\x01\n\x15PreReceiveHookRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1d\n\x15\x65nvironment_variables\x18\x02 \x03(\t\x12\r\n\x05stdin\x18\x04 \x01(\x0c\x12\x18\n\x10git_push_options\x18\x05 \x03(\t\"a\n\x16PreReceiveHookResponse\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\"\x8e\x01\n\x16PostReceiveHookRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1d\n\x15\x65nvironment_variables\x18\x02 \x03(\t\x12\r\n\x05stdin\x18\x03 \x01(\x0c\x12\x18\n\x10git_push_options\x18\x04 \x03(\t\"b\n\x17PostReceiveHookResponse\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\"\x93\x01\n\x11UpdateHookRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1d\n\x15\x65nvironment_variables\x18\x02 \x03(\t\x12\x0b\n\x03ref\x18\x03 \x01(\x0c\x12\x11\n\told_value\x18\x04 \x01(\t\x12\x11\n\tnew_value\x18\x05 \x01(\t\"]\n\x12UpdateHookResponse\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\"\xee\x01\n\x1fReferenceTransactionHookRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1d\n\x15\x65nvironment_variables\x18\x02 \x03(\t\x12\r\n\x05stdin\x18\x03 \x01(\x0c\x12<\n\x05state\x18\x04 \x01(\x0e\x32-.gitaly.ReferenceTransactionHookRequest.State\"1\n\x05State\x12\x0c\n\x08PREPARED\x10\x00\x12\r\n\tCOMMITTED\x10\x01\x12\x0b\n\x07\x41\x42ORTED\x10\x02\"k\n ReferenceTransactionHookResponse\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\"\xb0\x01\n%PackObjectsHookWithSidechannelRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0c\n\x04\x61rgs\x18\x02 \x03(\t\x12\r\n\x05gl_id\x18\x03 \x01(\t\x12\x13\n\x0bgl_username\x18\x05 \x01(\t\x12\x14\n\x0cgit_protocol\x18\x06 \x01(\t\x12\x11\n\tremote_ip\x18\x07 \x01(\t\"(\n&PackObjectsHookWithSidechannelResponse\"t\n\x16ProcReceiveHookRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1d\n\x15\x65nvironment_variables\x18\x02 \x03(\t\x12\r\n\x05stdin\x18\x03 \x01(\x0c\"b\n\x17ProcReceiveHookResponse\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\xfe\x04\n\x0bHookService\x12[\n\x0ePreReceiveHook\x12\x1d.gitaly.PreReceiveHookRequest\x1a\x1e.gitaly.PreReceiveHookResponse\"\x06\xfa\x97(\x02\x08\x02(\x01\x30\x01\x12^\n\x0fPostReceiveHook\x12\x1e.gitaly.PostReceiveHookRequest\x1a\x1f.gitaly.PostReceiveHookResponse\"\x06\xfa\x97(\x02\x08\x02(\x01\x30\x01\x12M\n\nUpdateHook\x12\x19.gitaly.UpdateHookRequest\x1a\x1a.gitaly.UpdateHookResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12y\n\x18ReferenceTransactionHook\x12\'.gitaly.ReferenceTransactionHookRequest\x1a(.gitaly.ReferenceTransactionHookResponse\"\x06\xfa\x97(\x02\x08\x02(\x01\x30\x01\x12\x87\x01\n\x1ePackObjectsHookWithSidechannel\x12-.gitaly.PackObjectsHookWithSidechannelRequest\x1a..gitaly.PackObjectsHookWithSidechannelResponse\"\x06\xfa\x97(\x02\x08\x02\x12^\n\x0fProcReceiveHook\x12\x1e.gitaly.ProcReceiveHookRequest\x1a\x1f.gitaly.ProcReceiveHookResponse\"\x06\xfa\x97(\x02\x08\x01(\x01\x30\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
+ PreReceiveHookRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PreReceiveHookRequest").msgclass
40
+ PreReceiveHookResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PreReceiveHookResponse").msgclass
41
+ PostReceiveHookRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostReceiveHookRequest").msgclass
42
+ PostReceiveHookResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostReceiveHookResponse").msgclass
43
+ UpdateHookRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UpdateHookRequest").msgclass
44
+ UpdateHookResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UpdateHookResponse").msgclass
45
+ ReferenceTransactionHookRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceTransactionHookRequest").msgclass
46
+ ReferenceTransactionHookRequest::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceTransactionHookRequest.State").enummodule
47
+ ReferenceTransactionHookResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceTransactionHookResponse").msgclass
48
+ PackObjectsHookWithSidechannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackObjectsHookWithSidechannelRequest").msgclass
49
+ PackObjectsHookWithSidechannelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackObjectsHookWithSidechannelResponse").msgclass
50
+ ProcReceiveHookRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ProcReceiveHookRequest").msgclass
51
+ ProcReceiveHookResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ProcReceiveHookResponse").msgclass
52
+ end
@@ -0,0 +1,40 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: hook.proto for package 'gitaly'
3
+
4
+ require 'grpc'
5
+ require 'hook_pb'
6
+
7
+ module Gitaly
8
+ module HookService
9
+ # HookService is a service which provides the implementation of a subset of
10
+ # Git hooks. These are typically invoked via the `gitaly-hooks` binary to
11
+ # ensure that the actual hook logic is executed in the context of the server.
12
+ class Service
13
+
14
+ include ::GRPC::GenericService
15
+
16
+ self.marshal_class_method = :encode
17
+ self.unmarshal_class_method = :decode
18
+ self.service_name = 'gitaly.HookService'
19
+
20
+ # PreReceiveHook ...
21
+ rpc :PreReceiveHook, stream(::Gitaly::PreReceiveHookRequest), stream(::Gitaly::PreReceiveHookResponse)
22
+ # PostReceiveHook ...
23
+ rpc :PostReceiveHook, stream(::Gitaly::PostReceiveHookRequest), stream(::Gitaly::PostReceiveHookResponse)
24
+ # UpdateHook ...
25
+ rpc :UpdateHook, ::Gitaly::UpdateHookRequest, stream(::Gitaly::UpdateHookResponse)
26
+ # ReferenceTransactionHook ...
27
+ rpc :ReferenceTransactionHook, stream(::Gitaly::ReferenceTransactionHookRequest), stream(::Gitaly::ReferenceTransactionHookResponse)
28
+ # PackObjectsHookWithSidechannel is an optimized version of PackObjectsHook that uses
29
+ # a unix socket side channel.
30
+ rpc :PackObjectsHookWithSidechannel, ::Gitaly::PackObjectsHookWithSidechannelRequest, ::Gitaly::PackObjectsHookWithSidechannelResponse
31
+ # ProcReceiveHook is a hook invoked by git-receive-pack(1) [1]. This hook is responsible
32
+ # for updating the relevant references and reporting the results back to receive-pack.
33
+ #
34
+ # [1]: https://git-scm.com/docs/githooks#proc-receive
35
+ rpc :ProcReceiveHook, stream(::Gitaly::ProcReceiveHookRequest), stream(::Gitaly::ProcReceiveHookResponse)
36
+ end
37
+
38
+ Stub = Service.rpc_stub_class
39
+ end
40
+ end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: internal.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/protobuf/timestamp_pb'
8
+ require 'lint_pb'
9
+
10
+
11
+ descriptor_data = "\n\x0einternal.proto\x12\x06gitaly\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\nlint.proto\".\n\x10WalkReposRequest\x12\x1a\n\x0cstorage_name\x18\x01 \x01(\tB\x04\x88\xc6,\x01\"a\n\x11WalkReposResponse\x12\x15\n\rrelative_path\x18\x01 \x01(\t\x12\x35\n\x11modification_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2^\n\x0eInternalGitaly\x12L\n\tWalkRepos\x12\x18.gitaly.WalkReposRequest\x1a\x19.gitaly.WalkReposResponse\"\x08\xfa\x97(\x04\x08\x02\x10\x02\x30\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
+ WalkReposRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.WalkReposRequest").msgclass
40
+ WalkReposResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.WalkReposResponse").msgclass
41
+ end
@@ -0,0 +1,26 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: internal.proto for package 'gitaly'
3
+
4
+ require 'grpc'
5
+ require 'internal_pb'
6
+
7
+ module Gitaly
8
+ module InternalGitaly
9
+ # InternalGitaly is a gRPC service meant to be served by a Gitaly node, but
10
+ # only reachable by Praefect or other Gitalies
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.InternalGitaly'
18
+
19
+ # WalkRepos walks the storage and streams back all known git repos on the
20
+ # requested storage
21
+ rpc :WalkRepos, ::Gitaly::WalkReposRequest, stream(::Gitaly::WalkReposResponse)
22
+ end
23
+
24
+ Stub = Service.rpc_stub_class
25
+ end
26
+ end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: lint.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/protobuf/descriptor_pb'
8
+
9
+
10
+ descriptor_data = "\n\nlint.proto\x12\x06gitaly\x1a google/protobuf/descriptor.proto\"\xe5\x01\n\x0cOperationMsg\x12*\n\x02op\x18\x01 \x01(\x0e\x32\x1e.gitaly.OperationMsg.Operation\x12/\n\x0bscope_level\x18\x02 \x01(\x0e\x32\x1a.gitaly.OperationMsg.Scope\"D\n\tOperation\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07MUTATOR\x10\x01\x12\x0c\n\x08\x41\x43\x43\x45SSOR\x10\x02\x12\x0f\n\x0bMAINTENANCE\x10\x03\"2\n\x05Scope\x12\x0e\n\nREPOSITORY\x10\x00\x12\x0b\n\x07STORAGE\x10\x02\"\x04\x08\x01\x10\x01*\x06SERVER:6\n\x0bintercepted\x12\x1f.google.protobuf.ServiceOptions\x18\xfe\x82\x05 \x01(\x08:G\n\x07op_type\x12\x1e.google.protobuf.MethodOptions\x18\xff\x82\x05 \x01(\x0b\x32\x14.gitaly.OperationMsg:0\n\x07storage\x12\x1d.google.protobuf.FieldOptions\x18\xe1\xc8\x05 \x01(\x08:3\n\nrepository\x12\x1d.google.protobuf.FieldOptions\x18\xe2\xc8\x05 \x01(\x08::\n\x11target_repository\x12\x1d.google.protobuf.FieldOptions\x18\xe3\xc8\x05 \x01(\x08:>\n\x15\x61\x64\x64itional_repository\x12\x1d.google.protobuf.FieldOptions\x18\xe4\xc8\x05 \x01(\x08\x42\x34Z2gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypbb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
30
+ end
31
+ end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
34
+ end
35
+
36
+ module Gitaly
37
+ OperationMsg = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OperationMsg").msgclass
38
+ OperationMsg::Operation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OperationMsg.Operation").enummodule
39
+ OperationMsg::Scope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OperationMsg.Scope").enummodule
40
+ end
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: log.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'shared_pb'
8
+
9
+
10
+ descriptor_data = "\n\tlog.proto\x12\x06gitaly\x1a\x0cshared.proto\"\xa6\x06\n\x08LogEntry\x12\x15\n\rrelative_path\x18\x01 \x01(\t\x12\x45\n\x16reference_transactions\x18\x02 \x03(\x0b\x32%.gitaly.LogEntry.ReferenceTransaction\x12\x43\n\x15\x64\x65\x66\x61ult_branch_update\x18\x03 \x01(\x0b\x32$.gitaly.LogEntry.DefaultBranchUpdate\x12?\n\x13\x63ustom_hooks_update\x18\x04 \x01(\x0b\x32\".gitaly.LogEntry.CustomHooksUpdate\x12\x13\n\x0bpack_prefix\x18\x05 \x01(\t\x12@\n\x13repository_deletion\x18\x06 \x01(\x0b\x32#.gitaly.LogEntry.RepositoryDeletion\x12@\n\x13repository_creation\x18\x07 \x01(\x0b\x32#.gitaly.LogEntry.RepositoryCreation\x12:\n\x10\x61lternate_update\x18\x08 \x01(\x0b\x32 .gitaly.LogEntry.AlternateUpdate\x1a\x88\x01\n\x14ReferenceTransaction\x12=\n\x07\x63hanges\x18\x01 \x03(\x0b\x32,.gitaly.LogEntry.ReferenceTransaction.Change\x1a\x31\n\x06\x43hange\x12\x16\n\x0ereference_name\x18\x01 \x01(\x0c\x12\x0f\n\x07new_oid\x18\x02 \x01(\x0c\x1a-\n\x13\x44\x65\x66\x61ultBranchUpdate\x12\x16\n\x0ereference_name\x18\x01 \x01(\x0c\x1a-\n\x11\x43ustomHooksUpdate\x12\x18\n\x10\x63ustom_hooks_tar\x18\x01 \x01(\x0c\x1a\x41\n\x12RepositoryCreation\x12+\n\robject_format\x18\x01 \x01(\x0e\x32\x14.gitaly.ObjectFormat\x1a\x14\n\x12RepositoryDeletion\x1a\x1f\n\x0f\x41lternateUpdate\x12\x0c\n\x04path\x18\x01 \x01(\t\"\x14\n\x03LSN\x12\r\n\x05value\x18\x01 \x01(\x04\x42\x34Z2gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypbb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
30
+ end
31
+ end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
34
+ end
35
+
36
+ module Gitaly
37
+ LogEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LogEntry").msgclass
38
+ LogEntry::ReferenceTransaction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LogEntry.ReferenceTransaction").msgclass
39
+ LogEntry::ReferenceTransaction::Change = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LogEntry.ReferenceTransaction.Change").msgclass
40
+ LogEntry::DefaultBranchUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LogEntry.DefaultBranchUpdate").msgclass
41
+ LogEntry::CustomHooksUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LogEntry.CustomHooksUpdate").msgclass
42
+ LogEntry::RepositoryCreation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LogEntry.RepositoryCreation").msgclass
43
+ LogEntry::RepositoryDeletion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LogEntry.RepositoryDeletion").msgclass
44
+ LogEntry::AlternateUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LogEntry.AlternateUpdate").msgclass
45
+ LSN = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LSN").msgclass
46
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: objectpool.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'lint_pb'
8
+ require 'shared_pb'
9
+
10
+
11
+ descriptor_data = "\n\x10objectpool.proto\x12\x06gitaly\x1a\nlint.proto\x1a\x0cshared.proto\"r\n\x17\x43reateObjectPoolRequest\x12-\n\x0bobject_pool\x18\x01 \x01(\x0b\x32\x12.gitaly.ObjectPoolB\x04\x98\xc6,\x01\x12(\n\x06origin\x18\x02 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\xa0\xc6,\x01\"\x1a\n\x18\x43reateObjectPoolResponse\"H\n\x17\x44\x65leteObjectPoolRequest\x12-\n\x0bobject_pool\x18\x01 \x01(\x0b\x32\x12.gitaly.ObjectPoolB\x04\x98\xc6,\x01\"\x1a\n\x18\x44\x65leteObjectPoolResponse\"\x80\x01\n!LinkRepositoryToObjectPoolRequest\x12-\n\x0bobject_pool\x18\x01 \x01(\x0b\x32\x12.gitaly.ObjectPoolB\x04\xa0\xc6,\x01\x12,\n\nrepository\x18\x02 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"$\n\"LinkRepositoryToObjectPoolResponse\"N\n\x1e\x44isconnectGitAlternatesRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"!\n\x1f\x44isconnectGitAlternatesResponse\"\x83\x01\n\x1a\x46\x65tchIntoObjectPoolRequest\x12(\n\x06origin\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\xa0\xc6,\x01\x12-\n\x0bobject_pool\x18\x02 \x01(\x0b\x32\x12.gitaly.ObjectPoolB\x04\x98\xc6,\x01J\x04\x08\x03\x10\x04R\x06repack\"\x1d\n\x1b\x46\x65tchIntoObjectPoolResponse\"D\n\x14GetObjectPoolRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"@\n\x15GetObjectPoolResponse\x12\'\n\x0bobject_pool\x18\x01 \x01(\x0b\x32\x12.gitaly.ObjectPool2\x80\x05\n\x11ObjectPoolService\x12]\n\x10\x43reateObjectPool\x12\x1f.gitaly.CreateObjectPoolRequest\x1a .gitaly.CreateObjectPoolResponse\"\x06\xfa\x97(\x02\x08\x01\x12]\n\x10\x44\x65leteObjectPool\x12\x1f.gitaly.DeleteObjectPoolRequest\x1a .gitaly.DeleteObjectPoolResponse\"\x06\xfa\x97(\x02\x08\x01\x12{\n\x1aLinkRepositoryToObjectPool\x12).gitaly.LinkRepositoryToObjectPoolRequest\x1a*.gitaly.LinkRepositoryToObjectPoolResponse\"\x06\xfa\x97(\x02\x08\x01\x12r\n\x17\x44isconnectGitAlternates\x12&.gitaly.DisconnectGitAlternatesRequest\x1a\'.gitaly.DisconnectGitAlternatesResponse\"\x06\xfa\x97(\x02\x08\x01\x12\x66\n\x13\x46\x65tchIntoObjectPool\x12\".gitaly.FetchIntoObjectPoolRequest\x1a#.gitaly.FetchIntoObjectPoolResponse\"\x06\xfa\x97(\x02\x08\x01\x12T\n\rGetObjectPool\x12\x1c.gitaly.GetObjectPoolRequest\x1a\x1d.gitaly.GetObjectPoolResponse\"\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.ObjectPool", "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
+ CreateObjectPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateObjectPoolRequest").msgclass
40
+ CreateObjectPoolResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateObjectPoolResponse").msgclass
41
+ DeleteObjectPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DeleteObjectPoolRequest").msgclass
42
+ DeleteObjectPoolResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DeleteObjectPoolResponse").msgclass
43
+ LinkRepositoryToObjectPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LinkRepositoryToObjectPoolRequest").msgclass
44
+ LinkRepositoryToObjectPoolResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LinkRepositoryToObjectPoolResponse").msgclass
45
+ DisconnectGitAlternatesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DisconnectGitAlternatesRequest").msgclass
46
+ DisconnectGitAlternatesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DisconnectGitAlternatesResponse").msgclass
47
+ FetchIntoObjectPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchIntoObjectPoolRequest").msgclass
48
+ FetchIntoObjectPoolResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchIntoObjectPoolResponse").msgclass
49
+ GetObjectPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetObjectPoolRequest").msgclass
50
+ GetObjectPoolResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetObjectPoolResponse").msgclass
51
+ end
@@ -0,0 +1,77 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: objectpool.proto for package 'gitaly'
3
+
4
+ require 'grpc'
5
+ require 'objectpool_pb'
6
+
7
+ module Gitaly
8
+ module ObjectPoolService
9
+ # ObjectPoolService is a service that manages the lifetime of object pools.
10
+ #
11
+ # An object pool is a separate repository that can be linked to from multiple object pool members
12
+ # in order to deduplicate common objects between them. This is mostly used in the context of
13
+ # repository forks.
14
+ #
15
+ # The typical lifetime of an object pool is as follows:
16
+ #
17
+ # 1. An object pool is created via CreateObjectPool from its primary pool member. Typically this
18
+ # would be the repository that gets forked.
19
+ # 2. One or more repositories are linked to the object pool via LinkRepositoryToObjectPool. Each
20
+ # object pool member linked to the repository will have its objects deduplicated when its
21
+ # objects get repacked the next time.
22
+ # 3. The object pool is regularly updated via FetchIntoObjectPool. This is typically only done from
23
+ # the primary object pool member.
24
+ # 4. Repositories may leave the object pool via DisconnectGitAlternates. There is not much of a
25
+ # reason to do this for any repositories except for the primary object pool member in case it
26
+ # for example becomes private.
27
+ # 5. When the object pool does not have any members anymore it gets deleted via DeleteObjectPool.
28
+ # It is the responsibility of the caller to ensure that it really has no members left, else
29
+ # any existing member will become corrupt.
30
+ class Service
31
+
32
+ include ::GRPC::GenericService
33
+
34
+ self.marshal_class_method = :encode
35
+ self.unmarshal_class_method = :decode
36
+ self.service_name = 'gitaly.ObjectPoolService'
37
+
38
+ # CreateObjectPool creates an object pool from a specific source repository. It will create the
39
+ # object pool by cloning all contents from that source repository. The source repository will not
40
+ # automatically be linked to the object pool, you need to call LinkRepositoryToObjectPool for
41
+ # this. If the object pool exists already this RPC returns an error with the FailedPrecondition
42
+ # gRPC error code.
43
+ rpc :CreateObjectPool, ::Gitaly::CreateObjectPoolRequest, ::Gitaly::CreateObjectPoolResponse
44
+ # DeleteObjectPool deletes the object pool. There are no safety checks in place, so if any
45
+ # repository is still using this object pool it will become corrupted.
46
+ rpc :DeleteObjectPool, ::Gitaly::DeleteObjectPoolRequest, ::Gitaly::DeleteObjectPoolResponse
47
+ # LinkRepositoryToObjectPool links the specified repository to the object pool. Objects contained
48
+ # in the object pool will be deduplicated for this repository when repacking objects.
49
+ rpc :LinkRepositoryToObjectPool, ::Gitaly::LinkRepositoryToObjectPoolRequest, ::Gitaly::LinkRepositoryToObjectPoolResponse
50
+ # DisconnectGitAlternates will disconnect the object pool member from its object pool. It will:
51
+ #
52
+ # 1. Link all objects from the object pool into the member repository. This essenitally
53
+ # reduplicates previously-duplicated objects so that the repository will continue to function
54
+ # after being unlinked.
55
+ # 2. Remove the alternates link to the object pool.
56
+ # 3. Perform a consistency check to assert that the repository is indeed fully functional after
57
+ # unlinking it from its pool. If the consistency check fails the alternates link is restored
58
+ # an the RPC fails.
59
+ #
60
+ # If successful, the object pool member is disconnected from the object pool and does not depend
61
+ # on it anymore.
62
+ #
63
+ # This RPC does not return an error in case the repository is not linked to any object pool.
64
+ rpc :DisconnectGitAlternates, ::Gitaly::DisconnectGitAlternatesRequest, ::Gitaly::DisconnectGitAlternatesResponse
65
+ # FetchIntoObjectPool fetches all references from a pool member into an object pool so that
66
+ # objects shared between this repository and other pool members can be deduplicated. This RPC
67
+ # will perform housekeeping tasks after the object pool has been updated to ensure that the pool
68
+ # is in an optimal state.
69
+ rpc :FetchIntoObjectPool, ::Gitaly::FetchIntoObjectPoolRequest, ::Gitaly::FetchIntoObjectPoolResponse
70
+ # GetObjectPool returns the object pool a repository is connected to. If the repository is not
71
+ # connected to a pool then this RPC returns successfully with an empty response.
72
+ rpc :GetObjectPool, ::Gitaly::GetObjectPoolRequest, ::Gitaly::GetObjectPoolResponse
73
+ end
74
+
75
+ Stub = Service.rpc_stub_class
76
+ end
77
+ end