Skip to main content

Crate vdsl_sync

Crate vdsl_sync 

Source
Expand description

vdsl-sync — N-location file synchronization engine.

Topology-centric model: TopologyFile (identity) + LocationFile (per-location state)

  • RouteGraph (DAG) による分散ファイルストレージの同期エンジン。

§Architecture

  • Domain — core entities ([TopologyFile], [LocationFile], [Transfer], LocationId)
  • Application — use-case orchestration (SdkImpl, [TopologyStore], [TopologyScanner])
  • Infrastructure — persistence and transfer (TransferStore, StorageBackend)

Structs§

CloudLocation
Cloud storage の拠点。
Djb2Hasher
Default hasher: DJB2 for all files + PNG IHDR+IDAT semantic hash.
ErrorEntry
失敗したTransferの表示情報。
FileFingerprint
ファイル同一性判定に使用するフィンガープリント。
FileInspection
Per-file inspection result from batch_inspect.
HashResult
Result of hashing a file.
LocalLocation
ローカルファイルシステムの拠点。
LocationId
Identifier for a sync location.
LocationSummary
Per-location count of files by state.
PendingEntry
待機中Transferの表示情報。
PresenceView
特定locationでのファイルの存在状況ビュー。
PutReport
put() の結果。
RcloneBackend
Rclone CLI storage backend.
SdkImpl
SyncStoreSdkの本実装。
SdkImplBuilder
SdkImplのビルダー。
ShellOutput
Output from a shell command execution.
SqliteSyncStore
SQLite-backed sync store.
SshLocation
SSH経由リモートホストの拠点。
SyncReport
sync/sync_route の結果。
SyncReportConflict
コンフリクト報告。SDK面の型。
SyncReportError
転送失敗の詳細。
SyncSummary
Aggregated sync status across all locations.
TaskId
Opaque task identifier (UUID v4).
TopologyFileView
TopologyFileとその全LocationFileを束ねたビュー。

Enums§

FileType
Type of file tracked by the sync engine.
FingerprintPrecision
フィンガープリントが保持する情報の精度レベル。
InfraError
インフラストラクチャ障害。
PresenceState
特定locationでのファイルの存在状態。
SyncError
Sync engine の統合エラー。
TaskStatus
Status of a background task.

Traits§

ContentHasher
Pluggable content identity resolver.
Location
拠点の多態抽象。
LocationFileStore
LocationFile永続化。
RemoteShell
Abstract shell for executing commands on a location’s host.
StorageBackend
Abstract file transfer backend.
SyncStoreSdk
vdsl-syncの外部向けAPI。
TopologyFileStore
TopologyFile永続化。
TransferStore
Transfer永続化。

Type Aliases§

ProgressFn
Progress callback for reporting transfer phase changes.