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

Function DownloadMulti

api/download.go:59–68  ·  view source on GitHub ↗
(baseParams BaseParams, description string, bck cmn.Bck, msg interface{}, intervals ...time.Duration)

Source from the content-addressed store, hash-verified

57}
58
59func DownloadMulti(baseParams BaseParams, description string, bck cmn.Bck, msg interface{}, intervals ...time.Duration) (string, error) {
60 dlBody := downloader.DlMultiBody{}
61 if len(intervals) > 0 {
62 dlBody.ProgressInterval = intervals[0].String()
63 }
64 dlBody.Bck = bck
65 dlBody.Description = description
66 dlBody.ObjectsPayload = msg
67 return DownloadWithParam(baseParams, downloader.DlTypeMulti, dlBody)
68}
69
70func DownloadBackend(baseParams BaseParams, description string, bck cmn.Bck, prefix, suffix string,
71 intervals ...time.Duration) (string, error) {

Callers 6

TestDownloadMultiMapFunction · 0.92
TestDownloadMultiListFunction · 0.92
TestDownloadStatusFunction · 0.92
TestDownloadStatusErrorFunction · 0.92
TestDownloadMountpathFunction · 0.92

Calls 2

DownloadWithParamFunction · 0.85
StringMethod · 0.65

Tested by 6

TestDownloadMultiMapFunction · 0.74
TestDownloadMultiListFunction · 0.74
TestDownloadStatusFunction · 0.74
TestDownloadStatusErrorFunction · 0.74
TestDownloadMountpathFunction · 0.74