kas-grpc 0.1.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d98189041e9a06f670781ea0e17f378cbd43afbdfae8f7cf4594f267abf1e47c
4
- data.tar.gz: a00efbf02a7188961f3f566f826e8197264963aa22c4f33020ebddac4a78f9ce
3
+ metadata.gz: a592b87c2d89ef66688757dc7b1e9dbaebfc0db222f160eaf333758ad51aa493
4
+ data.tar.gz: cc6ff302ca3aff5eaae8931562d9068b722e67fab49cdf32d9c57a66b914b1b7
5
5
  SHA512:
6
- metadata.gz: b0bb9d844adeb02fc37c70f687b72af750acc52a693358f6176f3be53dab28a111d7a390ddefae9e830e9abecd86f3eecd2d7dbb4c671769a06d2450d053f763
7
- data.tar.gz: d100345cf1102fa38796112640d63106716efa6bad47e051e45158607e50ed5ec9e79aa72987d814e804d34bf15c035dc72936568d293357893223fb68cd7ea8
6
+ metadata.gz: 25a6ecb385db7ef8e5d9c7f1c10387d38bd2bda27d3e1d5ca006d0535035f4007737fd6f23bd9676b30f182509ebf3238e410c47072df6c909b0b69b64ab8d7b
7
+ data.tar.gz: 44a1ccff9fb4d6e484151b66e7e445a8d2e9a7158bf381d667ae75c689f222213878c9542406bf5f4658833e4c9b3c5e1703b927c3880a9953c8c897793d1872
@@ -4,12 +4,12 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  require 'google/protobuf/timestamp_pb'
7
- require 'internal/module/modshared/modshared_pb'
7
+ require 'pkg/entity/entity_pb'
8
8
 
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("internal/module/agent_tracker/agent_tracker.proto", :syntax => :proto3) do
11
11
  add_message "gitlab.agent.agent_tracker.ConnectedAgentInfo" do
12
- optional :agent_meta, :message, 1, "gitlab.agent.modshared.AgentMeta", json_name: "agent_meta"
12
+ optional :agent_meta, :message, 1, "gitlab.agent.entity.AgentMeta", json_name: "agent_meta"
13
13
  optional :connected_at, :message, 2, "google.protobuf.Timestamp", json_name: "connected_at"
14
14
  optional :connection_id, :int64, 3, json_name: "connection_id"
15
15
  optional :agent_id, :int64, 4, json_name: "agent_id"
@@ -14,9 +14,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
14
14
  optional :agent_id, :int64, 2, json_name: "agentId"
15
15
  end
16
16
  end
17
+ add_message "gitlab.agent.agent_tracker.rpc.GetConnectedAgentsByProjectIdsRequest" do
18
+ repeated :project_ids, :int64, 1, json_name: "projectIds"
19
+ end
20
+ add_message "gitlab.agent.agent_tracker.rpc.GetConnectedAgentsByAgentIdsRequest" do
21
+ repeated :agent_ids, :int64, 1, json_name: "agentIds"
22
+ end
17
23
  add_message "gitlab.agent.agent_tracker.rpc.GetConnectedAgentsResponse" do
18
24
  repeated :agents, :message, 1, "gitlab.agent.agent_tracker.ConnectedAgentInfo", json_name: "agents"
19
25
  end
26
+ add_message "gitlab.agent.agent_tracker.rpc.GetConnectedAgentsByProjectIdsResponse" do
27
+ repeated :agents, :message, 1, "gitlab.agent.agent_tracker.ConnectedAgentInfo", json_name: "agents"
28
+ end
29
+ add_message "gitlab.agent.agent_tracker.rpc.GetConnectedAgentsByAgentIdsResponse" do
30
+ repeated :agents, :message, 1, "gitlab.agent.agent_tracker.ConnectedAgentInfo", json_name: "agents"
31
+ end
20
32
  end
21
33
  end
22
34
 
@@ -25,7 +37,11 @@ module Gitlab
25
37
  module AgentTracker
26
38
  module Rpc
27
39
  GetConnectedAgentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.agent_tracker.rpc.GetConnectedAgentsRequest").msgclass
40
+ GetConnectedAgentsByProjectIdsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.agent_tracker.rpc.GetConnectedAgentsByProjectIdsRequest").msgclass
41
+ GetConnectedAgentsByAgentIdsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.agent_tracker.rpc.GetConnectedAgentsByAgentIdsRequest").msgclass
28
42
  GetConnectedAgentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.agent_tracker.rpc.GetConnectedAgentsResponse").msgclass
43
+ GetConnectedAgentsByProjectIdsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.agent_tracker.rpc.GetConnectedAgentsByProjectIdsResponse").msgclass
44
+ GetConnectedAgentsByAgentIdsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.agent_tracker.rpc.GetConnectedAgentsByAgentIdsResponse").msgclass
29
45
  end
