Add new storage.removeBackup() api
This currently is only used in the filesystem backend, but may be expanded to also cleanup S3 in the future
This commit is contained in:
@@ -14,7 +14,8 @@ exports = module.exports = {
|
||||
getAppRestoreConfig: getAppRestoreConfig,
|
||||
getLocalFilePath: getLocalFilePath,
|
||||
|
||||
copyObject: copyObject
|
||||
copyObject: copyObject,
|
||||
removeBackup: removeBackup
|
||||
};
|
||||
|
||||
var assert = require('assert');
|
||||
@@ -88,3 +89,13 @@ function copyObject(apiConfig, from, to, callback) {
|
||||
|
||||
callback(new Error('not implemented'));
|
||||
}
|
||||
|
||||
function removeBackup(apiConfig, backupId, callback) {
|
||||
assert.strictEqual(typeof apiConfig, 'object');
|
||||
assert.strictEqual(typeof backupId, 'string');
|
||||
assert.strictEqual(typeof callback, 'function');
|
||||
|
||||
// Result: none
|
||||
|
||||
callback(new Error('not implemented'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user