RecoveredObject

One object’s row in a RecoverReport.

Usage

Source

RecoveredObject(
    key,
    kind,
    namespaces=dict(),
    holds_refs=True,
    error=None,
    missing_pin=None,
    unrecognized=list()
)

Parameter Attributes

key: str

Object key.

kind: str

Backend kind.

namespaces: dict[str, RecoveredRefs] = dict()

Dataset id -> what the object’s store holds under it.

holds_refs: bool = True

Whether the kind makes refs at all (PIN or FORK); a file or Delta object has none to find.

error: str | None = None

Why the store’s refs could not be listed, if they could not.

missing_pin: str | None = None

The pin id this checkout’s manifest names that the store’s pins lack; repair recreates it, a commit does not.

unrecognized: list[str] = list()
Refs named like tether’s (tether.ws.*, pins) that carry no dataset id tether can read.