gitaly 0.2.1 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf32dc33d8a655df21694285eb1c5dc4936a2ef7
4
- data.tar.gz: f4371554985b03b0e24506c2775d06a9887fb3a6
3
+ metadata.gz: 5a590cc20e199f865aef75b97ae70db6b62f3473
4
+ data.tar.gz: 1f0758d6d0f4f4d98cb525e43817a230e9774258
5
5
  SHA512:
6
- metadata.gz: 2d6183588560fcaca75e65071d7238a02ad7c2e3bb45cda5b08eebc05dbd769c16d0b326c18287f9207383b8ae679fe8b148d6062995150ae57b2e141bdf5cc5
7
- data.tar.gz: d134973d569a3f0933b7350a217e059bb6323a531f00e9dbb301d48c6812bbf8be5ffc374645ec258e01a2891135c9b0f89c3a4c2c70cacd12302ce07f67abb5
6
+ metadata.gz: 27e8c21b360d26e8a892cf9cae994f3e14eef02d08d1f8578e579f3cc89e62c53fdd1005b75e5d031e86016558c300a5fd2d2914cb2cb4cbf14cd5c73334394e
7
+ data.tar.gz: fcf047177db911f2b87f6d410b1beace681fdf31720e09ad828f23b5789c05e856ea7537912f4f3086d861f40854eac9d4a876cc2d6386cc5f8409ef48f1a053
@@ -1,8 +1,11 @@
1
+ # This file is generated by _support/release. Do not edit.
1
2
  $:.unshift(File.expand_path('../gitaly', __FILE__))
2
3
 
3
- require "gitaly/version"
4
- require "gitaly/gitaly_services_pb"
4
+ require 'gitaly/version'
5
+
6
+ require 'gitaly/gitaly_services_pb'
7
+
8
+ require 'gitaly/smarthttp_services_pb'
9
+
10
+ require 'gitaly/ssh_services_pb'
5
11
 
6
- module Gitaly
7
- # Your code goes here...
8
- end
@@ -3,27 +3,77 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'shared_pb'
6
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "gitaly.InfoRefsRequest" do
8
+ add_message "gitaly.CommitIsAncestorResponse" do
9
+ optional :value, :bool, 1
10
+ end
11
+ add_message "gitaly.PostReceiveRequest" do
8
12
  optional :repository, :message, 1, "gitaly.Repository"
9
13
  end
10
- add_message "gitaly.InfoRefsResponse" do
11
- optional :data, :bytes, 1
14
+ add_message "gitaly.PostReceiveResponse" do
12
15
  end
13
- add_message "gitaly.Repository" do
14
- optional :path, :string, 1
16
+ add_message "gitaly.FindRefNameRequest" do
17
+ optional :repository, :message, 1, "gitaly.Repository"
18
+ optional :commit_id, :string, 2
19
+ optional :prefix, :bytes, 3
15
20
  end
16
- add_message "gitaly.PostReceiveRequest" do
21
+ add_message "gitaly.FindRefNameResponse" do
22
+ optional :name, :bytes, 1
23
+ end
24
+ add_message "gitaly.CommitIsAncestorRequest" do
17
25
  optional :repository, :message, 1, "gitaly.Repository"
26
+ optional :ancestor_id, :string, 2
27
+ optional :child_id, :string, 3
18
28
  end
19
- add_message "gitaly.PostReceiveResponse" do
29
+ add_message "gitaly.FindDefaultBranchNameRequest" do
30
+ optional :repository, :message, 1, "gitaly.Repository"
31
+ end
32
+ add_message "gitaly.FindAllBranchNamesRequest" do
33
+ optional :repository, :message, 1, "gitaly.Repository"
34
+ end
35
+ add_message "gitaly.FindAllTagNamesRequest" do
36
+ optional :repository, :message, 1, "gitaly.Repository"
37
+ end
38
+ add_message "gitaly.FindDefaultBranchNameResponse" do
39
+ optional :name, :bytes, 1
40
+ end
41
+ add_message "gitaly.FindAllBranchNamesResponse" do
42
+ repeated :names, :bytes, 1
43
+ end
44
+ add_message "gitaly.FindAllTagNamesResponse" do
45
+ repeated :names, :bytes, 1
46
+ end
47
+ add_message "gitaly.CommitDiffRequest" do
48
+ optional :repository, :message, 1, "gitaly.Repository"
49
+ optional :left_commit_id, :string, 2
50
+ optional :right_commit_id, :string, 3
51
+ end
52
+ add_message "gitaly.CommitDiffResponse" do
53
+ optional :from_path, :bytes, 1
54
+ optional :to_path, :bytes, 2
55
+ optional :from_id, :string, 3
56
+ optional :to_id, :string, 4
57
+ optional :old_mode, :int32, 5
58
+ optional :new_mode, :int32, 6
59
+ optional :binary, :bool, 7
60
+ repeated :raw_chunks, :bytes, 8
20
61
  end
