(rep repo.RepositoryWriter, enumVal string)
| 52 | } |
| 53 | |
| 54 | func 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 | |
| 67 | func (c *commonRewriteSnapshots) rewriteMatchingSnapshots(ctx context.Context, rep repo.RepositoryWriter, rewrite snapshotfs.RewriteDirEntryCallback) error { |
| 68 | rw, err := snapshotfs.NewDirRewriter(ctx, rep, snapshotfs.DirRewriterOptions{ |
no test coverage detected