30
46
  end
31
47
  end
@@ -18,6 +18,8 @@ module Gitlab
18
18
  self.service_name = 'gitlab.agent.agent_tracker.rpc.AgentTracker'
19
19
 
20
20
  rpc :GetConnectedAgents, ::Gitlab::Agent::AgentTracker::Rpc::GetConnectedAgentsRequest, ::Gitlab::Agent::AgentTracker::Rpc::GetConnectedAgentsResponse
21
+ rpc :GetConnectedAgentsByProjectIds, ::Gitlab::Agent::AgentTracker::Rpc::GetConnectedAgentsByProjectIdsRequest, ::Gitlab::Agent::AgentTracker::Rpc::GetConnectedAgentsByProjectIdsResponse
22
+ rpc :GetConnectedAgentsByAgentIds, ::Gitlab::Agent::AgentTracker::Rpc::GetConnectedAgentsByAgentIdsRequest, ::Gitlab::Agent::AgentTracker::Rpc::GetConnectedAgentsByAgentIdsResponse
21
23
  end
22
24
 
23
25
  Stub = Service.rpc_stub_class
@@ -4,13 +4,13 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  require 'validate/validate_pb'
7
- require 'internal/module/modserver/modserver_pb'
7
+ require 'pkg/entity/entity_pb'
8
8
 
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("internal/module/configuration_project/rpc/rpc.proto", :syntax => :proto3) do
11
11
  add_message "gitlab.agent.configuration_project.rpc.ListAgentConfigFilesRequest" do
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"
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"
14
14
  optional :default_branch, :string, 3, json_name: "defaultBranch"
15
15
  end
16
16
  add_message "gitlab.agent.configuration_project.rpc.ListAgentConfigFilesResponse" do
@@ -4,15 +4,12 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  require 'validate/validate_pb'
7
+ require 'pkg/event/event_pb'
7
8
 
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("internal/module/notifications/rpc/rpc.proto", :syntax => :proto3) do
10
11
  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"
12
+ optional :event, :message, 1, "gitlab.agent.event.GitPushEvent", json_name: "event"
16
13
  end
17
14
  add_message "gitlab.agent.notifications.rpc.GitPushEventResponse" do
18
15
  end
@@ -24,7 +21,6 @@ module Gitlab
24
21
  module Notifications
25
22
  module Rpc
26
23
  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
24
  GitPushEventResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.notifications.rpc.GitPushEventResponse").msgclass
29
25
  end
30
26
  end
@@ -0,0 +1,48 @@
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
+ 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
38
+
39
+ module Gitlab
40
+ module Agent
41
+ module Entity
42
+ AgentMeta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.entity.AgentMeta").msgclass
43
+ KubernetesVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.entity.KubernetesVersion").msgclass
44
+ GitalyInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.entity.GitalyInfo").msgclass
45
+ GitalyRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.agent.entity.GitalyRepository").msgclass
46
+ end
47
+ end
48
+ 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
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kas-grpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiger Watson
8
- - Hordur Freyr Yngvason
9
8
  - Timo Furrer
9
+ - Taka Nishida
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-04-28 00:00:00.000000000 Z
13
+ date: 2023-11-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: grpc
@@ -29,8 +29,8 @@ dependencies:
29
29
  description:
30
30
  email:
31
31
  - twatson@gitlab.com
32
- - hfyngvason@gitlab.com
33
32
  - tfurrer@gitlab.com
33
+ - tnishida@gitlab.com
34
34
  executables: []
35
35
  extensions: []
36
36
  extra_rdoc_files: []
@@ -40,11 +40,11 @@ files:
40
40
  - lib/internal/module/agent_tracker/rpc/rpc_services_pb.rb
41
41
  - lib/internal/module/configuration_project/rpc/rpc_pb.rb
42
42
  - lib/internal/module/configuration_project/rpc/rpc_services_pb.rb
43
- - lib/internal/module/modserver/modserver_pb.rb
44
- - lib/internal/module/modshared/modshared_pb.rb
45
43
  - lib/internal/module/notifications/rpc/rpc_pb.rb
46
44
  - lib/internal/module/notifications/rpc/rpc_services_pb.rb
47
45
  - lib/kas-grpc.rb
46
+ - lib/pkg/entity/entity_pb.rb
47
+ - lib/pkg/event/event_pb.rb
48
48
  - lib/validate/validate_pb.rb
49
49
  homepage: https://gitlab.com/gitlab-org/cluster-integration/gitlab-agent
50
50
  licenses:
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  requirements: []
68
- rubygems_version: 3.2.33
68
+ rubygems_version: 3.4.10
69
69
  signing_key:
70
70
  specification_version: 4
71
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