yajsapi / Exports / storage / ComposedStorageProvider
storage.ComposedStorageProvider
• new ComposedStorageProvider(input_storage
, output_storage
)
Parameters
Name | Type |
---|---|
input_storage |
InputStorageProvider |
output_storage |
OutputStorageProvider |
Defined in
• Private
_input: any
Defined in
• Private
_output: any
Defined in
▸ new_destination(destination_file?
): Promise
<Destination>
Parameters
Name | Type | Default value |
---|---|---|
destination_file |
null | string |
null |
Returns
Promise
<Destination>
Implementation of
StorageProvider.new_destination
Defined in
▸ upload_bytes(data
): Promise
<Source>
Parameters
Name | Type |
---|---|
data |
Buffer |
Returns
Promise
<Source>
Implementation of
StorageProvider.upload_bytes
Defined in
▸ upload_file(path
): Promise
<Source>
Parameters
Name | Type |
---|---|
path |
string |
Returns
Promise
<Source>
Implementation of
StorageProvider.upload_file
Defined in
▸ upload_stream(length
, stream
): Promise
<Source>
Parameters
Name | Type |
---|---|
length |
number |
stream |
AsyncGenerator |
Returns
Promise
<Source>
Implementation of
StorageProvider.upload_stream
Defined in