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

Function headObject

tests/functional/aws-node-sdk/test/object/getPartSize.js:47–57  ·  view source on GitHub ↗
(fields, cb)

Source from the content-addressed store, hash-verified

45 let uploadId;
46
47 function headObject(fields, cb) {
48 s3.send(new HeadObjectCommand({
49 Bucket: bucket,
50 Key: object,
51 ...fields,
52 })).then(data => {
53 cb(null, data);
54 }).catch(err => {
55 cb(err);
56 });
57 }
58
59 before(async () => {
60 bucketUtil = new BucketUtility('default', sigCfg);

Callers 1

getPartSize.jsFile · 0.70

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected