storage: add getStatus hook

This commit is contained in:
Girish Ramakrishnan
2025-08-04 10:47:00 +02:00
parent 28e23dfdab
commit 7ef9e7eb51
9 changed files with 74 additions and 22 deletions
+8
View File
@@ -12,6 +12,7 @@
// them to tune the concurrency based on failures/rate limits accordingly
exports = module.exports = {
getAvailableSize,
getStatus,
upload,
@@ -53,6 +54,13 @@ async function getAvailableSize(apiConfig) {
return Number.POSITIVE_INFINITY;
}
async function getStatus(apiConfig) {
assert.strictEqual(typeof apiConfig, 'object');
// Result: { state, message } . state is 'active' or 'inactive'
throw new BoxError(BoxError.NOT_IMPLEMENTED, 'getStatus is not implemented');
}
async function upload(apiConfig, backupFilePath) {
assert.strictEqual(typeof apiConfig, 'object');
assert.strictEqual(typeof backupFilePath, 'string');