21
62
  end
22
63
 
23
64
  module Gitaly
24
- InfoRefsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.InfoRefsRequest").msgclass
25
- InfoRefsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.InfoRefsResponse").msgclass
26
- Repository = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.Repository").msgclass
65
+ CommitIsAncestorResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitIsAncestorResponse").msgclass
27
66
  PostReceiveRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostReceiveRequest").msgclass
28
67
  PostReceiveResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostReceiveResponse").msgclass
68
+ FindRefNameRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRefNameRequest").msgclass
69
+ FindRefNameResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRefNameResponse").msgclass
70
+ CommitIsAncestorRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitIsAncestorRequest").msgclass
71
+ FindDefaultBranchNameRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindDefaultBranchNameRequest").msgclass
72
+ FindAllBranchNamesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllBranchNamesRequest").msgclass
73
+ FindAllTagNamesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllTagNamesRequest").msgclass
74
+ FindDefaultBranchNameResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindDefaultBranchNameResponse").msgclass
75
+ FindAllBranchNamesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllBranchNamesResponse").msgclass
76
+ FindAllTagNamesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllTagNamesResponse").msgclass
77
+ CommitDiffRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitDiffRequest").msgclass
78
+ CommitDiffResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitDiffResponse").msgclass
29
79
  end
@@ -5,34 +5,63 @@ require 'grpc'
5
5
  require 'gitaly_pb'
6
6
 
7
7
  module Gitaly
8
- module SmartHTTP
9
- # The Git 'smart HTTP' protocol
8
+ module Notifications
10
9
  class Service
11
10
 
12
11
  include GRPC::GenericService
13
12
 
14
13
  self.marshal_class_method = :encode
15
14
  self.unmarshal_class_method = :decode
16
- self.service_name = 'gitaly.SmartHTTP'
15
+ self.service_name = 'gitaly.Notifications'
17
16
 
18
- # The response body for GET /info/refs?service=git-upload-pack
19
- rpc :InfoRefsUploadPack, InfoRefsRequest, stream(InfoRefsResponse)
20
- # The response body for GET /info/refs?service=git-receive-pack
21
- rpc :InfoRefsReceivePack, InfoRefsRequest, stream(InfoRefsResponse)
17
+ rpc :PostReceive, PostReceiveRequest, PostReceiveResponse
22
18
  end
23
19
 
24
20
  Stub = Service.rpc_stub_class
25
21
  end
26
- module Notifications
22
+ module Ref
27
23
  class Service
28
24
 
29
25
  include GRPC::GenericService
30
26
 
31
27
  self.marshal_class_method = :encode
32
28
  self.unmarshal_class_method = :decode
33
- self.service_name = 'gitaly.Notifications'
29
+ self.service_name = 'gitaly.Ref'
34
30
 
35
- rpc :PostReceive, PostReceiveRequest, PostReceiveResponse
31
+ rpc :FindDefaultBranchName, FindDefaultBranchNameRequest, FindDefaultBranchNameResponse
32
+ rpc :FindAllBranchNames, FindAllBranchNamesRequest, stream(FindAllBranchNamesResponse)
33
+ rpc :FindAllTagNames, FindAllTagNamesRequest, stream(FindAllTagNamesResponse)
34
+ # Find a Ref matching the given constraints. Response may be empty.
35
+ rpc :FindRefName, FindRefNameRequest, FindRefNameResponse
36
+ end
37
+
38
+ Stub = Service.rpc_stub_class
39
+ end
40
+ module Diff
41
+ class Service
42
+
43
+ include GRPC::GenericService
44
+
45
+ self.marshal_class_method = :encode
46
+ self.unmarshal_class_method = :decode
47
+ self.service_name = 'gitaly.Diff'
48
+
49
+ # Returns stream of CommitDiffResponse: 1 per changed file
50
+ rpc :CommitDiff, CommitDiffRequest, stream(CommitDiffResponse)
51
+ end
52
+
53
+ Stub = Service.rpc_stub_class
54
+ end
55
+ module Commit
56
+ class Service
57
+
58
+ include GRPC::GenericService
59
+
60
+ self.marshal_class_method = :encode
61
+ self.unmarshal_class_method = :decode
62
+ self.service_name = 'gitaly.Commit'
63
+
64
+ rpc :CommitIsAncestor, CommitIsAncestorRequest, CommitIsAncestorResponse
36
65
  end
37
66
 
38
67
  Stub = Service.rpc_stub_class
