@pirol/nido 0.3.0 → 0.3.1
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.
- package/README.md +1 -1
- package/dist/api.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/storage.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -83,7 +83,7 @@ Instead of an agent, run any command. It needs no key:
|
|
|
83
83
|
Keep large data in storage, independently of sandboxes:
|
|
84
84
|
|
|
85
85
|
```bash
|
|
86
|
-
nido storage put ./data my-data # upload straight to
|
|
86
|
+
nido storage put ./data my-data # upload straight to storage in Frankfurt
|
|
87
87
|
nido storage ls # volumes with file count and size
|
|
88
88
|
nido storage ls my-data # files in one volume
|
|
89
89
|
nido storage rm my-data # only once no sandbox uses it
|
package/dist/api.js
CHANGED
|
@@ -171,7 +171,7 @@ export class Api {
|
|
|
171
171
|
return this.json("DELETE", `/v1/storage/${encodeURIComponent(name)}`);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
/** Sends a local file to an upload URL from storageUploads (straight to
|
|
174
|
+
/** Sends a local file to an upload URL from storageUploads (straight to the storage). */
|
|
175
175
|
export function putFile(url, file, size) {
|
|
176
176
|
return new Promise((resolve, reject) => {
|
|
177
177
|
const req = request(url, { method: "PUT", headers: { "content-length": size } }, (res) => {
|
package/dist/cli.js
CHANGED
|
@@ -23,7 +23,7 @@ Sandboxes
|
|
|
23
23
|
nido stop|start|rm <name>
|
|
24
24
|
|
|
25
25
|
Storage (lives on without sandboxes, mounted at /data/<name>)
|
|
26
|
-
nido storage put <folder|file> <name> upload, straight to
|
|
26
|
+
nido storage put <folder|file> <name> upload, straight to storage
|
|
27
27
|
nido storage ls [name]
|
|
28
28
|
nido storage rm <name>
|
|
29
29
|
|
package/dist/storage.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// nido storage: volumes in
|
|
2
|
-
// sandboxes. Files go straight to
|
|
1
|
+
// nido storage: volumes in object storage that live independently of
|
|
2
|
+
// sandboxes. Files go straight to the storage; the API only hands out an
|
|
3
3
|
// upload URL per file.
|
|
4
4
|
import { existsSync, statSync } from "node:fs";
|
|
5
5
|
import { basename, dirname, join, resolve } from "node:path";
|