Add upload save feature

Add /api/upload-save endpoint that streams the data via the slave
assigned to the target instance to the instance saves directory, along
with a ctl command and web interface button to do the upload.
This commit is contained in:
Hornwitser committed 2021-06-01 16:27:02 +02:00
1 parent 0066a06107
commit 2e314ff098
18 files changed
+756 -36

No files matched your search

+4
View File
@@ -150,9 +150,12 @@ class MockControl extends libLink.Link {
class MockMaster {
constructor() {
this.app = express();
this.app.locals.master = this;
this.app.locals.streams = new Map();
this.mockConfigEntries = new Map([
["master.external_address", "test"],
["master.auth_secret", "TestSecretDoNotUse"],
["master.proxy_stream_timeout", 1],
]);
this.config = {
get: (name) => {
@@ -227,6 +230,7 @@ module.exports = {
MockInstance,
MockSlave,
MockControl,
MockMaster,
createMasterPlugin,
createInstancePlugin,