kas-grpc 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/buf/validate/validate_pb.rb +16 -0
- data/lib/internal/module/agent_tracker/agent_tracker_pb.rb +8 -15
- data/lib/internal/module/agent_tracker/rpc/rpc_pb.rb +6 -22
- data/lib/internal/module/autoflow/rpc/rpc_pb.rb +25 -0
- data/lib/internal/module/autoflow/rpc/rpc_services_pb.rb +28 -0
- data/lib/internal/module/configuration_project/rpc/rpc_pb.rb +7 -17
- data/lib/internal/module/notifications/rpc/rpc_pb.rb +7 -10
- data/lib/internal/module/server_info/rpc/rpc_pb.rb +25 -0
- data/lib/internal/module/server_info/rpc/rpc_services_pb.rb +28 -0
- data/lib/internal/module/server_info/server_info_pb.rb +19 -0
- data/lib/kas-grpc.rb +2 -0
- data/lib/pkg/entity/entity_pb.rb +7 -31
- data/lib/pkg/event/event_pb.rb +11 -12
- metadata +9 -4
- data/lib/validate/validate_pb.rb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b13bc2b123629eba459ca4bb985c583fe3f592074a672b18d8b62f8cd8d825d5
|
4
|
+
data.tar.gz: 23f17c9211ed344061680ef57a5091a329d40c1b52a95e37f77245cf7f695b9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91f23033eed635d72348e33276051295db045a6043582c6fc5df4ba4e3d2f69889beb7da291d415350daa8f3e5f9aa4b70e939bd3426aeb3771b815d11885213
|
7
|
+
data.tar.gz: a768445d64d90a3887eedae368a88da8a53753794f2f4040bc9ccf15185ef29a6328ed506bf89c8c0880e11d52cd4d5c9458e625372e303b5253800492467c18
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: buf/validate/validate.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
|
8
|
+
descriptor_data = "\n\x1b\x62uf/validate/validate.proto\x12\x0c\x62uf.validateb\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
pool.add_serialized_file(descriptor_data)
|
12
|
+
|
13
|
+
module Buf
|
14
|
+
module Validate
|
15
|
+
end
|
16
|
+
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: internal/module/agent_tracker/agent_tracker.proto
|
3
4
|
|
@@ -5,27 +6,19 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'google/protobuf/timestamp_pb'
|
7
8
|
require 'pkg/entity/entity_pb'
|
9
|
+
require 'buf/validate/validate_pb'
|
8
10
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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"
|
17
|
-
end
|
18
|
-
add_message "gitlab.agent.agent_tracker.AgentPodInfo" do
|
19
|
-
optional :agent_id, :int64, 1, json_name: "agent_id"
|
20
|
-
optional :pod_id, :int64, 2, json_name: "pod_id"
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
11
|
+
|
12
|
+
descriptor_data = "\n1internal/module/agent_tracker/agent_tracker.proto\x12\x1agitlab.agent.agent_tracker\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17pkg/entity/entity.proto\x1a\x1b\x62uf/validate/validate.proto\"\x88\x02\n\x12\x43onnectedAgentInfo\x12\x46\n\nagent_meta\x18\x01 \x01(\x0b\x32\x1e.gitlab.agent.entity.AgentMetaB\x06\xbaH\x03\xc8\x01\x01R\nagent_meta\x12H\n\x0c\x63onnected_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xbaH\x05\xb2\x01\x02*\x00R\x0c\x63onnected_at\x12$\n\rconnection_id\x18\x03 \x01(\x03R\rconnection_id\x12\x1a\n\x08\x61gent_id\x18\x04 \x01(\x03R\x08\x61gent_id\x12\x1e\n\nproject_id\x18\x05 \x01(\x03R\nproject_id\"\xb7\x01\n\x13\x44isconnectAgentInfo\x12>\n\nagent_meta\x18\x01 \x01(\x0b\x32\x1e.gitlab.agent.entity.AgentMetaR\nagent_meta\x12$\n\rconnection_id\x18\x02 \x01(\x03R\rconnection_id\x12\x1a\n\x08\x61gent_id\x18\x03 \x01(\x03R\x08\x61gent_id\x12\x1e\n\nproject_id\x18\x04 \x01(\x03R\nproject_id\"B\n\x0c\x41gentPodInfo\x12\x1a\n\x08\x61gent_id\x18\x01 \x01(\x03R\x08\x61gent_id\x12\x16\n\x06pod_id\x18\x02 \x01(\x03R\x06pod_idBZZXgitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/internal/module/agent_trackerb\x06proto3"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
24
16
|
|
25
17
|
module Gitlab
|
26
18
|
module Agent
|
27
19
|
module AgentTracker
|
28
20
|
ConnectedAgentInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.agent_tracker.ConnectedAgentInfo").msgclass
|
21
|
+
DisconnectAgentInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.agent_tracker.DisconnectAgentInfo").msgclass
|
29
22
|
AgentPodInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.agent_tracker.AgentPodInfo").msgclass
|
30
23
|
end
|
31
24
|
end
|
@@ -1,32 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: internal/module/agent_tracker/rpc/rpc.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
7
|
require 'internal/module/agent_tracker/agent_tracker_pb'
|
7
|
-
require 'validate/validate_pb'
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
add_message "gitlab.agent.agent_tracker.rpc.GetConnectedAgentsByAgentIDsRequest" do
|
15
|
-
repeated :agent_ids, :int64, 1, json_name: "agentIds"
|
16
|
-
end
|
17
|
-
add_message "gitlab.agent.agent_tracker.rpc.GetConnectedAgentsByProjectIDsResponse" do
|
18
|
-
repeated :agents, :message, 1, "gitlab.agent.agent_tracker.ConnectedAgentInfo", json_name: "agents"
|
19
|
-
end
|
20
|
-
add_message "gitlab.agent.agent_tracker.rpc.GetConnectedAgentsByAgentIDsResponse" do
|
21
|
-
repeated :agents, :message, 1, "gitlab.agent.agent_tracker.ConnectedAgentInfo", json_name: "agents"
|
22
|
-
end
|
23
|
-
add_message "gitlab.agent.agent_tracker.rpc.CountAgentsByAgentVersionsRequest" do
|
24
|
-
end
|
25
|
-
add_message "gitlab.agent.agent_tracker.rpc.CountAgentsByAgentVersionsResponse" do
|
26
|
-
map :agent_versions, :string, :int64, 1
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
9
|
+
|
10
|
+
descriptor_data = "\n+internal/module/agent_tracker/rpc/rpc.proto\x12\x1egitlab.agent.agent_tracker.rpc\x1a\x31internal/module/agent_tracker/agent_tracker.proto\"H\n%GetConnectedAgentsByProjectIDsRequest\x12\x1f\n\x0bproject_ids\x18\x01 \x03(\x03R\nprojectIds\"B\n#GetConnectedAgentsByAgentIDsRequest\x12\x1b\n\tagent_ids\x18\x01 \x03(\x03R\x08\x61gentIds\"p\n&GetConnectedAgentsByProjectIDsResponse\x12\x46\n\x06\x61gents\x18\x01 \x03(\x0b\x32..gitlab.agent.agent_tracker.ConnectedAgentInfoR\x06\x61gents\"n\n$GetConnectedAgentsByAgentIDsResponse\x12\x46\n\x06\x61gents\x18\x01 \x03(\x0b\x32..gitlab.agent.agent_tracker.ConnectedAgentInfoR\x06\x61gents\"#\n!CountAgentsByAgentVersionsRequest\"\xe4\x01\n\"CountAgentsByAgentVersionsResponse\x12|\n\x0e\x61gent_versions\x18\x01 \x03(\x0b\x32U.gitlab.agent.agent_tracker.rpc.CountAgentsByAgentVersionsResponse.AgentVersionsEntryR\ragentVersions\x1a@\n\x12\x41gentVersionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x03R\x05value:\x02\x38\x01\x32\x98\x04\n\x0c\x41gentTracker\x12\xb1\x01\n\x1eGetConnectedAgentsByProjectIDs\x12\x45.gitlab.agent.agent_tracker.rpc.GetConnectedAgentsByProjectIDsRequest\x1a\x46.gitlab.agent.agent_tracker.rpc.GetConnectedAgentsByProjectIDsResponse\"\x00\x12\xab\x01\n\x1cGetConnectedAgentsByAgentIDs\x12\x43.gitlab.agent.agent_tracker.rpc.GetConnectedAgentsByAgentIDsRequest\x1a\x44.gitlab.agent.agent_tracker.rpc.GetConnectedAgentsByAgentIDsResponse\"\x00\x12\xa5\x01\n\x1a\x43ountAgentsByAgentVersions\x12\x41.gitlab.agent.agent_tracker.rpc.CountAgentsByAgentVersionsRequest\x1a\x42.gitlab.agent.agent_tracker.rpc.CountAgentsByAgentVersionsResponse\"\x00\x42^Z\\gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/internal/module/agent_tracker/rpcb\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
30
14
|
|
31
15
|
module Gitlab
|
32
16
|
module Agent
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: internal/module/autoflow/rpc/rpc.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'buf/validate/validate_pb'
|
8
|
+
require 'pkg/event/event_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n&internal/module/autoflow/rpc/rpc.proto\x12\x19gitlab.agent.autoflow.rpc\x1a\x1b\x62uf/validate/validate.proto\x1a\x15pkg/event/event.proto\"\x99\x01\n\x11\x43loudEventRequest\x12<\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1e.gitlab.agent.event.CloudEventB\x06\xbaH\x03\xc8\x01\x01R\x05\x65vent\x12\x46\n\x0c\x66low_project\x18\x02 \x01(\x0b\x32\x1b.gitlab.agent.event.ProjectB\x06\xbaH\x03\xc8\x01\x01R\x0b\x66lowProject\"\x14\n\x12\x43loudEventResponse2w\n\x08\x41utoFlow\x12k\n\nCloudEvent\x12,.gitlab.agent.autoflow.rpc.CloudEventRequest\x1a-.gitlab.agent.autoflow.rpc.CloudEventResponse\"\x00\x42xZWgitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/internal/module/autoflow/rpc\xea\x02\x1cGitlab::Agent::AutoFlow::Rpcb\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
15
|
+
|
16
|
+
module Gitlab
|
17
|
+
module Agent
|
18
|
+
module AutoFlow
|
19
|
+
module Rpc
|
20
|
+
CloudEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.autoflow.rpc.CloudEventRequest").msgclass
|
21
|
+
CloudEventResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.autoflow.rpc.CloudEventResponse").msgclass
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: internal/module/autoflow/rpc/rpc.proto for package 'Gitlab.Agent.AutoFlow.Rpc'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'internal/module/autoflow/rpc/rpc_pb'
|
6
|
+
|
7
|
+
module Gitlab
|
8
|
+
module Agent
|
9
|
+
module AutoFlow
|
10
|
+
module Rpc
|
11
|
+
module AutoFlow
|
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.autoflow.rpc.AutoFlow'
|
19
|
+
|
20
|
+
rpc :CloudEvent, ::Gitlab::Agent::AutoFlow::Rpc::CloudEventRequest, ::Gitlab::Agent::AutoFlow::Rpc::CloudEventResponse
|
21
|
+
end
|
22
|
+
|
23
|
+
Stub = Service.rpc_stub_class
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -1,27 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: internal/module/configuration_project/rpc/rpc.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'validate/validate_pb'
|
7
|
+
require 'buf/validate/validate_pb'
|
7
8
|
require 'pkg/entity/entity_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
optional :default_branch, :string, 3, json_name: "defaultBranch"
|
15
|
-
end
|
16
|
-
add_message "gitlab.agent.configuration_project.rpc.ListAgentConfigFilesResponse" do
|
17
|
-
repeated :config_files, :message, 1, "gitlab.agent.configuration_project.rpc.AgentConfigFile", json_name: "config_files"
|
18
|
-
end
|
19
|
-
add_message "gitlab.agent.configuration_project.rpc.AgentConfigFile" do
|
20
|
-
optional :name, :string, 1, json_name: "name"
|
21
|
-
optional :agent_name, :string, 2, json_name: "agent_name"
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
10
|
+
|
11
|
+
descriptor_data = "\n3internal/module/configuration_project/rpc/rpc.proto\x12&gitlab.agent.configuration_project.rpc\x1a\x1b\x62uf/validate/validate.proto\x1a\x17pkg/entity/entity.proto\"\xdd\x01\n\x1bListAgentConfigFilesRequest\x12M\n\nrepository\x18\x01 \x01(\x0b\x32%.gitlab.agent.entity.GitalyRepositoryB\x06\xbaH\x03\xc8\x01\x01R\nrepository\x12H\n\x0bgitaly_info\x18\x02 \x01(\x0b\x32\x1f.gitlab.agent.entity.GitalyInfoB\x06\xbaH\x03\xc8\x01\x01R\ngitalyInfo\x12%\n\x0e\x64\x65\x66\x61ult_branch\x18\x03 \x01(\tR\rdefaultBranch\"{\n\x1cListAgentConfigFilesResponse\x12[\n\x0c\x63onfig_files\x18\x01 \x03(\x0b\x32\x37.gitlab.agent.configuration_project.rpc.AgentConfigFileR\x0c\x63onfig_files\"E\n\x0f\x41gentConfigFile\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1e\n\nagent_name\x18\x02 \x01(\tR\nagent_name2\xbc\x01\n\x14\x43onfigurationProject\x12\xa3\x01\n\x14ListAgentConfigFiles\x12\x43.gitlab.agent.configuration_project.rpc.ListAgentConfigFilesRequest\x1a\x44.gitlab.agent.configuration_project.rpc.ListAgentConfigFilesResponse\"\x00\x42\x66Zdgitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/internal/module/configuration_project/rpcb\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
25
15
|
|
26
16
|
module Gitlab
|
27
17
|
module Agent
|
@@ -1,20 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: internal/module/notifications/rpc/rpc.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'validate/validate_pb'
|
7
|
+
require 'buf/validate/validate_pb'
|
7
8
|
require 'pkg/event/event_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
add_message "gitlab.agent.notifications.rpc.GitPushEventResponse" do
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
10
|
+
|
11
|
+
descriptor_data = "\n+internal/module/notifications/rpc/rpc.proto\x12\x1egitlab.agent.notifications.rpc\x1a\x1b\x62uf/validate/validate.proto\x1a\x15pkg/event/event.proto\"U\n\x13GitPushEventRequest\x12>\n\x05\x65vent\x18\x01 \x01(\x0b\x32 .gitlab.agent.event.GitPushEventB\x06\xbaH\x03\xc8\x01\x01R\x05\x65vent\"\x16\n\x14GitPushEventResponse2\x8c\x01\n\rNotifications\x12{\n\x0cGitPushEvent\x12\x33.gitlab.agent.notifications.rpc.GitPushEventRequest\x1a\x34.gitlab.agent.notifications.rpc.GitPushEventResponse\"\x00\x42^Z\\gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/internal/module/notifications/rpcb\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
18
15
|
|
19
16
|
module Gitlab
|
20
17
|
module Agent
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: internal/module/server_info/rpc/rpc.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'internal/module/server_info/server_info_pb'
|
8
|
+
require 'buf/validate/validate_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n)internal/module/server_info/rpc/rpc.proto\x12\x1cgitlab.agent.server_info.rpc\x1a-internal/module/server_info/server_info.proto\x1a\x1b\x62uf/validate/validate.proto\"\x16\n\x14GetServerInfoRequest\"w\n\x15GetServerInfoResponse\x12^\n\x13\x63urrent_server_info\x18\x01 \x01(\x0b\x32$.gitlab.agent.server_info.ServerInfoB\x06\xbaH\x03\xc8\x01\x01R\x13\x63urrent_server_info2\x88\x01\n\nServerInfo\x12z\n\rGetServerInfo\x12\x32.gitlab.agent.server_info.rpc.GetServerInfoRequest\x1a\x33.gitlab.agent.server_info.rpc.GetServerInfoResponse\"\x00\x42\\ZZgitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/internal/module/server_info/rpcb\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
15
|
+
|
16
|
+
module Gitlab
|
17
|
+
module Agent
|
18
|
+
module ServerInfo
|
19
|
+
module Rpc
|
20
|
+
GetServerInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.server_info.rpc.GetServerInfoRequest").msgclass
|
21
|
+
GetServerInfoResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.server_info.rpc.GetServerInfoResponse").msgclass
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: internal/module/server_info/rpc/rpc.proto for package 'gitlab.agent.server_info.rpc'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'internal/module/server_info/rpc/rpc_pb'
|
6
|
+
|
7
|
+
module Gitlab
|
8
|
+
module Agent
|
9
|
+
module ServerInfo
|
10
|
+
module Rpc
|
11
|
+
module ServerInfo
|
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.server_info.rpc.ServerInfo'
|
19
|
+
|
20
|
+
rpc :GetServerInfo, ::Gitlab::Agent::ServerInfo::Rpc::GetServerInfoRequest, ::Gitlab::Agent::ServerInfo::Rpc::GetServerInfoResponse
|
21
|
+
end
|
22
|
+
|
23
|
+
Stub = Service.rpc_stub_class
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: internal/module/server_info/server_info.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
|
8
|
+
descriptor_data = "\n-internal/module/server_info/server_info.proto\x12\x18gitlab.agent.server_info\"@\n\nServerInfo\x12\x18\n\x07version\x18\x01 \x01(\tR\x07version\x12\x18\n\x07git_ref\x18\x02 \x01(\tR\x07git_refBXZVgitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/internal/module/server_infob\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
pool.add_serialized_file(descriptor_data)
|
12
|
+
|
13
|
+
module Gitlab
|
14
|
+
module Agent
|
15
|
+
module ServerInfo
|
16
|
+
ServerInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.server_info.ServerInfo").msgclass
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/kas-grpc.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'internal/module/server_info/rpc/rpc_services_pb'
|
1
2
|
require 'internal/module/agent_tracker/rpc/rpc_services_pb'
|
2
3
|
require 'internal/module/configuration_project/rpc/rpc_services_pb'
|
4
|
+
require 'internal/module/autoflow/rpc/rpc_services_pb'
|
3
5
|
require 'internal/module/notifications/rpc/rpc_services_pb'
|
data/lib/pkg/entity/entity_pb.rb
CHANGED
@@ -1,40 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: pkg/entity/entity.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'validate/validate_pb'
|
7
|
+
require 'buf/validate/validate_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
optional :pod_namespace, :string, 3, json_name: "pod_namespace"
|
14
|
-
optional :pod_name, :string, 4, json_name: "pod_name"
|
15
|
-
optional :kubernetes_version, :message, 5, "gitlab.agent.entity.KubernetesVersion", json_name: "kubernetes_version"
|
16
|
-
end
|
17
|
-
add_message "gitlab.agent.entity.KubernetesVersion" do
|
18
|
-
optional :major, :string, 1, json_name: "major"
|
19
|
-
optional :minor, :string, 2, json_name: "minor"
|
20
|
-
optional :git_version, :string, 3, json_name: "git_version"
|
21
|
-
optional :platform, :string, 4, json_name: "platform"
|
22
|
-
end
|
23
|
-
add_message "gitlab.agent.entity.GitalyInfo" do
|
24
|
-
optional :address, :string, 1, json_name: "address"
|
25
|
-
optional :token, :string, 2, json_name: "token"
|
26
|
-
map :features, :string, :string, 3
|
27
|
-
end
|
28
|
-
add_message "gitlab.agent.entity.GitalyRepository" do
|
29
|
-
optional :storage_name, :string, 2, json_name: "storage_name"
|
30
|
-
optional :relative_path, :string, 3, json_name: "relative_path"
|
31
|
-
optional :git_object_directory, :string, 4, json_name: "git_object_directory"
|
32
|
-
repeated :git_alternate_object_directories, :string, 5, json_name: "git_alternate_object_directories"
|
33
|
-
optional :gl_repository, :string, 6, json_name: "gl_repository"
|
34
|
-
optional :gl_project_path, :string, 8, json_name: "gl_project_path"
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
9
|
+
|
10
|
+
descriptor_data = "\n\x17pkg/entity/entity.proto\x12\x13gitlab.agent.entity\x1a\x1b\x62uf/validate/validate.proto\"\xa9\x02\n\tAgentMeta\x12!\n\x07version\x18\x01 \x01(\tB\x07\xbaH\x04r\x02(2R\x07version\x12(\n\tcommit_id\x18\x02 \x01(\tB\n\x18\x01\xbaH\x05r\x03(\xff\x01R\tcommit_id\x12-\n\rpod_namespace\x18\x03 \x01(\tB\x07\xbaH\x04r\x02(?R\rpod_namespace\x12$\n\x08pod_name\x18\x04 \x01(\tB\x08\xbaH\x05r\x03(\xff\x01R\x08pod_name\x12V\n\x12kubernetes_version\x18\x05 \x01(\x0b\x32&.gitlab.agent.entity.KubernetesVersionR\x12kubernetes_version\x12\"\n\x07git_ref\x18\x06 \x01(\tB\x08\xbaH\x05r\x03(\xff\x01R\x07git_ref\"\xa3\x01\n\x11KubernetesVersion\x12\x1d\n\x05major\x18\x01 \x01(\tB\x07\xbaH\x04r\x02(\x14R\x05major\x12\x1d\n\x05minor\x18\x02 \x01(\tB\x07\xbaH\x04r\x02(\x14R\x05minor\x12*\n\x0bgit_version\x18\x03 \x01(\tB\x08\xbaH\x05r\x03(\xff\x01R\x0bgit_version\x12$\n\x08platform\x18\x04 \x01(\tB\x08\xbaH\x05r\x03(\xff\x01R\x08platform\"\xcd\x01\n\nGitalyInfo\x12!\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x07\xbaH\x04r\x02 \x01R\x07\x61\x64\x64ress\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\x12I\n\x08\x66\x65\x61tures\x18\x03 \x03(\x0b\x32-.gitlab.agent.entity.GitalyInfo.FeaturesEntryR\x08\x66\x65\x61tures\x1a;\n\rFeaturesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xd0\x02\n\x10GitalyRepository\x12+\n\x0cstorage_name\x18\x02 \x01(\tB\x07\xbaH\x04r\x02 \x01R\x0cstorage_name\x12-\n\rrelative_path\x18\x03 \x01(\tB\x07\xbaH\x04r\x02 \x01R\rrelative_path\x12\x32\n\x14git_object_directory\x18\x04 \x01(\tR\x14git_object_directory\x12J\n git_alternate_object_directories\x18\x05 \x03(\tR git_alternate_object_directories\x12-\n\rgl_repository\x18\x06 \x01(\tB\x07\xbaH\x04r\x02 \x01R\rgl_repository\x12\x31\n\x0fgl_project_path\x18\x08 \x01(\tB\x07\xbaH\x04r\x02 \x01R\x0fgl_project_pathBGZEgitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/pkg/entityb\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
38
14
|
|
39
15
|
module Gitlab
|
40
16
|
module Agent
|
data/lib/pkg/event/event_pb.rb
CHANGED
@@ -1,27 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: pkg/event/event.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'validate/validate_pb'
|
7
|
+
require 'buf/validate/validate_pb'
|
8
|
+
require 'google/protobuf/any_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
7
10
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
11
|
+
|
12
|
+
descriptor_data = "\n\x15pkg/event/event.proto\x12\x12gitlab.agent.event\x1a\x1b\x62uf/validate/validate.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"M\n\x0cGitPushEvent\x12=\n\x07project\x18\x01 \x01(\x0b\x32\x1b.gitlab.agent.event.ProjectB\x06\xbaH\x03\xc8\x01\x01R\x07project\"H\n\x07Project\x12\x17\n\x02id\x18\x01 \x01(\x03\x42\x07\xbaH\x04\"\x02 \x00R\x02id\x12$\n\tfull_path\x18\x02 \x01(\tB\x07\xbaH\x04r\x02 \x01R\x08\x66ullPath\"\xd1\x05\n\nCloudEvent\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n\x06source\x18\x02 \x01(\tR\x06source\x12!\n\x0cspec_version\x18\x03 \x01(\tR\x0bspecVersion\x12\x12\n\x04type\x18\x04 \x01(\tR\x04type\x12N\n\nattributes\x18\x05 \x03(\x0b\x32..gitlab.agent.event.CloudEvent.AttributesEntryR\nattributes\x12!\n\x0b\x62inary_data\x18\x06 \x01(\x0cH\x00R\nbinaryData\x12\x1d\n\ttext_data\x18\x07 \x01(\tH\x00R\x08textData\x12\x35\n\nproto_data\x18\x08 \x01(\x0b\x32\x14.google.protobuf.AnyH\x00R\tprotoData\x1av\n\x0f\x41ttributesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12M\n\x05value\x18\x02 \x01(\x0b\x32\x37.gitlab.agent.event.CloudEvent.CloudEventAttributeValueR\x05value:\x02\x38\x01\x1a\x9a\x02\n\x18\x43loudEventAttributeValue\x12\x1f\n\nce_boolean\x18\x01 \x01(\x08H\x00R\tceBoolean\x12\x1f\n\nce_integer\x18\x02 \x01(\x05H\x00R\tceInteger\x12\x1d\n\tce_string\x18\x03 \x01(\tH\x00R\x08\x63\x65String\x12\x1b\n\x08\x63\x65_bytes\x18\x04 \x01(\x0cH\x00R\x07\x63\x65\x42ytes\x12\x17\n\x06\x63\x65_uri\x18\x05 \x01(\tH\x00R\x05\x63\x65Uri\x12\x1e\n\nce_uri_ref\x18\x06 \x01(\tH\x00R\x08\x63\x65UriRef\x12?\n\x0c\x63\x65_timestamp\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\x0b\x63\x65TimestampB\x06\n\x04\x61ttrB\x06\n\x04\x64\x61taBFZDgitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/pkg/eventb\x06proto3"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
19
16
|
|
20
17
|
module Gitlab
|
21
18
|
module Agent
|
22
19
|
module Event
|
23
20
|
GitPushEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.event.GitPushEvent").msgclass
|
24
21
|
Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.event.Project").msgclass
|
22
|
+
CloudEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.event.CloudEvent").msgclass
|
23
|
+
CloudEvent::CloudEventAttributeValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.event.CloudEvent.CloudEventAttributeValue").msgclass
|
25
24
|
end
|
26
25
|
end
|
27
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kas-grpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiger Watson
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-
|
13
|
+
date: 2024-07-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: grpc
|
@@ -35,17 +35,22 @@ executables: []
|
|
35
35
|
extensions: []
|
36
36
|
extra_rdoc_files: []
|
37
37
|
files:
|
38
|
+
- lib/buf/validate/validate_pb.rb
|
38
39
|
- lib/internal/module/agent_tracker/agent_tracker_pb.rb
|
39
40
|
- lib/internal/module/agent_tracker/rpc/rpc_pb.rb
|
40
41
|
- lib/internal/module/agent_tracker/rpc/rpc_services_pb.rb
|
42
|
+
- lib/internal/module/autoflow/rpc/rpc_pb.rb
|
43
|
+
- lib/internal/module/autoflow/rpc/rpc_services_pb.rb
|
41
44
|
- lib/internal/module/configuration_project/rpc/rpc_pb.rb
|
42
45
|
- lib/internal/module/configuration_project/rpc/rpc_services_pb.rb
|
43
46
|
- lib/internal/module/notifications/rpc/rpc_pb.rb
|
44
47
|
- lib/internal/module/notifications/rpc/rpc_services_pb.rb
|
48
|
+
- lib/internal/module/server_info/rpc/rpc_pb.rb
|
49
|
+
- lib/internal/module/server_info/rpc/rpc_services_pb.rb
|
50
|
+
- lib/internal/module/server_info/server_info_pb.rb
|
45
51
|
- lib/kas-grpc.rb
|
46
52
|
- lib/pkg/entity/entity_pb.rb
|
47
53
|
- lib/pkg/event/event_pb.rb
|
48
|
-
- lib/validate/validate_pb.rb
|
49
54
|
homepage: https://gitlab.com/gitlab-org/cluster-integration/gitlab-agent
|
50
55
|
licenses:
|
51
56
|
- MIT
|
@@ -65,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
70
|
- !ruby/object:Gem::Version
|
66
71
|
version: '0'
|
67
72
|
requirements: []
|
68
|
-
rubygems_version: 3.5.
|
73
|
+
rubygems_version: 3.5.16
|
69
74
|
signing_key:
|
70
75
|
specification_version: 4
|
71
76
|
summary: Auto-generated gRPC client for KAS
|
data/lib/validate/validate_pb.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# Empty file to satisfy generated imports in sibling files.
|