yajsapi / Exports / storage / StorageProvider
storage.StorageProvider
↳ StorageProvider
new StorageProvider(): StorageProvider
Returns: StorageProvider
Inherited from: OutputStorageProvider
▸ new_destination(destination_file?
: null | string): Promise<Destination>
Parameters:
Name | Type | Default value |
| null | string | null |
Returns: Promise<Destination>
Inherited from: OutputStorageProvider
Defined in: yajsapi/storage/index.ts:98
▸ upload_bytes(data
: Buffer): Promise<Source>
Parameters:
Name | Type |
| Buffer |
Returns: Promise<Source>
Inherited from: InputStorageProvider
Defined in: yajsapi/storage/index.ts:69
▸ upload_file(path
: string): Promise<Source>
Parameters:
Name | Type |
| string |
Returns: Promise<Source>
Inherited from: InputStorageProvider
Defined in: yajsapi/storage/index.ts:77
▸ upload_stream(length
: number, stream
: AsyncGenerator<Buffer, any, unknown>): Promise<Source>
Parameters:
Name | Type |
| number |
| AsyncGenerator<Buffer, any, unknown> |
Returns: Promise<Source>
Inherited from: InputStorageProvider
Defined in: yajsapi/storage/index.ts:62