-
Notifications
You must be signed in to change notification settings - Fork 2
storage.Interface.StorageDriverContract
@sclable/nestjs-libs / storage / StorageDriverContract
createBucket(
bucket
):Promise
<void
>
• bucket: string
Promise
<void
>
packages/storage/src/contracts/storage-driver.contract.ts:8
deleteObject(
bucket
,id
):Promise
<boolean
>
• bucket: string
• id: string
Promise
<boolean
>
packages/storage/src/contracts/storage-driver.contract.ts:17
getDownloadUrl(
bucket
,id
,filename
):Promise
<string
>
• bucket: string
• id: string
• filename: string
Promise
<string
>
packages/storage/src/contracts/storage-driver.contract.ts:19
getMetaData(
bucket
,id
):Promise
<null
|FileMetaData
>
• bucket: string
• id: string
Promise
<null
| FileMetaData
>
packages/storage/src/contracts/storage-driver.contract.ts:18
getObject(
bucket
,id
):Promise
<Buffer
>
• bucket: string
• id: string
Promise
<Buffer
>
packages/storage/src/contracts/storage-driver.contract.ts:15
getObjectStream(
bucket
,id
):Promise
<ReadableStream
>
• bucket: string
• id: string
Promise
<ReadableStream
>
packages/storage/src/contracts/storage-driver.contract.ts:16
getUploadUrl(
bucket
,id
,onUploaded
):Promise
<string
>
• bucket: string
• id: string
• onUploaded
Promise
<string
>
packages/storage/src/contracts/storage-driver.contract.ts:21
putObject(
bucket
,id
,content
,metadata
?):Promise
<string
>
• bucket: string
• id: string
• content: Buffer
| Readable
• metadata?: FileMetaData
Promise
<string
>