Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/scality/cloudserver
/ objectLockHelpers.js
File
objectLockHelpers.js
tests/unit/api/apiUtils/objectLockHelpers.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
const
assert = require(
'assert'
);
2
const
moment = require(
'moment'
);
3
const
{ errorInstances } = require(
'arsenal'
);
4
const
BucketInfo = require(
'arsenal'
).models.BucketInfo;
Callers
nothing calls this directly
Calls
9
validateHeaders
Function · 0.85
calculateRetainUntilDate
Function · 0.85
compareObjectLockInformation
Function · 0.85
isGovernanceMode
Method · 0.80
isComplianceMode
Method · 0.80
isExpired
Method · 0.80
isLocked
Method · 0.80
canModifyPolicy
Method · 0.80
canModifyObject
Method · 0.80
Tested by
no test coverage detected