kas-grpc 0.0.2 → 0.1.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 +6 -5
- data/lib/internal/module/agent_tracker/rpc/rpc_pb.rb +5 -3
- data/lib/internal/module/agent_tracker/rpc/rpc_services_pb.rb +1 -1
- data/lib/internal/module/configuration_project/rpc/rpc_pb.rb +8 -5
- data/lib/internal/module/configuration_project/rpc/rpc_services_pb.rb +1 -1
- data/lib/internal/module/modserver/modserver_pb.rb +8 -8
- data/lib/internal/module/modshared/modshared_pb.rb +4 -4
- data/lib/internal/module/notifications/rpc/rpc_pb.rb +32 -0
- data/lib/internal/module/notifications/rpc/rpc_services_pb.rb +28 -0
- data/lib/kas-grpc.rb +1 -0
- data/lib/validate/validate_pb.rb +1 -0
- metadata +10 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d98189041e9a06f670781ea0e17f378cbd43afbdfae8f7cf4594f267abf1e47c
|
4
|
+
data.tar.gz: a00efbf02a7188961f3f566f826e8197264963aa22c4f33020ebddac4a78f9ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0bb9d844adeb02fc37c70f687b72af750acc52a693358f6176f3be53dab28a111d7a390ddefae9e830e9abecd86f3eecd2d7dbb4c671769a06d2450d053f763
|
7
|
+
data.tar.gz: d100345cf1102fa38796112640d63106716efa6bad47e051e45158607e50ed5ec9e79aa72987d814e804d34bf15c035dc72936568d293357893223fb68cd7ea8
|
@@ -5,14 +5,15 @@ require 'google/protobuf'
|
|
5
5
|
|
6
6
|
require 'google/protobuf/timestamp_pb'
|
7
7
|
require 'internal/module/modshared/modshared_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.modshared.AgentMeta"
|
12
|
-
optional :connected_at, :message, 2, "google.protobuf.Timestamp"
|
13
|
-
optional :connection_id, :int64, 3
|
14
|
-
optional :agent_id, :int64, 4
|
15
|
-
optional :project_id, :int64, 5
|
12
|
+
optional :agent_meta, :message, 1, "gitlab.agent.modshared.AgentMeta", json_name: "agent_meta"
|
13
|
+
optional :connected_at, :message, 2, "google.protobuf.Timestamp", json_name: "connected_at"
|
14
|
+
optional :connection_id, :int64, 3, json_name: "connection_id"
|
15
|
+
optional :agent_id, :int64, 4, json_name: "agent_id"
|
16
|
+
optional :project_id, :int64, 5, json_name: "project_id"
|
16
17
|
end
|
17
18
|
end
|
18
19
|
end
|
@@ -4,16 +4,18 @@
|
|
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
|
10
12
|
oneof :request do
|
11
|
-
optional :project_id, :int64, 1
|
12
|
-
optional :agent_id, :int64, 2
|
13
|
+
optional :project_id, :int64, 1, json_name: "projectId"
|
14
|
+
optional :agent_id, :int64, 2, json_name: "agentId"
|
13
15
|
end
|
14
16
|
end
|
15
17
|
add_message "gitlab.agent.agent_tracker.rpc.GetConnectedAgentsResponse" do
|
16
|
-
repeated :agents, :message, 1, "gitlab.agent.agent_tracker.ConnectedAgentInfo"
|
18
|
+
repeated :agents, :message, 1, "gitlab.agent.agent_tracker.ConnectedAgentInfo", json_name: "agents"
|
17
19
|
end
|
18
20
|
end
|
19
21
|
end
|
@@ -3,19 +3,22 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
+
require 'validate/validate_pb'
|
6
7
|
require 'internal/module/modserver/modserver_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.modserver.Repository"
|
11
|
-
optional :gitaly_address, :message, 2, "gitlab.agent.modserver.GitalyAddress"
|
12
|
+
optional :repository, :message, 1, "gitlab.agent.modserver.Repository", json_name: "repository"
|
13
|
+
optional :gitaly_address, :message, 2, "gitlab.agent.modserver.GitalyAddress", json_name: "gitalyAddress"
|
14
|
+
optional :default_branch, :string, 3, json_name: "defaultBranch"
|
12
15
|
end
|
13
16
|
add_message "gitlab.agent.configuration_project.rpc.ListAgentConfigFilesResponse" do
|
14
|
-
repeated :config_files, :message, 1, "gitlab.agent.configuration_project.rpc.AgentConfigFile"
|
17
|
+
repeated :config_files, :message, 1, "gitlab.agent.configuration_project.rpc.AgentConfigFile", json_name: "config_files"
|
15
18
|
end
|
16
19
|
add_message "gitlab.agent.configuration_project.rpc.AgentConfigFile" do
|
17
|
-
optional :name, :string, 1
|
18
|
-
optional :agent_name, :string, 2
|
20
|
+
optional :name, :string, 1, json_name: "name"
|
21
|
+
optional :agent_name, :string, 2, json_name: "agent_name"
|
19
22
|
end
|
20
23
|
end
|
21
24
|
end
|
@@ -6,16 +6,16 @@ require 'google/protobuf'
|
|
6
6
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
7
|
add_file("internal/module/modserver/modserver.proto", :syntax => :proto3) do
|
8
8
|
add_message "gitlab.agent.modserver.Repository" do
|
9
|
-
optional :storage_name, :string, 2
|
10
|
-
optional :relative_path, :string, 3
|
11
|
-
optional :git_object_directory, :string, 4
|
12
|
-
repeated :git_alternate_object_directories, :string, 5
|
13
|
-
optional :gl_repository, :string, 6
|
14
|
-
optional :gl_project_path, :string, 8
|
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
15
|
end
|
16
16
|
add_message "gitlab.agent.modserver.GitalyAddress" do
|
17
|
-
optional :address, :string, 1
|
18
|
-
optional :token, :string, 2
|
17
|
+
optional :address, :string, 1, json_name: "address"
|
18
|
+
optional :token, :string, 2, json_name: "token"
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
@@ -6,10 +6,10 @@ require 'google/protobuf'
|
|
6
6
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
7
|
add_file("internal/module/modshared/modshared.proto", :syntax => :proto3) do
|
8
8
|
add_message "gitlab.agent.modshared.AgentMeta" do
|
9
|
-
optional :version, :string, 1
|
10
|
-
optional :commit_id, :string, 2
|
11
|
-
optional :pod_namespace, :string, 3
|
12
|
-
optional :pod_name, :string, 4
|
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
13
|
end
|
14
14
|
end
|
15
15
|
end
|
@@ -0,0 +1,32 @@
|
|
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
|
+
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("internal/module/notifications/rpc/rpc.proto", :syntax => :proto3) do
|
10
|
+
add_message "gitlab.agent.notifications.rpc.GitPushEventRequest" do
|
11
|
+
optional :project, :message, 1, "gitlab.agent.notifications.rpc.Project", json_name: "project"
|
12
|
+
end
|
13
|
+
add_message "gitlab.agent.notifications.rpc.Project" do
|
14
|
+
optional :id, :int64, 1, json_name: "id"
|
15
|
+
optional :full_path, :string, 2, json_name: "fullPath"
|
16
|
+
end
|
17
|
+
add_message "gitlab.agent.notifications.rpc.GitPushEventResponse" do
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
module Gitlab
|
23
|
+
module Agent
|
24
|
+
module Notifications
|
25
|
+
module Rpc
|
26
|
+
GitPushEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.notifications.rpc.GitPushEventRequest").msgclass
|
27
|
+
Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.notifications.rpc.Project").msgclass
|
28
|
+
GitPushEventResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.notifications.rpc.GitPushEventResponse").msgclass
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
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 @@
|
|
1
|
+
# Empty file to satisfy generated imports in sibling files.
|
metadata
CHANGED
@@ -1,14 +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.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiger Watson
|
8
|
+
- Hordur Freyr Yngvason
|
9
|
+
- Timo Furrer
|
8
10
|
autorequire:
|
9
11
|
bindir: bin
|
10
12
|
cert_chain: []
|
11
|
-
date:
|
13
|
+
date: 2023-04-28 00:00:00.000000000 Z
|
12
14
|
dependencies:
|
13
15
|
- !ruby/object:Gem::Dependency
|
14
16
|
name: grpc
|
@@ -27,6 +29,8 @@ dependencies:
|
|
27
29
|
description:
|
28
30
|
email:
|
29
31
|
- twatson@gitlab.com
|
32
|
+
- hfyngvason@gitlab.com
|
33
|
+
- tfurrer@gitlab.com
|
30
34
|
executables: []
|
31
35
|
extensions: []
|
32
36
|
extra_rdoc_files: []
|
@@ -38,7 +42,10 @@ files:
|
|
38
42
|
- lib/internal/module/configuration_project/rpc/rpc_services_pb.rb
|
39
43
|
- lib/internal/module/modserver/modserver_pb.rb
|
40
44
|
- lib/internal/module/modshared/modshared_pb.rb
|
45
|
+
- lib/internal/module/notifications/rpc/rpc_pb.rb
|
46
|
+
- lib/internal/module/notifications/rpc/rpc_services_pb.rb
|
41
47
|
- lib/kas-grpc.rb
|
48
|
+
- lib/validate/validate_pb.rb
|
42
49
|
homepage: https://gitlab.com/gitlab-org/cluster-integration/gitlab-agent
|
43
50
|
licenses:
|
44
51
|
- MIT
|
@@ -58,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
65
|
- !ruby/object:Gem::Version
|
59
66
|
version: '0'
|
60
67
|
requirements: []
|
61
|
-
rubygems_version: 3.
|
68
|
+
rubygems_version: 3.2.33
|
62
69
|
signing_key:
|
63
70
|
specification_version: 4
|
64
71
|
summary: Auto-generated gRPC client for KAS
|