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