ExStorageService.Cluster.Scrubber (ex_storage_service v0.6.4)

Copy Markdown View Source

Streams one local blob representation through SHA-256 verification.

The scrubber is deliberately a plain module. Durable scheduling, leases, and repair dispatch belong to the outbox worker; this module only performs one bounded, optionally rate-limited verification.

Summary

Types

report()

@type report() :: %{hash: binary(), size: non_neg_integer(), bytes: non_neg_integer()}

Functions

scrub(hash, opts \\ [])

@spec scrub(
  binary(),
  keyword()
) :: {:ok, report()} | {:error, term()}