evervault 1.0.0 → 1.1.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: 7382a19b6a9fa82b2d37caa8f3e440f7bfce74bc18a237f13bdbd598dbb0d855
4
- data.tar.gz: 78d8c04663caeca5ec0ff9336f403ec496b69fa61b25f134c9fae66eff91ab78
3
+ metadata.gz: 2b06c4fd79f260d853fa0fd738ae225c9670c6b7561bc6cb66ffac99850f0576
4
+ data.tar.gz: 6f39d076798f8b52dc557c1ff3f3834f67abe21874ad530ff399f6404ea46842
5
5
  SHA512:
6
- metadata.gz: f0154d3c18eaa8685e6f1d26069c286609eaeb0bf8cc56049f53870ea3d374d0c7f45aeb855e47094dfc30b8a55d54d1122fac2ffc008e8a252ca843e711081e
7
- data.tar.gz: 3915f0582de2f85ca71e9769f1cb4bf2bdd3013f50903beb8ae1946a39d9dd87733e340159aaf5c5192872ab1685ab39d6decd43d45487bd56dc8a4ea1914b4c
6
+ metadata.gz: 862d87c3a14651f46d6efef35c9d679d0e42a79fc90adb619ff4501ac8e304fa3c55650875e6c9e24bf7cf95c8d9bfef304f6af5157b0eab726c93f35d4e3c89
7
+ data.tar.gz: f7074851247c1794960daa610c0360423a41631be458752ea24f7e09230c1e20a3b7d862b23e3fc85cfd4a6815f8aceef60e517d5e30229fd0a008e0b10eae6e
data/README.md CHANGED
@@ -96,7 +96,7 @@ Evervault.run(cage_name = String, data = Hash[, options = Hash])
96
96
 
97
97
  | Parameter | Type | Description |
98
98
  | --------- | ---- | ----------- |
99
- | cageName | String | Name of the Cage to be run |
99
+ | cage_name | String | Name of the Cage to be run |
100
100
  | data | Hash | Payload for the Cage |
101
101
  | options | Hash | [Options for the Cage run](#Cage-Run-Options) |
102
102
 
@@ -117,9 +117,22 @@ Evervault.encrypt_and_run(cage_name = String, data = Hash)
117
117
 
118
118
  | Parameter | Type | Description |
119
119
  | --------- | ---- | ----------- |
120
- | cageName | String | Name of the Cage to be run |
120
+ | cage_name | String | Name of the Cage to be run |
121
121
  | data | dict | Data to be encrypted |
122
122
 
123
+ ### Evervault.create_run_token
124
+
125
+ `Evervault.create_run_token` creates a single use, time bound token for invoking a cage.
126
+
127
+ ```ruby
128
+ Evervault.create_run_token(cage_name = String, data = Hash)
129
+ ```
130
+
131
+ | Parameter | Type | Description |
132
+ | --------- | ------ | ---------------------------------------------------- |
133
+ | cage_name | String | Name of the Cage the run token should be created for |
134
+ | data | Hash | Payload that the token can be used with |
135
+
123
136
  ### Evervault.cages
124
137
 
125
138
  Return a hash of your team's Cage objects in hash format, with cage-name as keys
@@ -54,5 +54,9 @@ module Evervault
54
54
  def relay(decryption_domains=[])
55
55
  @intercept.setup_domains(decryption_domains)
56
56
  end
57
+
58
+ def create_run_token(cage_name, data)
59
+ @request_handler.post("v2/functions/#{cage_name}/run-token", data)
60
+ end
57
61
  end
58
62
  end
@@ -1,4 +1,4 @@
1
1
  module Evervault
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  EV_VERSION = {"prime256v1" => "NOC", "secp256k1" => "DUB"}
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evervault
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonny O'Mahony
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-08 00:00:00.000000000 Z
11
+ date: 2022-09-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: