Add remount route for mountlike backup storages
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user