toolkami 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/toolkami/client.rb +31 -1
- data/lib/toolkami/generated.rb +7 -1
- data/lib/toolkami/v1/common_pb.rb +18 -0
- data/lib/toolkami/v1/core_pb.rb +31 -0
- data/lib/toolkami/v1/image_pb.rb +18 -0
- data/lib/toolkami/v1/instance_pb.rb +24 -0
- data/lib/toolkami/v1/ping_pb.rb +1 -3
- data/lib/toolkami/v1/service_pb.rb +22 -0
- data/lib/toolkami/v1/service_services_pb.rb +31 -0
- data/lib/toolkami/v1/snapshot_pb.rb +23 -0
- data/lib/toolkami/v1/version_pb.rb +18 -0
- data/lib/toolkami/version.rb +1 -1
- metadata +10 -3
- data/lib/toolkami/v1/ping_services_pb.rb +0 -25
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 64639f6ea3dcaaf4b8219a203547c7943b1e3c381f35c61ca92f2e3201cf91b5
|
|
4
|
+
data.tar.gz: 8bfbd595cccc94c18b48d9f39146be1eeba7205eb4f4f4e8f46ae7dbbd6f03cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e1fc05ed56ce38e6e0786d158e7bd9547b4c00dde65e7e6c078fbef195adb68a537468bb16e6df53cbd68f4b5c824c0b1f9c463b620e0f8ef6fda94ca4fa916f
|
|
7
|
+
data.tar.gz: 80bb9141963a9cc25d5b1e03b96e711b3e0873354829aaa06b0742ddedfd23e11e005ea8aa139d8557e17c874bc3253348f97deb54b0e7ffc73aa0efe7f0472d
|
data/lib/toolkami/client.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
require_relative "assert"
|
|
2
2
|
require_relative "daemon"
|
|
3
|
-
require_relative "../toolkami/v1/
|
|
3
|
+
require_relative "../toolkami/v1/service_services_pb"
|
|
4
4
|
|
|
5
5
|
module Toolkami
|
|
6
6
|
class Client
|
|
@@ -39,6 +39,36 @@ module Toolkami
|
|
|
39
39
|
@stub.ping(Toolkami::V1::PingRequest.new(name: name))
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
+
def build(request)
|
|
43
|
+
Assert.that(request.is_a?(Toolkami::V1::BuildRequest), "request must be BuildRequest")
|
|
44
|
+
@stub.build(request)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def spawn(request)
|
|
48
|
+
Assert.that(request.is_a?(Toolkami::V1::SpawnRequest), "request must be SpawnRequest")
|
|
49
|
+
@stub.spawn(request)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def snapshot(request)
|
|
53
|
+
Assert.that(request.is_a?(Toolkami::V1::SnapshotRequest), "request must be SnapshotRequest")
|
|
54
|
+
@stub.snapshot(request)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def restore(request)
|
|
58
|
+
Assert.that(request.is_a?(Toolkami::V1::RestoreRequest), "request must be RestoreRequest")
|
|
59
|
+
@stub.restore(request)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def exec(request)
|
|
63
|
+
Assert.that(request.is_a?(Toolkami::V1::ExecRequest), "request must be ExecRequest")
|
|
64
|
+
@stub.exec(request)
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def diff(request)
|
|
68
|
+
Assert.that(request.is_a?(Toolkami::V1::DiffRequest), "request must be DiffRequest")
|
|
69
|
+
@stub.diff(request)
|
|
70
|
+
end
|
|
71
|
+
|
|
42
72
|
def start
|
|
43
73
|
return self if ready?
|
|
44
74
|
|
data/lib/toolkami/generated.rb
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
module Toolkami
|
|
2
2
|
module Generated
|
|
3
3
|
GENERATED_FILES = [
|
|
4
|
+
File.expand_path("v1/common_pb.rb", __dir__),
|
|
5
|
+
File.expand_path("v1/image_pb.rb", __dir__),
|
|
6
|
+
File.expand_path("v1/instance_pb.rb", __dir__),
|
|
4
7
|
File.expand_path("v1/ping_pb.rb", __dir__),
|
|
5
|
-
File.expand_path("v1/
|
|
8
|
+
File.expand_path("v1/service_pb.rb", __dir__),
|
|
9
|
+
File.expand_path("v1/service_services_pb.rb", __dir__),
|
|
10
|
+
File.expand_path("v1/snapshot_pb.rb", __dir__),
|
|
11
|
+
File.expand_path("v1/version_pb.rb", __dir__),
|
|
6
12
|
].freeze
|
|
7
13
|
|
|
8
14
|
def self.assert_ready
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: toolkami/v1/common.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
descriptor_data = "\n\x18toolkami/v1/common.proto\x12\x0btoolkami.v1*|\n\x07VmState\x12\x18\n\x14VM_STATE_UNSPECIFIED\x10\x00\x12\x15\n\x11VM_STATE_CREATING\x10\x01\x12\x14\n\x10VM_STATE_RUNNING\x10\x02\x12\x14\n\x10VM_STATE_STOPPED\x10\x03\x12\x14\n\x10VM_STATE_DELETED\x10\x04*i\n\x08\x44iffKind\x12\x19\n\x15\x44IFF_KIND_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x44IFF_KIND_ADDED\x10\x01\x12\x16\n\x12\x44IFF_KIND_MODIFIED\x10\x02\x12\x15\n\x11\x44IFF_KIND_DELETED\x10\x03\x62\x06proto3"
|
|
9
|
+
|
|
10
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
11
|
+
pool.add_serialized_file(descriptor_data)
|
|
12
|
+
|
|
13
|
+
module Toolkami
|
|
14
|
+
module V1
|
|
15
|
+
VmState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.VmState").enummodule
|
|
16
|
+
DiffKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.DiffKind").enummodule
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: toolkami/v1/core.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'toolkami/v1/common_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\x16toolkami/v1/core.proto\x12\x0btoolkami.v1\x1a\x18toolkami/v1/common.proto\"W\n\x0c\x42uildRequest\x12\x17\n\x0f\x64ockerfile_text\x18\x01 \x01(\t\x12\x10\n\x08tag_hint\x18\x02 \x01(\t\x12\x1c\n\x14\x64ockerfile_bytes_max\x18\x03 \x01(\r\"!\n\rBuildResponse\x12\x10\n\x08image_id\x18\x01 \x01(\t\"n\n\x0cSpawnRequest\x12\x10\n\x08image_id\x18\x01 \x01(\t\x12\x16\n\tcpu_count\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x17\n\nmemory_mib\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x0c\n\n_cpu_countB\r\n\x0b_memory_mib\"L\n\rSpawnResponse\x12\x13\n\x0binstance_id\x18\x01 \x01(\t\x12&\n\x08vm_state\x18\x02 \x01(\x0e\x32\x14.toolkami.v1.VmState\"&\n\x0fSnapshotRequest\x12\x13\n\x0binstance_id\x18\x01 \x01(\t\"\'\n\x10SnapshotResponse\x12\x13\n\x0bsnapshot_id\x18\x01 \x01(\t\"%\n\x0eRestoreRequest\x12\x13\n\x0bsnapshot_id\x18\x01 \x01(\t\"N\n\x0fRestoreResponse\x12\x13\n\x0binstance_id\x18\x01 \x01(\t\x12&\n\x08vm_state\x18\x02 \x01(\x0e\x32\x14.toolkami.v1.VmState\"\xaf\x01\n\x0b\x45xecRequest\x12\x13\n\x0binstance_id\x18\x01 \x01(\t\x12\x14\n\x0c\x63ommand_text\x18\x02 \x01(\t\x12\x19\n\x11\x63ommand_bytes_max\x18\x03 \x01(\r\x12\x17\n\ntimeout_ms\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x18\n\x10stdout_bytes_max\x18\x05 \x01(\r\x12\x18\n\x10stderr_bytes_max\x18\x06 \x01(\rB\r\n\x0b_timeout_ms\"^\n\x0c\x45xecResponse\x12\x11\n\texit_code\x18\x01 \x01(\x05\x12\x13\n\x0bstdout_text\x18\x02 \x01(\t\x12\x13\n\x0bstderr_text\x18\x03 \x01(\t\x12\x11\n\ttimed_out\x18\x04 \x01(\x08\"\x9f\x01\n\tDiffEntry\x12\x11\n\tpath_text\x18\x01 \x01(\t\x12#\n\x04kind\x18\x02 \x01(\x0e\x32\x15.toolkami.v1.DiffKind\x12\x17\n\nsize_bytes\x18\x03 \x01(\x04H\x00\x88\x01\x01\x12\x1d\n\x10hash_sha256_text\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\r\n\x0b_size_bytesB\x13\n\x11_hash_sha256_text\"L\n\x0b\x44iffRequest\x12\x13\n\x0bsnapshot_id\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x13\n\x0b\x65ntries_max\x18\x03 \x01(\r\"J\n\x0c\x44iffResponse\x12\'\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x16.toolkami.v1.DiffEntry\x12\x11\n\ttruncated\x18\x02 \x01(\x08\x62\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module Toolkami
|
|
16
|
+
module V1
|
|
17
|
+
BuildRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.BuildRequest").msgclass
|
|
18
|
+
BuildResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.BuildResponse").msgclass
|
|
19
|
+
SpawnRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.SpawnRequest").msgclass
|
|
20
|
+
SpawnResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.SpawnResponse").msgclass
|
|
21
|
+
SnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.SnapshotRequest").msgclass
|
|
22
|
+
SnapshotResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.SnapshotResponse").msgclass
|
|
23
|
+
RestoreRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.RestoreRequest").msgclass
|
|
24
|
+
RestoreResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.RestoreResponse").msgclass
|
|
25
|
+
ExecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.ExecRequest").msgclass
|
|
26
|
+
ExecResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.ExecResponse").msgclass
|
|
27
|
+
DiffEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.DiffEntry").msgclass
|
|
28
|
+
DiffRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.DiffRequest").msgclass
|
|
29
|
+
DiffResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.DiffResponse").msgclass
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: toolkami/v1/image.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
descriptor_data = "\n\x17toolkami/v1/image.proto\x12\x0btoolkami.v1\"W\n\x0c\x42uildRequest\x12\x17\n\x0f\x64ockerfile_text\x18\x01 \x01(\t\x12\x10\n\x08tag_hint\x18\x02 \x01(\t\x12\x1c\n\x14\x64ockerfile_bytes_max\x18\x03 \x01(\r\"!\n\rBuildResponse\x12\x10\n\x08image_id\x18\x01 \x01(\tb\x06proto3"
|
|
9
|
+
|
|
10
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
11
|
+
pool.add_serialized_file(descriptor_data)
|
|
12
|
+
|
|
13
|
+
module Toolkami
|
|
14
|
+
module V1
|
|
15
|
+
BuildRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.BuildRequest").msgclass
|
|
16
|
+
BuildResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.BuildResponse").msgclass
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: toolkami/v1/instance.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'toolkami/v1/common_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\x1atoolkami/v1/instance.proto\x12\x0btoolkami.v1\x1a\x18toolkami/v1/common.proto\"n\n\x0cSpawnRequest\x12\x10\n\x08image_id\x18\x01 \x01(\t\x12\x16\n\tcpu_count\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x17\n\nmemory_mib\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x0c\n\n_cpu_countB\r\n\x0b_memory_mib\"L\n\rSpawnResponse\x12\x13\n\x0binstance_id\x18\x01 \x01(\t\x12&\n\x08vm_state\x18\x02 \x01(\x0e\x32\x14.toolkami.v1.VmState\"%\n\x0eRestoreRequest\x12\x13\n\x0bsnapshot_id\x18\x01 \x01(\t\"N\n\x0fRestoreResponse\x12\x13\n\x0binstance_id\x18\x01 \x01(\t\x12&\n\x08vm_state\x18\x02 \x01(\x0e\x32\x14.toolkami.v1.VmState\"\xaf\x01\n\x0b\x45xecRequest\x12\x13\n\x0binstance_id\x18\x01 \x01(\t\x12\x14\n\x0c\x63ommand_text\x18\x02 \x01(\t\x12\x19\n\x11\x63ommand_bytes_max\x18\x03 \x01(\r\x12\x17\n\ntimeout_ms\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x18\n\x10stdout_bytes_max\x18\x05 \x01(\r\x12\x18\n\x10stderr_bytes_max\x18\x06 \x01(\rB\r\n\x0b_timeout_ms\"^\n\x0c\x45xecResponse\x12\x11\n\texit_code\x18\x01 \x01(\x05\x12\x13\n\x0bstdout_text\x18\x02 \x01(\t\x12\x13\n\x0bstderr_text\x18\x03 \x01(\t\x12\x11\n\ttimed_out\x18\x04 \x01(\x08\x62\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module Toolkami
|
|
16
|
+
module V1
|
|
17
|
+
SpawnRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.SpawnRequest").msgclass
|
|
18
|
+
SpawnResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.SpawnResponse").msgclass
|
|
19
|
+
RestoreRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.RestoreRequest").msgclass
|
|
20
|
+
RestoreResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.RestoreResponse").msgclass
|
|
21
|
+
ExecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.ExecRequest").msgclass
|
|
22
|
+
ExecResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.ExecResponse").msgclass
|
|
23
|
+
end
|
|
24
|
+
end
|
data/lib/toolkami/v1/ping_pb.rb
CHANGED
|
@@ -5,15 +5,13 @@
|
|
|
5
5
|
require 'google/protobuf'
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
descriptor_data = "\n\x16toolkami/v1/ping.proto\x12\x0btoolkami.v1\"\
|
|
8
|
+
descriptor_data = "\n\x16toolkami/v1/ping.proto\x12\x0btoolkami.v1\"\x1b\n\x0bPingRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x1f\n\x0cPingResponse\x12\x0f\n\x07message\x18\x01 \x01(\tb\x06proto3"
|
|
9
9
|
|
|
10
10
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
11
11
|
pool.add_serialized_file(descriptor_data)
|
|
12
12
|
|
|
13
13
|
module Toolkami
|
|
14
14
|
module V1
|
|
15
|
-
GetVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.GetVersionRequest").msgclass
|
|
16
|
-
GetVersionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.GetVersionResponse").msgclass
|
|
17
15
|
PingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.PingRequest").msgclass
|
|
18
16
|
PingResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.PingResponse").msgclass
|
|
19
17
|
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: toolkami/v1/service.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'toolkami/v1/image_pb'
|
|
8
|
+
require 'toolkami/v1/instance_pb'
|
|
9
|
+
require 'toolkami/v1/ping_pb'
|
|
10
|
+
require 'toolkami/v1/snapshot_pb'
|
|
11
|
+
require 'toolkami/v1/version_pb'
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
descriptor_data = "\n\x19toolkami/v1/service.proto\x12\x0btoolkami.v1\x1a\x17toolkami/v1/image.proto\x1a\x1atoolkami/v1/instance.proto\x1a\x16toolkami/v1/ping.proto\x1a\x1atoolkami/v1/snapshot.proto\x1a\x19toolkami/v1/version.proto2\xa6\x04\n\x0fToolkamiService\x12M\n\nGetVersion\x12\x1e.toolkami.v1.GetVersionRequest\x1a\x1f.toolkami.v1.GetVersionResponse\x12;\n\x04Ping\x12\x18.toolkami.v1.PingRequest\x1a\x19.toolkami.v1.PingResponse\x12>\n\x05\x42uild\x12\x19.toolkami.v1.BuildRequest\x1a\x1a.toolkami.v1.BuildResponse\x12>\n\x05Spawn\x12\x19.toolkami.v1.SpawnRequest\x1a\x1a.toolkami.v1.SpawnResponse\x12G\n\x08Snapshot\x12\x1c.toolkami.v1.SnapshotRequest\x1a\x1d.toolkami.v1.SnapshotResponse\x12\x44\n\x07Restore\x12\x1b.toolkami.v1.RestoreRequest\x1a\x1c.toolkami.v1.RestoreResponse\x12;\n\x04\x45xec\x12\x18.toolkami.v1.ExecRequest\x1a\x19.toolkami.v1.ExecResponse\x12;\n\x04\x44iff\x12\x18.toolkami.v1.DiffRequest\x1a\x19.toolkami.v1.DiffResponseb\x06proto3"
|
|
15
|
+
|
|
16
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
|
18
|
+
|
|
19
|
+
module Toolkami
|
|
20
|
+
module V1
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: toolkami/v1/service.proto for package 'toolkami.v1'
|
|
3
|
+
|
|
4
|
+
require 'grpc'
|
|
5
|
+
require 'toolkami/v1/service_pb'
|
|
6
|
+
|
|
7
|
+
module Toolkami
|
|
8
|
+
module V1
|
|
9
|
+
module ToolkamiService
|
|
10
|
+
class Service
|
|
11
|
+
|
|
12
|
+
include ::GRPC::GenericService
|
|
13
|
+
|
|
14
|
+
self.marshal_class_method = :encode
|
|
15
|
+
self.unmarshal_class_method = :decode
|
|
16
|
+
self.service_name = 'toolkami.v1.ToolkamiService'
|
|
17
|
+
|
|
18
|
+
rpc :GetVersion, ::Toolkami::V1::GetVersionRequest, ::Toolkami::V1::GetVersionResponse
|
|
19
|
+
rpc :Ping, ::Toolkami::V1::PingRequest, ::Toolkami::V1::PingResponse
|
|
20
|
+
rpc :Build, ::Toolkami::V1::BuildRequest, ::Toolkami::V1::BuildResponse
|
|
21
|
+
rpc :Spawn, ::Toolkami::V1::SpawnRequest, ::Toolkami::V1::SpawnResponse
|
|
22
|
+
rpc :Snapshot, ::Toolkami::V1::SnapshotRequest, ::Toolkami::V1::SnapshotResponse
|
|
23
|
+
rpc :Restore, ::Toolkami::V1::RestoreRequest, ::Toolkami::V1::RestoreResponse
|
|
24
|
+
rpc :Exec, ::Toolkami::V1::ExecRequest, ::Toolkami::V1::ExecResponse
|
|
25
|
+
rpc :Diff, ::Toolkami::V1::DiffRequest, ::Toolkami::V1::DiffResponse
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
Stub = Service.rpc_stub_class
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: toolkami/v1/snapshot.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'toolkami/v1/common_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\x1atoolkami/v1/snapshot.proto\x12\x0btoolkami.v1\x1a\x18toolkami/v1/common.proto\"&\n\x0fSnapshotRequest\x12\x13\n\x0binstance_id\x18\x01 \x01(\t\"\'\n\x10SnapshotResponse\x12\x13\n\x0bsnapshot_id\x18\x01 \x01(\t\"\x9f\x01\n\tDiffEntry\x12\x11\n\tpath_text\x18\x01 \x01(\t\x12#\n\x04kind\x18\x02 \x01(\x0e\x32\x15.toolkami.v1.DiffKind\x12\x17\n\nsize_bytes\x18\x03 \x01(\x04H\x00\x88\x01\x01\x12\x1d\n\x10hash_sha256_text\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\r\n\x0b_size_bytesB\x13\n\x11_hash_sha256_text\"L\n\x0b\x44iffRequest\x12\x13\n\x0bsnapshot_id\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x13\n\x0b\x65ntries_max\x18\x03 \x01(\r\"J\n\x0c\x44iffResponse\x12\'\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x16.toolkami.v1.DiffEntry\x12\x11\n\ttruncated\x18\x02 \x01(\x08\x62\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module Toolkami
|
|
16
|
+
module V1
|
|
17
|
+
SnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.SnapshotRequest").msgclass
|
|
18
|
+
SnapshotResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.SnapshotResponse").msgclass
|
|
19
|
+
DiffEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.DiffEntry").msgclass
|
|
20
|
+
DiffRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.DiffRequest").msgclass
|
|
21
|
+
DiffResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.DiffResponse").msgclass
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: toolkami/v1/version.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
descriptor_data = "\n\x19toolkami/v1/version.proto\x12\x0btoolkami.v1\"\x13\n\x11GetVersionRequest\":\n\x12GetVersionResponse\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x13\n\x0btcp_address\x18\x02 \x01(\tb\x06proto3"
|
|
9
|
+
|
|
10
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
11
|
+
pool.add_serialized_file(descriptor_data)
|
|
12
|
+
|
|
13
|
+
module Toolkami
|
|
14
|
+
module V1
|
|
15
|
+
GetVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.GetVersionRequest").msgclass
|
|
16
|
+
GetVersionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("toolkami.v1.GetVersionResponse").msgclass
|
|
17
|
+
end
|
|
18
|
+
end
|
data/lib/toolkami/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: toolkami
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aperoc
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-protobuf
|
|
@@ -55,8 +55,15 @@ files:
|
|
|
55
55
|
- lib/toolkami/generated.rb
|
|
56
56
|
- lib/toolkami/install.rb
|
|
57
57
|
- lib/toolkami/release.rb
|
|
58
|
+
- lib/toolkami/v1/common_pb.rb
|
|
59
|
+
- lib/toolkami/v1/core_pb.rb
|
|
60
|
+
- lib/toolkami/v1/image_pb.rb
|
|
61
|
+
- lib/toolkami/v1/instance_pb.rb
|
|
58
62
|
- lib/toolkami/v1/ping_pb.rb
|
|
59
|
-
- lib/toolkami/v1/
|
|
63
|
+
- lib/toolkami/v1/service_pb.rb
|
|
64
|
+
- lib/toolkami/v1/service_services_pb.rb
|
|
65
|
+
- lib/toolkami/v1/snapshot_pb.rb
|
|
66
|
+
- lib/toolkami/v1/version_pb.rb
|
|
60
67
|
- lib/toolkami/version.rb
|
|
61
68
|
- toolkami.gemspec
|
|
62
69
|
homepage: https://github.com/aperoc/toolkami
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
-
# Source: toolkami/v1/ping.proto for package 'toolkami.v1'
|
|
3
|
-
|
|
4
|
-
require 'grpc'
|
|
5
|
-
require 'toolkami/v1/ping_pb'
|
|
6
|
-
|
|
7
|
-
module Toolkami
|
|
8
|
-
module V1
|
|
9
|
-
module ToolkamiService
|
|
10
|
-
class Service
|
|
11
|
-
|
|
12
|
-
include ::GRPC::GenericService
|
|
13
|
-
|
|
14
|
-
self.marshal_class_method = :encode
|
|
15
|
-
self.unmarshal_class_method = :decode
|
|
16
|
-
self.service_name = 'toolkami.v1.ToolkamiService'
|
|
17
|
-
|
|
18
|
-
rpc :GetVersion, ::Toolkami::V1::GetVersionRequest, ::Toolkami::V1::GetVersionResponse
|
|
19
|
-
rpc :Ping, ::Toolkami::V1::PingRequest, ::Toolkami::V1::PingResponse
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
Stub = Service.rpc_stub_class
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|