DataDungeon::Storage
Storage backend abstraction. file_path on an asset is an opaque key;
a Storage implementation resolves that key to a real location. This keeps
DataDungeon backend-agnostic: LocalStorage here, S3Storage (R2, Garage,
MinIO, AWS) in data_dungeon/s3.
Instance methods
Enumerate every object key currently in the backend. Used by the consistency sweep to find objects with no owning row. May be expensive on large object stores; intended for maintenance, not the hot path.
Whether checking an object costs a file-system call rather than a
network round trip. Lookups only confirm that a record's object still
exists when it does; for remote storage, check_consistency finds drift.
Stream the object at the given key: the block gets an IO over its bytes. This default reads the whole object; adapters that can stream override it.
Resolve a key to a usable location — a local absolute path here, a URL for object stores.