gitlab-global-service-client-poc 0.0.rc.1 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/gitlab/cells.rb +2 -0
- data/lib/proto/gs_pb.rb +78 -0
- data/lib/proto/gs_services_pb.rb +30 -0
- metadata +13 -9
- data/lib/gitlab/cells/topology_service/version.rb +0 -9
- data/lib/gitlab/cells/topology_service.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f33a5c230a15d87035d6878b3632f5934a64f6aaf3f411a60d6080a08069b4e0
|
4
|
+
data.tar.gz: d96b6ccfa08778080330d1cf25fc52388d4819ed4849b5c8ce622408a89ba02a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '05852f543b6b92fc7c7084b3598ce61317288b07046e7bb82b2bf42da4588d6962c060afd33b81c7ff2425562e8a8f9589d4be5c0731b59bd5c2f0481d0ae561'
|
7
|
+
data.tar.gz: 92713adbf59c5d979359f1d94ab5aa4d563763f23eb7c71c9ff45f9075bcfa532b3d31f428289613e6307488b5bf6b49a20199cbfd8c913651e4006a089e09c8
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
gitlab-global-service-
|
4
|
+
gitlab-global-service-poc (0.0.1)
|
5
5
|
grpc
|
6
6
|
|
7
7
|
GEM
|
@@ -59,7 +59,7 @@ PLATFORMS
|
|
59
59
|
aarch64-linux
|
60
60
|
|
61
61
|
DEPENDENCIES
|
62
|
-
gitlab-global-service-
|
62
|
+
gitlab-global-service-poc!
|
63
63
|
rake (~> 13.0)
|
64
64
|
rspec (~> 3.0)
|
65
65
|
rubocop (~> 1.21)
|
data/lib/gitlab/cells.rb
ADDED
data/lib/proto/gs_pb.rb
ADDED
@@ -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
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-global-service-client-poc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kamil Trzciński
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|
@@ -35,12 +35,16 @@ files:
|
|
35
35
|
- ".rubocop.yml"
|
36
36
|
- Gemfile
|
37
37
|
- Gemfile.lock
|
38
|
-
- lib/gitlab/cells
|
39
|
-
- lib/
|
40
|
-
|
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
|
41
42
|
licenses:
|
42
43
|
- MIT
|
43
|
-
metadata:
|
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
|
44
48
|
post_install_message:
|
45
49
|
rdoc_options: []
|
46
50
|
require_paths:
|
@@ -52,12 +56,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
52
56
|
version: 2.6.0
|
53
57
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
58
|
requirements:
|
55
|
-
- - "
|
59
|
+
- - ">="
|
56
60
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
61
|
+
version: '0'
|
58
62
|
requirements: []
|
59
63
|
rubygems_version: 3.4.4
|
60
64
|
signing_key:
|
61
65
|
specification_version: 4
|
62
|
-
summary: Client library to interact with
|
66
|
+
summary: Client library to interact with Global Service for GitLab Cells architecture
|
63
67
|
test_files: []
|