@@ -0,0 +1,18 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: shared.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_message "gitaly.Repository" do
8
+ optional :path, :string, 1
9
+ end
10
+ add_message "gitaly.ExitStatus" do
11
+ optional :value, :int32, 1
12
+ end
13
+ end
14
+
15
+ module Gitaly
16
+ Repository = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.Repository").msgclass
17
+ ExitStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ExitStatus").msgclass
18
+ end
@@ -0,0 +1,19 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: smarthttp.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'shared_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_message "gitaly.InfoRefsRequest" do
9
+ optional :repository, :message, 1, "gitaly.Repository"
10
+ end
11
+ add_message "gitaly.InfoRefsResponse" do
12
+ optional :data, :bytes, 1
13
+ end
14
+ end
15
+
16
+ module Gitaly
17
+ InfoRefsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.InfoRefsRequest").msgclass
18
+ InfoRefsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.InfoRefsResponse").msgclass
19
+ end
@@ -0,0 +1,25 @@
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 SmartHTTP
9
+ class Service
10
+
11
+ include GRPC::GenericService
12
+
13
+ self.marshal_class_method = :encode
14
+ self.unmarshal_class_method = :decode
15
+ self.service_name = 'gitaly.SmartHTTP'
16
+
17
+ # The response body for GET /info/refs?service=git-upload-pack
18
+ rpc :InfoRefsUploadPack, InfoRefsRequest, stream(InfoRefsResponse)
19
+ # The response body for GET /info/refs?service=git-receive-pack
20
+ rpc :InfoRefsReceivePack, InfoRefsRequest, stream(InfoRefsResponse)
21
+ end
22
+
23
+ Stub = Service.rpc_stub_class
24
+ end
25
+ end
@@ -0,0 +1,34 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: ssh.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'shared_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_message "gitaly.SSHUploadPackRequest" do
9
+ optional :repository, :message, 1, "gitaly.Repository"
10
+ optional :stdin, :bytes, 2
11
+ end
12
+ add_message "gitaly.SSHUploadPackResponse" do
13
+ optional :stdout, :bytes, 1
14
+ optional :stderr, :bytes, 2
15
+ optional :exit_status, :message, 3, "gitaly.ExitStatus"
16
+ end
17
+ add_message "gitaly.SSHReceivePackRequest" do
18
+ optional :repository, :message, 1, "gitaly.Repository"
19
+ optional :stdin, :bytes, 2
20
+ optional :gl_id, :string, 3
21
+ end
22
+ add_message "gitaly.SSHReceivePackResponse" do
23
+ optional :stdout, :bytes, 1
24
+ optional :stderr, :bytes, 2
25
+ optional :exit_status, :message, 3, "gitaly.ExitStatus"
26
+ end
27
+ end
28
+
29
+ module Gitaly
30
+ SSHUploadPackRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHUploadPackRequest").msgclass
31
+ SSHUploadPackResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHUploadPackResponse").msgclass
32
+ SSHReceivePackRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHReceivePackRequest").msgclass
33
+ SSHReceivePackResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHReceivePackResponse").msgclass
34
+ end
@@ -0,0 +1,25 @@
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 SSH
9
+ class Service
10
+
11
+ include GRPC::GenericService
12
+
13
+ self.marshal_class_method = :encode
14
+ self.unmarshal_class_method = :decode
15
+ self.service_name = 'gitaly.SSH'
16
+
17
+ # To forward 'git upload-pack' to Gitaly for SSH sessions
18
+ rpc :SSHUploadPack, stream(SSHUploadPackRequest), stream(SSHUploadPackResponse)
19
+ # To forward 'git receive-pack' to Gitaly for SSH sessions
20
+ rpc :SSHReceivePack, stream(SSHReceivePackRequest), stream(SSHReceivePackResponse)
21
+ end
22
+
23
+ Stub = Service.rpc_stub_class
24
+ end
25
+ end
@@ -1,4 +1,4 @@
1
- # This file was auto-generated by ./_support/release
1
+ # This file was auto-generated by _support/release
2
2
  module Gitaly
3
- VERSION = "0.2.1"
3
+ VERSION = "0.3.0"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitaly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Vosmaer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-14 00:00:00.000000000 Z
11
+ date: 2017-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -80,6 +80,11 @@ files:
80
80
  - ruby/lib/gitaly.rb
81
81
  - ruby/lib/gitaly/gitaly_pb.rb
82
82
  - ruby/lib/gitaly/gitaly_services_pb.rb
83
+ - ruby/lib/gitaly/shared_pb.rb
84
+ - ruby/lib/gitaly/smarthttp_pb.rb
85
+ - ruby/lib/gitaly/smarthttp_services_pb.rb
86
+ - ruby/lib/gitaly/ssh_pb.rb
87
+ - ruby/lib/gitaly/ssh_services_pb.rb
83
88
  - ruby/lib/gitaly/version.rb
84
89
  homepage: https://gitlab.com/gitlab-org/gitaly
85
90
  licenses: