Interface: StorageObjectMeta
Interface: StorageObjectMeta
Section titled “Interface: StorageObjectMeta”Defined in: server/src/storage/storage.ts:15
Storage adapter contract for plasma file() columns.
core knows only about Storage; concrete implementations
(r2Storage today, s3Storage / gcsStorage etc. later) live behind
this interface. createSyncHandler({ blobs: { default: r2Storage(...) } })
wires a live instance in at request time so schemas stay browser-safe
(no R2Bucket / secret leakage into shared modules).
Streaming-first: download.body returns a ReadableStream<Uint8Array>
and upload.body accepts one so proxied uploads on Workers stay under
the CPU / body-size caps.
Properties
Section titled “Properties”
readonlyhash:string
Defined in: server/src/storage/storage.ts:16
readonlysize:number
Defined in: server/src/storage/storage.ts:17
readonlymime:string
Defined in: server/src/storage/storage.ts:18
readonlyoptionaletag?:string
Defined in: server/src/storage/storage.ts:19
uploadedAt?
Section titled “uploadedAt?”
readonlyoptionaluploadedAt?:Date
Defined in: server/src/storage/storage.ts:20
checksums?
Section titled “checksums?”
readonlyoptionalchecksums?: {sha256?:string|ArrayBuffer; }
Defined in: server/src/storage/storage.ts:21
sha256?
Section titled “sha256?”
readonlyoptionalsha256?:string|ArrayBuffer
customMetadata?
Section titled “customMetadata?”
readonlyoptionalcustomMetadata?:Readonly<Record<string,string>>
Defined in: server/src/storage/storage.ts:22