Spectre.Instance.Erasure.Request (Spectre v0.3.3)

Copy Markdown View Source

Fenced request passed to a Checkpoint Store erasure callback.

A present checkpoint is bound by revision and canonical digest. Both fields are nil only when core observed the key as absent and asks the adapter to install an anti-resurrection marker for that absence.

Summary

Functions

Builds a validated request bound to one exact Instance Ref.

Types

t()

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

Functions

new(ref, attrs)

@spec new(Spectre.Instance.Ref.t(), map() | keyword()) ::
  {:ok, t()} | {:error, term()}

Builds a validated request bound to one exact Instance Ref.