MCPcopy Create free account
hub / github.com/scality/cloudserver / waitForBucketReady

Function waitForBucketReady

tests/functional/raw-node/utils/gcpUtils.js:211–219  ·  view source on GitHub ↗
(gcpClient, bucketName, retryOptions)

Source from the content-addressed store, hash-verified

209}
210
211async function waitForBucketReady(gcpClient, bucketName, retryOptions) {
212 const cmd = new HeadBucketCommand({ Bucket: bucketName });
213 return await gcpRetry(gcpClient, cmd, {
214 maxAttempts: 6,
215 shouldRetry: defaultShouldRetryMpuCreate,
216 getDelayMs: attempt => (attempt + 1) * 1000,
217 ...retryOptions,
218 });
219}
220
221module.exports = {
222 setBucketClass,

Callers 4

upload.jsFile · 0.85
deleteMpu.jsFile · 0.85
initiateMpu.jsFile · 0.85
completeMpu.jsFile · 0.85

Calls 1

gcpRetryFunction · 0.85

Tested by

no test coverage detected