ExistingFileSchemas returns the file schemas for the provided file contents refs.
(wholeRef ...blob.Ref)
| 1356 | |
| 1357 | // ExistingFileSchemas returns the file schemas for the provided file contents refs. |
| 1358 | func (x *Index) ExistingFileSchemas(wholeRef ...blob.Ref) (WholeRefToFile, error) { |
| 1359 | schemaRefs := make(WholeRefToFile) |
| 1360 | for _, v := range wholeRef { |
| 1361 | newRefs, err := x.existingFileSchemas(v) |
| 1362 | if err != nil { |
| 1363 | return nil, err |
| 1364 | } |
| 1365 | schemaRefs[v.String()] = newRefs |
| 1366 | } |
| 1367 | return schemaRefs, nil |
| 1368 | } |
| 1369 | |
| 1370 | func (x *Index) loadKey(key string, val *string, err *error, wg *sync.WaitGroup) { |
| 1371 | defer wg.Done() |
nothing calls this directly
no test coverage detected