Skip to content

Latest commit

 

History

History
133 lines (73 loc) · 3.09 KB

storage.storageprovider.md

File metadata and controls

133 lines (73 loc) · 3.09 KB

Class: StorageProvider

yajsapi / Exports / storage / StorageProvider

Class: StorageProvider

storage.StorageProvider

Hierarchy

Implemented by

Table of contents

Constructors

Methods

Constructors

constructor

new StorageProvider()

Inherited from

OutputStorageProvider.constructor

Methods

new_destination

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

yajsapi/storage/index.ts:98

upload_bytes

upload_bytes(data): Promise<Source>

Parameters

Name Type
data Buffer

Returns

Promise<Source>

Inherited from

InputStorageProvider.upload_bytes

Defined in

yajsapi/storage/index.ts:69

upload_file

upload_file(path): Promise<Source>

Parameters

Name Type
path string

Returns

Promise<Source>

Inherited from

InputStorageProvider.upload_file

Defined in

yajsapi/storage/index.ts:77

upload_stream

upload_stream(length, stream): Promise<Source>

Parameters

Name Type
length number
stream AsyncGenerator

Returns

Promise<Source>

Inherited from

InputStorageProvider.upload_stream

Defined in

yajsapi/storage/index.ts:62