MCPcopy
hub / github.com/NVIDIA/aistore / BaseAPIParams

Function BaseAPIParams

devtools/tutils/client.go:419–427  ·  view source on GitHub ↗
(urls ...string)

Source from the content-addressed store, hash-verified

417}
418
419func BaseAPIParams(urls ...string) api.BaseParams {
420 var u string
421 if len(urls) > 0 && len(urls[0]) > 0 {
422 u = urls[0]
423 } else {
424 u = RandomProxyURL()
425 }
426 return api.BaseParams{Client: gctx.Client, URL: u, Token: LoggedUserToken}
427}
428
429// waitForBucket waits until all targets ack having ais bucket created or deleted
430func WaitForBucket(proxyURL string, query cmn.QueryBcks, exists bool) error {

Callers 15

e2e_test.goFile · 0.92
BenchmarkECEncodeFunction · 0.92
BenchmarkECRebalanceFunction · 0.92
BenchmarkRebalanceFunction · 0.92
createAndFillBucketFunction · 0.92
BenchmarkListObjectFunction · 0.92
TestRenameBucketFunction · 0.92
doBucketRegressionTestFunction · 0.92
TestRenameObjectsFunction · 0.92

Calls 1

RandomProxyURLFunction · 0.85

Tested by 15

BenchmarkECEncodeFunction · 0.74
BenchmarkECRebalanceFunction · 0.74
BenchmarkRebalanceFunction · 0.74
createAndFillBucketFunction · 0.74
BenchmarkListObjectFunction · 0.74
TestRenameBucketFunction · 0.74
doBucketRegressionTestFunction · 0.74
TestRenameObjectsFunction · 0.74