trisulrp 3.2.15 → 3.2.16

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
  SHA1:
3
- metadata.gz: 11c8988d3a219d5a7290d0f8a0d15312ac99ec16
4
- data.tar.gz: a5cd3ec64b6f2946683356bc108cd05d16979609
3
+ metadata.gz: 7dd0001eb33023e37e2ddb129ebc500d4dcd4144
4
+ data.tar.gz: e5a776f83fb1a069f7f4e3f417f0a2616ecb826b
5
5
  SHA512:
6
- metadata.gz: 26c2939751ea3b873b2a0d42a0e97552439c536881f1d0192c0e0f457fcc1a4e9e21b634bc8e7eba51fca7dd4c84a2a15668a238fcde32187073cba18baae47b
7
- data.tar.gz: 6ab30ecb6ae6e4a466898bb03931ab2f53811108ba9e3906e6479e4f20b990c7c62098e085222cbb2fcf356aff31a992c43e40236f2e7639f0dbd797602f3629
6
+ metadata.gz: 4983b8338de1f052616dc1f6cdc21db91ec7a364d78a221ea7a11a3a5953213fdf893be84a4bedcb0f9dac47e7003a0264c15830eabefc7935c00937184bcc08
7
+ data.tar.gz: 51285108f33970446f5a3b934402ebadbf47a269144005d193d9ac8f8658d2d9f56f1c4acf2e8ccd03a840fb91b3a85c7cd8cf1009a50678c9bf3874a3bf9bd4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.15
1
+ 3.2.16
@@ -520,6 +520,9 @@ module TrisulRP::Protocol
520
520
  when TRP::Message::Command::GRAPH_REQUEST
521
521
  fix_TRP_Fields( TRP::GraphRequest, params)
522
522
  req.graph_request = TRP::GraphRequest.new(params)
523
+ when TRP::Message::Command::RUNTOOL_REQUEST
524
+ fix_TRP_Fields( TRP::RunToolRequest, params)
525
+ req.run_tool_request = TRP::RunToolRequest.new(params)
523
526
  else
524
527
  raise "Unknown TRP command ID"
525
528
  end
@@ -619,6 +622,8 @@ module TrisulRP::Protocol
619
622
  resp.file_response
620
623
  when TRP::Message::Command::GRAPH_RESPONSE
621
624
  resp.graph_response
625
+ when TRP::Message::Command::RUNTOOL_RESPONSE
626
+ resp.run_tool_response
622
627
  else
623
628
  raise "#{resp.trp_command.to_i} Unknown TRP command ID"
624
629
  end
@@ -165,6 +165,8 @@ module TRP
165
165
  define :GRAPH_RESPONSE, 131
166
166
  define :AGGREGATE_SESSIONS_REQUEST, 132
167
167
  define :AGGREGATE_SESSIONS_RESPONSE, 133
168
+ define :RUNTOOL_REQUEST, 134
169
+ define :RUNTOOL_RESPONSE, 135
168
170
  end
169
171
 
170
172
  end
@@ -283,6 +285,17 @@ module TRP
283
285
  class FileResponse < ::Protobuf::Message; end
284
286
  class GraphRequest < ::Protobuf::Message; end
285
287
  class GraphResponse < ::Protobuf::Message; end
288
+ class RunToolRequest < ::Protobuf::Message
289
+ class NodeTool < ::Protobuf::Enum
290
+ define :PING, 1
291
+ define :DF, 2
292
+ define :GEOQUERY, 3
293
+ define :TOP, 4
294
+ end
295
+
296
+ end
297
+
298
+ class RunToolResponse < ::Protobuf::Message; end
286
299
 
287
300
 
288
301
  ##
@@ -520,6 +533,8 @@ module TRP
520
533
  optional ::TRP::AggregateSessionsResponse, :aggregate_sessions_response, 141
521
534
  optional ::TRP::AggregateResourcesRequest, :aggregate_resources_request, 142
522
535
  optional ::TRP::AggregateResourcesResponse, :aggregate_resources_response, 143
536
+ optional ::TRP::RunToolRequest, :run_tool_request, 144
537
+ optional ::TRP::RunToolResponse, :run_tool_response, 145
523
538
  optional :string, :destination_node, 200
524
539
  optional :string, :probe_id, 201
525
540
  optional :bool, :run_async, 202
@@ -1148,5 +1163,16 @@ module TRP
1148
1163
  repeated ::TRP::EdgeGraphT, :graphs, 3
1149
1164
  end
1150
1165
 
1166
+ class RunToolRequest
1167
+ required :string, :context_name, 1
1168
+ required ::TRP::RunToolRequest::NodeTool, :tool, 2
1169
+ optional :string, :tool_input, 3
1170
+ end
1171
+
1172
+ class RunToolResponse
1173
+ required :string, :context_name, 1
1174
+ optional :string, :tool_output, 2
1175
+ end
1176
+
1151
1177
  end
1152
1178
 
@@ -350,6 +350,8 @@ message Message {
350
350
  GRAPH_RESPONSE=131;
351
351
  AGGREGATE_SESSIONS_REQUEST=132;
352
352
  AGGREGATE_SESSIONS_RESPONSE=133;
353
+ RUNTOOL_REQUEST=134;
354
+ RUNTOOL_RESPONSE=135;
353
355
  }
354
356
 
355
357
  required Command trp_command=1;
@@ -417,6 +419,8 @@ message Message {
417
419
  optional AggregateSessionsResponse aggregate_sessions_response=141;
418
420
  optional AggregateResourcesRequest aggregate_resources_request=142;
419
421
  optional AggregateResourcesResponse aggregate_resources_response=143;
422
+ optional RunToolRequest run_tool_request=144;
423
+ optional RunToolResponse run_tool_response=145;
420
424
  optional string destination_node=200; // todo move 2nd
421
425
  optional string probe_id=201; // todo move 3rd
422
426
  optional bool run_async=202; /// if run_async = true, then you will immediately get a AsynResponse with a token you can poll
@@ -1235,3 +1239,22 @@ message GraphResponse {
1235
1239
  /// repeated because returned in time chunks
1236
1240
  }
1237
1241
 
1242
+ /// RunToolRequest : run set of named tools
1243
+ message RunToolRequest {
1244
+ required string context_name=1; /// if not set all context get in
1245
+ enum NodeTool {
1246
+ PING=1;
1247
+ DF=2;
1248
+ GEOQUERY=3;
1249
+ TOP=4;
1250
+ }
1251
+ required NodeTool tool=2; /// which of these tools you want to run on node
1252
+ optional string tool_input=3; /// input
1253
+ }
1254
+
1255
+ /// RunToolResponse : ouput
1256
+ message RunToolResponse {
1257
+ required string context_name=1; /// if not set all context get in
1258
+ optional string tool_output=2; /// cmd lines
1259
+ }
1260
+
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: trisulrp 3.2.15 ruby lib
5
+ # stub: trisulrp 3.2.16 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "trisulrp"
9
- s.version = "3.2.15"
9
+ s.version = "3.2.16"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["vivek"]
14
- s.date = "2019-04-22"
14
+ s.date = "2019-04-23"
15
15
  s.description = "This gem deals about the trisul remote protocol"
16
16
  s.email = "vivek_rajagopal@yahoo.com"
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trisulrp
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.15
4
+ version: 3.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-22 00:00:00.000000000 Z
11
+ date: 2019-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: protobuf