MCPcopy Index your code
hub / github.com/kopia/kopia / failedEntryCallback

Function failedEntryCallback

cli/command_snapshot_fix.go:54–65  ·  view source on GitHub ↗
(rep repo.RepositoryWriter, enumVal string)

Source from the content-addressed store, hash-verified

52}
53
54func failedEntryCallback(rep repo.RepositoryWriter, enumVal string) snapshotfs.RewriteFailedEntryCallback {
55 switch enumVal {
56 default:
57 return snapshotfs.RewriteFail
58 case invalidEntryStub:
59 return snapshotfs.RewriteAsStub(rep)
60 case invalidEntryRemove:
61 return snapshotfs.RewriteRemove
62 case invalidEntryKeep:
63 return snapshotfs.RewriteKeep
64 }
65}
66
67func (c *commonRewriteSnapshots) rewriteMatchingSnapshots(ctx context.Context, rep repo.RepositoryWriter, rewrite snapshotfs.RewriteDirEntryCallback) error {
68 rw, err := snapshotfs.NewDirRewriter(ctx, rep, snapshotfs.DirRewriterOptions{

Callers 2

runMethod · 0.85

Calls 1

RewriteAsStubFunction · 0.92

Tested by

no test coverage detected