Interface: Storage
Interface: Storage
Section titled “Interface: Storage”Defined in: server/src/storage/storage.ts:73
Properties
Section titled “Properties”
readonlyoptionalid?:string
Defined in: server/src/storage/storage.ts:75
Stable identifier used as part of the internal Cache API key.
maxUploadBytes?
Section titled “maxUploadBytes?”
readonlyoptionalmaxUploadBytes?:number
Defined in: server/src/storage/storage.ts:76
Methods
Section titled “Methods”head()
Section titled “head()”head(
hash):Promise<StorageObjectMeta|null>
Defined in: server/src/storage/storage.ts:78
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<StorageObjectMeta | null>
upload()
Section titled “upload()”upload(
params):Promise<StorageObjectMeta>
Defined in: server/src/storage/storage.ts:79
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<StorageObjectMeta>
download()
Section titled “download()”download(
params):Promise<StorageDownload|null>
Defined in: server/src/storage/storage.ts:80
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<StorageDownload | null>
delete()
Section titled “delete()”delete(
hash):Promise<void>
Defined in: server/src/storage/storage.ts:81
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<void>
presignUpload()?
Section titled “presignUpload()?”
optionalpresignUpload(params):Promise<PresignedUpload>
Defined in: server/src/storage/storage.ts:88
Reserved for v0.4 presigned upload; keeping the signature here now so adapter authors can code against a stable contract without a breaking change when direct-upload mode ships.
Parameters
Section titled “Parameters”params
Section titled “params”string
number
string
string
sha256?
Section titled “sha256?”string
expiresInSeconds?
Section titled “expiresInSeconds?”number
Returns
Section titled “Returns”Promise<PresignedUpload>
presignDownload()?
Section titled “presignDownload()?”
optionalpresignDownload(params):Promise<PresignedDownload>
Defined in: server/src/storage/storage.ts:97
Parameters
Section titled “Parameters”params
Section titled “params”string
expiresInSeconds?
Section titled “expiresInSeconds?”number
Returns
Section titled “Returns”Promise<PresignedDownload>
verifyUploaded()?
Section titled “verifyUploaded()?”
optionalverifyUploaded(params):Promise<StorageObjectMeta>
Defined in: server/src/storage/storage.ts:102
Parameters
Section titled “Parameters”params
Section titled “params”string
number
sha256?
Section titled “sha256?”string
Returns
Section titled “Returns”Promise<StorageObjectMeta>