Spectre.Instance.Erasure.Status (Spectre v0.3.4)

Copy Markdown View Source

Portable projection of a store-private Instance erasure marker.

The marker contains no checkpoint payload or Subject value. Its persisted representation is owned by the adapter; this struct is only the normalized read-back contract returned to core.

Summary

Functions

Returns the canonical digest of the privacy-safe marker projection.

Builds the public status corresponding to an accepted request.

Types

t()

@type t() :: %Spectre.Instance.Erasure.Status{
  checkpoint_digest: String.t() | nil,
  erased_at: non_neg_integer(),
  erased_revision: non_neg_integer() | nil,
  erasure_id: String.t(),
  instance_key: String.t(),
  owner_fencing_token: pos_integer(),
  schema_version: pos_integer()
}

Functions

digest(status)

@spec digest(t()) :: String.t()

Returns the canonical digest of the privacy-safe marker projection.

from_request(request, erased_at)

@spec from_request(Spectre.Instance.Erasure.Request.t(), non_neg_integer()) ::
  {:ok, t()} | {:error, term()}

Builds the public status corresponding to an accepted request.