MCPcopy Index your code
hub / github.com/syncthing/syncthing / Index

Method Index

lib/protocol/encryption.go:61–69  ·  view source on GitHub ↗
(idx *Index)

Source from the content-addressed store, hash-verified

59}
60
61func (e encryptedModel) Index(idx *Index) error {
62 if folderKey, ok := e.folderKeys.get(idx.Folder); ok {
63 // incoming index data to be decrypted
64 if err := decryptFileInfos(e.keyGen, idx.Files, folderKey); err != nil {
65 return err
66 }
67 }
68 return e.model.Index(idx)
69}
70
71func (e encryptedModel) IndexUpdate(idxUp *IndexUpdate) error {
72 if folderKey, ok := e.folderKeys.get(idxUp.Folder); ok {

Callers

nothing calls this directly

Calls 3

decryptFileInfosFunction · 0.85
getMethod · 0.65
IndexMethod · 0.65

Tested by

no test coverage detected