vaultik/internal/snapshot
user eb23e14799 refactor: break up oversized methods into smaller descriptive helpers
Addresses #40 (feedback from PR #37).

Refactored methods:
- createNamedSnapshot (214→~60 lines) → resolveSnapshotPaths, scanAllDirectories,
  collectUploadStats, finalizeSnapshotMetadata, printSnapshotSummary, getSnapshotBlobSizes,
  formatUploadSpeed
- ListSnapshots (159→~30 lines) → listRemoteSnapshotIDs, reconcileLocalWithRemote,
  buildSnapshotInfoList, printSnapshotTable
- PruneBlobs (170→~40 lines) → collectReferencedBlobs, listUniqueSnapshotIDs,
  listAllRemoteBlobs, findUnreferencedBlobs, deleteUnreferencedBlobs
- RunDeepVerify (182→~50 lines) → loadVerificationData, runVerificationSteps,
  deepVerifyFailure
- RemoteInfo (187→~30 lines) → collectSnapshotMetadata,
  collectReferencedBlobsFromManifests, populateRemoteInfoResult,
  scanRemoteBlobStorage, printRemoteInfoTable
- handleBlobReady (173→~30 lines) → uploadBlobIfNeeded, makeUploadProgressCallback,
  recordBlobMetadata, cleanupBlobTempFile
- processFileStreaming (146→~50 lines) → updateChunkStats, addChunkToPacker,
  queueFileForBatchInsert
- finalizeCurrentBlob (167→~30 lines) → closeBlobWriter, buildChunkRefs,
  commitBlobToDatabase, deliverFinishedBlob

All tests pass. No behavioral changes.
2026-02-20 02:31:56 -08:00
..
backup_test.go Add custom types, version command, and restore --verify flag 2026-01-14 17:11:52 -08:00
exclude_test.go Add custom types, version command, and restore --verify flag 2026-01-14 17:11:52 -08:00
file_change_test.go Add custom types, version command, and restore --verify flag 2026-01-14 17:11:52 -08:00
manifest.go Major refactoring: Updated manifest format and renamed backup to snapshot 2025-07-26 03:27:47 +02:00
module.go Add custom types, version command, and restore --verify flag 2026-01-14 17:11:52 -08:00
progress.go Add deterministic deduplication, rclone backend, and database purge command 2026-01-28 15:50:17 -08:00
scanner_test.go Add custom types, version command, and restore --verify flag 2026-01-14 17:11:52 -08:00
scanner.go refactor: break up oversized methods into smaller descriptive helpers 2026-02-20 02:31:56 -08:00
snapshot_test.go Add custom types, version command, and restore --verify flag 2026-01-14 17:11:52 -08:00
snapshot.go Add deterministic deduplication, rclone backend, and database purge command 2026-01-28 15:50:17 -08:00