gitlab-global-service-client-poc 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f33a5c230a15d87035d6878b3632f5934a64f6aaf3f411a60d6080a08069b4e0
4
+ data.tar.gz: d96b6ccfa08778080330d1cf25fc52388d4819ed4849b5c8ce622408a89ba02a
5
+ SHA512:
6
+ metadata.gz: '05852f543b6b92fc7c7084b3598ce61317288b07046e7bb82b2bf42da4588d6962c060afd33b81c7ff2425562e8a8f9589d4be5c0731b59bd5c2f0481d0ae561'
7
+ data.tar.gz: 92713adbf59c5d979359f1d94ab5aa4d563763f23eb7c71c9ff45f9075bcfa532b3d31f428289613e6307488b5bf6b49a20199cbfd8c913651e4006a089e09c8
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in ruby.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+ gem "rspec", "~> 3.0"
10
+ gem "rubocop", "~> 1.21"
data/Gemfile.lock ADDED
@@ -0,0 +1,68 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ gitlab-global-service-poc (0.0.1)
5
+ grpc
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ast (2.4.2)
11
+ diff-lcs (1.5.1)
12
+ google-protobuf (3.25.3-aarch64-linux)
13
+ googleapis-common-protos-types (1.12.0)
14
+ google-protobuf (~> 3.18)
15
+ grpc (1.61.0-aarch64-linux)
16
+ google-protobuf (~> 3.25)
17
+ googleapis-common-protos-types (~> 1.0)
18
+ json (2.7.1)
19
+ language_server-protocol (3.17.0.3)
20
+ parallel (1.24.0)
21
+ parser (3.3.0.5)
22
+ ast (~> 2.4.1)
23
+ racc
24
+ racc (1.7.3)
25
+ rainbow (3.1.1)
26
+ rake (13.1.0)
27
+ regexp_parser (2.9.0)
28
+ rexml (3.2.6)
29
+ rspec (3.13.0)
30
+ rspec-core (~> 3.13.0)
31
+ rspec-expectations (~> 3.13.0)
32
+ rspec-mocks (~> 3.13.0)
33
+ rspec-core (3.13.0)
34
+ rspec-support (~> 3.13.0)
35
+ rspec-expectations (3.13.0)
36
+ diff-lcs (>= 1.2.0, < 2.0)
37
+ rspec-support (~> 3.13.0)
38
+ rspec-mocks (3.13.0)
39
+ diff-lcs (>= 1.2.0, < 2.0)
40
+ rspec-support (~> 3.13.0)
41
+ rspec-support (3.13.0)
42
+ rubocop (1.60.2)
43
+ json (~> 2.3)
44
+ language_server-protocol (>= 3.17.0)
45
+ parallel (~> 1.10)
46
+ parser (>= 3.3.0.2)
47
+ rainbow (>= 2.2.2, < 4.0)
48
+ regexp_parser (>= 1.8, < 3.0)
49
+ rexml (>= 3.2.5, < 4.0)
50
+ rubocop-ast (>= 1.30.0, < 2.0)
51
+ ruby-progressbar (~> 1.7)
52
+ unicode-display_width (>= 2.4.0, < 3.0)
53
+ rubocop-ast (1.30.0)
54
+ parser (>= 3.2.1.0)
55
+ ruby-progressbar (1.13.0)
56
+ unicode-display_width (2.5.0)
57
+
58
+ PLATFORMS
59
+ aarch64-linux
60
+
61
+ DEPENDENCIES
62
+ gitlab-global-service-poc!
63
+ rake (~> 13.0)
64
+ rspec (~> 3.0)
65
+ rubocop (~> 1.21)
66
+
67
+ BUNDLED WITH
68
+ 2.4.4
@@ -0,0 +1,2 @@
1
+ require 'proto/gs_pb'
2
+ require 'proto/gs_services_pb'
@@ -0,0 +1,78 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: proto/gs.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("proto/gs.proto", :syntax => :proto3) do
9
+ add_message "gitlab.cells.SequenceRequest" do
10
+ optional :table_name, :string, 1
11
+ optional :block_size, :int64, 2
12
+ end
13
+ add_message "gitlab.cells.SequenceResponse" do
14
+ optional :sequence_claim_id, :int64, 1
15
+ optional :table_name, :string, 2
16
+ optional :start_id, :int64, 3
17
+ optional :end_id, :int64, 4
18
+ end
19
+ add_message "gitlab.cells.ClaimRequest" do
20
+ optional :claim_type, :enum, 1, "gitlab.cells.ClaimType"
21
+ optional :claim_value, :string, 2
22
+ optional :resource_type, :string, 3
23
+ optional :resource_id, :int64, 4
24
+ end
25
+ add_message "gitlab.cells.ClaimInfo" do
26
+ optional :id, :int64, 1
27
+ optional :claim_type, :enum, 2, "gitlab.cells.ClaimType"
28
+ optional :claim_value, :string, 3
29
+ optional :resource_type, :string, 4
30
+ optional :resource_id, :int64, 5
31
+ end
32
+ add_message "gitlab.cells.ClaimResponse" do
33
+ optional :claim, :message, 1, "gitlab.cells.ClaimInfo"
34
+ end
35
+ add_message "gitlab.cells.ClaimsResponse" do
36
+ repeated :claims, :message, 1, "gitlab.cells.ClaimInfo"
37
+ end
38
+ add_message "gitlab.cells.CellInfo" do
39
+ optional :id, :int64, 1
40
+ optional :name, :string, 2
41
+ optional :address, :string, 3
42
+ end
43
+ add_message "gitlab.cells.CellsRequest" do
44
+ end
45
+ add_message "gitlab.cells.CellsResponse" do
46
+ repeated :cells, :message, 1, "gitlab.cells.CellInfo"
47
+ end
48
+ add_message "gitlab.cells.ClassifyRequest" do
49
+ optional :claim_type, :enum, 1, "gitlab.cells.ClaimType"
50
+ optional :claim_value, :string, 2
51
+ end
52
+ add_message "gitlab.cells.ClassifyResponse" do
53
+ optional :claim_info, :message, 1, "gitlab.cells.ClaimInfo"
54
+ optional :cell_info, :message, 2, "gitlab.cells.CellInfo"
55
+ end
56
+ add_enum "gitlab.cells.ClaimType" do
57
+ value :Unknown, 0
58
+ value :Routes, 1
59
+ end
60
+ end
61
+ end
62
+
63
+ module Gitlab
64
+ module Cells
65
+ SequenceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.SequenceRequest").msgclass
66
+ SequenceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.SequenceResponse").msgclass
67
+ ClaimRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClaimRequest").msgclass
68
+ ClaimInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClaimInfo").msgclass
69
+ ClaimResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClaimResponse").msgclass
70
+ ClaimsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClaimsResponse").msgclass
71
+ CellInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.CellInfo").msgclass
72
+ CellsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.CellsRequest").msgclass
73
+ CellsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.CellsResponse").msgclass
74
+ ClassifyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClassifyRequest").msgclass
75
+ ClassifyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClassifyResponse").msgclass
76
+ ClaimType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClaimType").enummodule
77
+ end
78
+ end
@@ -0,0 +1,30 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: proto/gs.proto for package 'Gitlab.Cells'
3
+
4
+ require 'grpc'
5
+ require 'proto/gs_pb'
6
+
7
+ module Gitlab
8
+ module Cells
9
+ module GlobalService
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 = 'gitlab.cells.GlobalService'
17
+
18
+ rpc :GetCells, Gitlab::Cells::CellsRequest, Gitlab::Cells::CellsResponse
19
+ rpc :RequestSequence, Gitlab::Cells::SequenceRequest, Gitlab::Cells::SequenceResponse
20
+ rpc :ValidateSequence, Gitlab::Cells::SequenceResponse, Gitlab::Cells::SequenceResponse
21
+ rpc :RequestClaim, Gitlab::Cells::ClaimRequest, Gitlab::Cells::ClaimResponse
22
+ rpc :GetClaim, Gitlab::Cells::ClaimRequest, Gitlab::Cells::ClaimsResponse
23
+ rpc :DeleteClaim, Gitlab::Cells::ClaimRequest, Gitlab::Cells::ClaimsResponse
24
+ rpc :ClassifyEndpoint, Gitlab::Cells::ClassifyRequest, Gitlab::Cells::ClassifyResponse
25
+ end
26
+
27
+ Stub = Service.rpc_stub_class
28
+ end
29
+ end
30
+ end
metadata ADDED
@@ -0,0 +1,67 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gitlab-global-service-client-poc
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Kamil Trzciński
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-02-21 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: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description:
28
+ email:
29
+ - ayufan@ayufan.eu
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ".rspec"
35
+ - ".rubocop.yml"
36
+ - Gemfile
37
+ - Gemfile.lock
38
+ - lib/gitlab/cells.rb
39
+ - lib/proto/gs_pb.rb
40
+ - lib/proto/gs_services_pb.rb
41
+ homepage: https://gitlab.com/gitlab-org/tenant-scale-group/pocs/global-service
42
+ licenses:
43
+ - MIT
44
+ metadata:
45
+ homepage_uri: https://gitlab.com/gitlab-org/tenant-scale-group/pocs/global-service
46
+ source_code_uri: https://gitlab.com/gitlab-org/tenant-scale-group/pocs/global-service
47
+ changelog_uri: https://gitlab.com/gitlab-org/tenant-scale-group/pocs/global-service/tree/main/CHANGELOG.md
48
+ post_install_message:
49
+ rdoc_options: []
50
+ require_paths:
51
+ - lib
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 2.6.0
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ requirements: []
63
+ rubygems_version: 3.4.4
64
+ signing_key:
65
+ specification_version: 4
66
+ summary: Client library to interact with Global Service for GitLab Cells architecture
67
+ test_files: []