MCPcopy Index your code
hub / github.com/scality/cloudserver / checkTierSupported

Function checkTierSupported

lib/api/apiUtils/object/objectRestore.js:18–23  ·  view source on GitHub ↗

* Check if tier is supported * @param {object} restoreInfo - restore information * @returns {ArsenalError|undefined} return NotImplemented error if tier not support

(restoreInfo)

Source from the content-addressed store, hash-verified

16 * @returns {ArsenalError|undefined} return NotImplemented error if tier not support
17 */
18function checkTierSupported(restoreInfo) {
19 if (!allowedRestoreObjectRequestTierValues.includes(restoreInfo.tier)) {
20 return errors.NotImplemented;
21 }
22 return undefined;
23}
24
25/**
26 * POST Object restore process

Callers 1

objectRestoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected