MCPcopy
hub / github.com/perkeep/perkeep / ExistingFileSchemas

Method ExistingFileSchemas

pkg/index/index.go:1358–1368  ·  view source on GitHub ↗

ExistingFileSchemas returns the file schemas for the provided file contents refs.

(wholeRef ...blob.Ref)

Source from the content-addressed store, hash-verified

1356
1357// ExistingFileSchemas returns the file schemas for the provided file contents refs.
1358func (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
1370func (x *Index) loadKey(key string, val *string, err *error, wg *sync.WaitGroup) {
1371 defer wg.Done()

Callers

nothing calls this directly

Calls 2

existingFileSchemasMethod · 0.95
StringMethod · 0.45

Tested by

no test coverage detected