MCPcopy
hub / github.com/scality/cloudserver / indexPutRequest

Function indexPutRequest

tests/functional/backbeat/bucketIndexing.js:46–59  ·  view source on GitHub ↗
(payload, bucket, cb)

Source from the content-addressed store, hash-verified

44}
45
46function indexPutRequest(payload, bucket, cb) {
47 makeRequest({
48 authCredentials: backbeatAuthCredentials,
49 hostname: ipAddress,
50 port: 8000,
51 method: 'POST',
52 path:
53 `/_/backbeat/index/${bucket}`,
54 headers: {},
55 jsonResponse: true,
56 requestBody: JSON.stringify(payload),
57 queryObj: { operation: 'add' },
58 }, cb);
59}
60
61function indexGetRequest(bucket, cb) {
62 makeRequest({

Callers 1

bucketIndexing.jsFile · 0.85

Calls 1

makeRequestFunction · 0.50

Tested by

no test coverage detected