Add remount route for mountlike backup storages

This commit is contained in:
Johannes Zellner
2021-10-11 17:45:35 +02:00
parent 9eed3af8b6
commit d1a7172895
10 changed files with 91 additions and 12 deletions
+11
View File
@@ -27,6 +27,8 @@ exports = module.exports = {
remove,
removeDir,
remount,
testConfig,
removePrivateFields,
injectPrivateFields
@@ -141,6 +143,15 @@ function removeDir(apiConfig, pathPrefix) {
return events;
}
function remount(apiConfig, callback) {
assert.strictEqual(typeof apiConfig, 'object');
assert.strictEqual(typeof callback, 'function');
// Result: none
callback(new BoxError(BoxError.NOT_IMPLEMENTED, 'remount is not implemented'));
}
function testConfig(apiConfig, callback) {
assert.strictEqual(typeof apiConfig, 'object');
assert.strictEqual(typeof callback, 'function');