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

Method Index

lib/protocol/encryption.go:197–202  ·  view source on GitHub ↗
(ctx context.Context, idx *Index)

Source from the content-addressed store, hash-verified

195}
196
197func (e encryptedConnection) Index(ctx context.Context, idx *Index) error {
198 if folderKey, ok := e.folderKeys.get(idx.Folder); ok {
199 encryptFileInfos(e.keyGen, idx.Files, folderKey)
200 }
201 return e.conn.Index(ctx, idx)
202}
203
204func (e encryptedConnection) IndexUpdate(ctx context.Context, idxUp *IndexUpdate) error {
205 if folderKey, ok := e.folderKeys.get(idxUp.Folder); ok {

Callers

nothing calls this directly

Calls 3

encryptFileInfosFunction · 0.85
getMethod · 0.65
IndexMethod · 0.65

Tested by

no test coverage detected