Skip to content

Latest commit

 

History

History
156 lines (86 loc) · 3.39 KB

storage.composedstorageprovider.md

File metadata and controls

156 lines (86 loc) · 3.39 KB

Class: ComposedStorageProvider

yajsapi / Exports / storage / ComposedStorageProvider

Class: ComposedStorageProvider

storage.ComposedStorageProvider

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ComposedStorageProvider(input_storage, output_storage)

Parameters

Name Type
input_storage InputStorageProvider
output_storage OutputStorageProvider

Defined in

yajsapi/storage/index.ts:123

Properties

_input

Private _input: any

Defined in

yajsapi/storage/index.ts:122

_output

Private _output: any

Defined in

yajsapi/storage/index.ts:123

Methods

new_destination

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

yajsapi/storage/index.ts:147

upload_bytes

upload_bytes(data): Promise<Source>

Parameters

Name Type
data Buffer

Returns

Promise<Source>

Implementation of

StorageProvider.upload_bytes

Defined in

yajsapi/storage/index.ts:132

upload_file

upload_file(path): Promise<Source>

Parameters

Name Type
path string

Returns

Promise<Source>

Implementation of

StorageProvider.upload_file

Defined in

yajsapi/storage/index.ts:143

upload_stream

upload_stream(length, stream): Promise<Source>

Parameters

Name Type
length number
stream AsyncGenerator

Returns

Promise<Source>

Implementation of

StorageProvider.upload_stream

Defined in

yajsapi/storage/index.ts:136