kas-grpc 0.0.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/internal/module/agent_tracker/agent_tracker_pb.rb +3 -2
- data/lib/internal/module/agent_tracker/rpc/rpc_pb.rb +2 -0
- data/lib/internal/module/agent_tracker/rpc/rpc_services_pb.rb +0 -0
- data/lib/internal/module/configuration_project/rpc/rpc_pb.rb +5 -3
- data/lib/internal/module/configuration_project/rpc/rpc_services_pb.rb +0 -0
- data/lib/internal/module/notifications/rpc/rpc_pb.rb +28 -0
- data/lib/internal/module/notifications/rpc/rpc_services_pb.rb +28 -0
- data/lib/kas-grpc.rb +1 -0
- data/lib/pkg/entity/entity_pb.rb +40 -0
- data/lib/pkg/event/event_pb.rb +27 -0
- data/lib/validate/validate_pb.rb +1 -0
- metadata +10 -5
- data/lib/internal/module/modserver/modserver_pb.rb +0 -30
- data/lib/internal/module/modshared/modshared_pb.rb +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d49c9285a659ffb1c2a8a6c954485765218d132a20434f4904556ac0146beb01
|
4
|
+
data.tar.gz: 2f8551352b93581c818d7c7b663a690964640f63ddcfff6b3f83284fe74e9a4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c597da64aa2af51fbcf7ca2496298aeffa3af05bc11eac38e1b84c6f9e605b304ed29e10aad424dd9711f121255a97f9ee5a1574b7e597bdd12681acbed0a60
|
7
|
+
data.tar.gz: ccba9eb877058bd2960b80565569bdfbbe5fa886072987ee8626c15d8cacb05182d87b896be7f2e113161f429b3d6c7ae824f5cad79b753234c6d193a278149f
|
@@ -4,11 +4,12 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
require 'google/protobuf/timestamp_pb'
|
7
|
-
require '
|
7
|
+
require 'pkg/entity/entity_pb'
|
8
|
+
|
8
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
10
|
add_file("internal/module/agent_tracker/agent_tracker.proto", :syntax => :proto3) do
|
10
11
|
add_message "gitlab.agent.agent_tracker.ConnectedAgentInfo" do
|
11
|
-
optional :agent_meta, :message, 1, "gitlab.agent.
|
12
|
+
optional :agent_meta, :message, 1, "gitlab.agent.entity.AgentMeta", json_name: "agent_meta"
|
12
13
|
optional :connected_at, :message, 2, "google.protobuf.Timestamp", json_name: "connected_at"
|
13
14
|
optional :connection_id, :int64, 3, json_name: "connection_id"
|
14
15
|
optional :agent_id, :int64, 4, json_name: "agent_id"
|
@@ -4,6 +4,8 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
require 'internal/module/agent_tracker/agent_tracker_pb'
|
7
|
+
require 'validate/validate_pb'
|
8
|
+
|
7
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
10
|
add_file("internal/module/agent_tracker/rpc/rpc.proto", :syntax => :proto3) do
|
9
11
|
add_message "gitlab.agent.agent_tracker.rpc.GetConnectedAgentsRequest" do
|
File without changes
|
@@ -3,12 +3,14 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require '
|
6
|
+
require 'validate/validate_pb'
|
7
|
+
require 'pkg/entity/entity_pb'
|
8
|
+
|
7
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
10
|
add_file("internal/module/configuration_project/rpc/rpc.proto", :syntax => :proto3) do
|
9
11
|
add_message "gitlab.agent.configuration_project.rpc.ListAgentConfigFilesRequest" do
|
10
|
-
optional :repository, :message, 1, "gitlab.agent.
|
11
|
-
optional :
|
12
|
+
optional :repository, :message, 1, "gitlab.agent.entity.GitalyRepository", json_name: "repository"
|
13
|
+
optional :gitaly_info, :message, 2, "gitlab.agent.entity.GitalyInfo", json_name: "gitalyInfo"
|
12
14
|
optional :default_branch, :string, 3, json_name: "defaultBranch"
|
13
15
|
end
|
14
16
|
add_message "gitlab.agent.configuration_project.rpc.ListAgentConfigFilesResponse" do
|
File without changes
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: internal/module/notifications/rpc/rpc.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'validate/validate_pb'
|
7
|
+
require 'pkg/event/event_pb'
|
8
|
+
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("internal/module/notifications/rpc/rpc.proto", :syntax => :proto3) do
|
11
|
+
add_message "gitlab.agent.notifications.rpc.GitPushEventRequest" do
|
12
|
+
optional :event, :message, 1, "gitlab.agent.event.GitPushEvent", json_name: "event"
|
13
|
+
end
|
14
|
+
add_message "gitlab.agent.notifications.rpc.GitPushEventResponse" do
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
module Gitlab
|
20
|
+
module Agent
|
21
|
+
module Notifications
|
22
|
+
module Rpc
|
23
|
+
GitPushEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.notifications.rpc.GitPushEventRequest").msgclass
|
24
|
+
GitPushEventResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.notifications.rpc.GitPushEventResponse").msgclass
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: internal/module/notifications/rpc/rpc.proto for package 'gitlab.agent.notifications.rpc'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'internal/module/notifications/rpc/rpc_pb'
|
6
|
+
|
7
|
+
module Gitlab
|
8
|
+
module Agent
|
9
|
+
module Notifications
|
10
|
+
module Rpc
|
11
|
+
module Notifications
|
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 = 'gitlab.agent.notifications.rpc.Notifications'
|
19
|
+
|
20
|
+
rpc :GitPushEvent, ::Gitlab::Agent::Notifications::Rpc::GitPushEventRequest, ::Gitlab::Agent::Notifications::Rpc::GitPushEventResponse
|
21
|
+
end
|
22
|
+
|
23
|
+
Stub = Service.rpc_stub_class
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
data/lib/kas-grpc.rb
CHANGED
@@ -0,0 +1,40 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: pkg/entity/entity.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'validate/validate_pb'
|
7
|
+
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("pkg/entity/entity.proto", :syntax => :proto3) do
|
10
|
+
add_message "gitlab.agent.entity.AgentMeta" do
|
11
|
+
optional :version, :string, 1, json_name: "version"
|
12
|
+
optional :commit_id, :string, 2, json_name: "commit_id"
|
13
|
+
optional :pod_namespace, :string, 3, json_name: "pod_namespace"
|
14
|
+
optional :pod_name, :string, 4, json_name: "pod_name"
|
15
|
+
end
|
16
|
+
add_message "gitlab.agent.entity.GitalyInfo" do
|
17
|
+
optional :address, :string, 1, json_name: "address"
|
18
|
+
optional :token, :string, 2, json_name: "token"
|
19
|
+
map :features, :string, :string, 3
|
20
|
+
end
|
21
|
+
add_message "gitlab.agent.entity.GitalyRepository" do
|
22
|
+
optional :storage_name, :string, 2, json_name: "storage_name"
|
23
|
+
optional :relative_path, :string, 3, json_name: "relative_path"
|
24
|
+
optional :git_object_directory, :string, 4, json_name: "git_object_directory"
|
25
|
+
repeated :git_alternate_object_directories, :string, 5, json_name: "git_alternate_object_directories"
|
26
|
+
optional :gl_repository, :string, 6, json_name: "gl_repository"
|
27
|
+
optional :gl_project_path, :string, 8, json_name: "gl_project_path"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
module Gitlab
|
33
|
+
module Agent
|
34
|
+
module Entity
|
35
|
+
AgentMeta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.entity.AgentMeta").msgclass
|
36
|
+
GitalyInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.entity.GitalyInfo").msgclass
|
37
|
+
GitalyRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.entity.GitalyRepository").msgclass
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: pkg/event/event.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'validate/validate_pb'
|
7
|
+
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("pkg/event/event.proto", :syntax => :proto3) do
|
10
|
+
add_message "gitlab.agent.event.GitPushEvent" do
|
11
|
+
optional :project, :message, 1, "gitlab.agent.event.Project", json_name: "project"
|
12
|
+
end
|
13
|
+
add_message "gitlab.agent.event.Project" do
|
14
|
+
optional :id, :int64, 1, json_name: "id"
|
15
|
+
optional :full_path, :string, 2, json_name: "fullPath"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
module Gitlab
|
21
|
+
module Agent
|
22
|
+
module Event
|
23
|
+
GitPushEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.event.GitPushEvent").msgclass
|
24
|
+
Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.event.Project").msgclass
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
# Empty file to satisfy generated imports in sibling files.
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kas-grpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiger Watson
|
8
8
|
- Hordur Freyr Yngvason
|
9
|
+
- Timo Furrer
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2023-06-20 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: grpc
|
@@ -29,6 +30,7 @@ description:
|
|
29
30
|
email:
|
30
31
|
- twatson@gitlab.com
|
31
32
|
- hfyngvason@gitlab.com
|
33
|
+
- tfurrer@gitlab.com
|
32
34
|
executables: []
|
33
35
|
extensions: []
|
34
36
|
extra_rdoc_files: []
|
@@ -38,9 +40,12 @@ files:
|
|
38
40
|
- lib/internal/module/agent_tracker/rpc/rpc_services_pb.rb
|
39
41
|
- lib/internal/module/configuration_project/rpc/rpc_pb.rb
|
40
42
|
- lib/internal/module/configuration_project/rpc/rpc_services_pb.rb
|
41
|
-
- lib/internal/module/
|
42
|
-
- lib/internal/module/
|
43
|
+
- lib/internal/module/notifications/rpc/rpc_pb.rb
|
44
|
+
- lib/internal/module/notifications/rpc/rpc_services_pb.rb
|
43
45
|
- lib/kas-grpc.rb
|
46
|
+
- lib/pkg/entity/entity_pb.rb
|
47
|
+
- lib/pkg/event/event_pb.rb
|
48
|
+
- lib/validate/validate_pb.rb
|
44
49
|
homepage: https://gitlab.com/gitlab-org/cluster-integration/gitlab-agent
|
45
50
|
licenses:
|
46
51
|
- MIT
|
@@ -60,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
65
|
- !ruby/object:Gem::Version
|
61
66
|
version: '0'
|
62
67
|
requirements: []
|
63
|
-
rubygems_version: 3.
|
68
|
+
rubygems_version: 3.2.22
|
64
69
|
signing_key:
|
65
70
|
specification_version: 4
|
66
71
|
summary: Auto-generated gRPC client for KAS
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: internal/module/modserver/modserver.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
-
add_file("internal/module/modserver/modserver.proto", :syntax => :proto3) do
|
8
|
-
add_message "gitlab.agent.modserver.Repository" do
|
9
|
-
optional :storage_name, :string, 2, json_name: "storageName"
|
10
|
-
optional :relative_path, :string, 3, json_name: "relativePath"
|
11
|
-
optional :git_object_directory, :string, 4, json_name: "gitObjectDirectory"
|
12
|
-
repeated :git_alternate_object_directories, :string, 5, json_name: "gitAlternateObjectDirectories"
|
13
|
-
optional :gl_repository, :string, 6, json_name: "glRepository"
|
14
|
-
optional :gl_project_path, :string, 8, json_name: "glProjectPath"
|
15
|
-
end
|
16
|
-
add_message "gitlab.agent.modserver.GitalyAddress" do
|
17
|
-
optional :address, :string, 1, json_name: "address"
|
18
|
-
optional :token, :string, 2, json_name: "token"
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
module Gitlab
|
24
|
-
module Agent
|
25
|
-
module Modserver
|
26
|
-
Repository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.modserver.Repository").msgclass
|
27
|
-
GitalyAddress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.modserver.GitalyAddress").msgclass
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: internal/module/modshared/modshared.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
-
add_file("internal/module/modshared/modshared.proto", :syntax => :proto3) do
|
8
|
-
add_message "gitlab.agent.modshared.AgentMeta" do
|
9
|
-
optional :version, :string, 1, json_name: "version"
|
10
|
-
optional :commit_id, :string, 2, json_name: "commit_id"
|
11
|
-
optional :pod_namespace, :string, 3, json_name: "pod_namespace"
|
12
|
-
optional :pod_name, :string, 4, json_name: "pod_name"
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
module Gitlab
|
18
|
-
module Agent
|
19
|
-
module Modshared
|
20
|
-
AgentMeta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.modshared.AgentMeta").msgclass
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|