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

Method PushDst

downloader/diff_resolver.go:159–176  ·  view source on GitHub ↗
(v interface{})

Source from the content-addressed store, hash-verified

157func (dr *DiffResolver) CloseSrc() { close(dr.srcCh) }
158
159func (dr *DiffResolver) PushDst(v interface{}) {
160 var d *DstElement
161 switch x := v.(type) {
162 case *BackendResource:
163 d = &DstElement{
164 ObjName: x.ObjName,
165 }
166 case *WebResource:
167 d = &DstElement{
168 ObjName: x.ObjName,
169 Link: x.Link,
170 }
171 default:
172 cos.Assertf(false, "%T", x)
173 }
174
175 dr.dstCh <- d
176}
177
178func (dr *DiffResolver) CloseDst() { close(dr.dstCh) }
179

Callers 2

TestDiffResolverFunction · 0.95
dispatchDownloadMethod · 0.95

Calls 1

AssertfFunction · 0.92

Tested by 1

TestDiffResolverFunction · 0.76