G
G
Golem SDK
Search
⌃K

Class: StorageProvider

​yajsapi / Exports / storage / StorageProvider

Class: StorageProvider

​storage.StorageProvider

Hierarchy

Implemented by

Table of contents

Constructors

Methods

Constructors

constructor

• new StorageProvider()
Inherited from

Methods

new_destination

▾ new_destination(destination_file?): Promise<Destination>
Parameters
Name
Type
Default value
destination_file
null | string
null
Returns
Promise<Destination>
Inherited from
Defined in

upload_bytes

▾ upload_bytes(data): Promise<Source>
Parameters
Name
Type
data
Buffer
Returns
Promise<Source>
Inherited from
Defined in

upload_file

▾ upload_file(path): Promise<Source>
Parameters
Name
Type
path
string
Returns
Promise<Source>
Inherited from
Defined in

upload_stream

▾ upload_stream(length, stream): Promise<Source>
Parameters
Name
Type
length
number
stream
AsyncGenerator
Returns
Promise<Source>
Inherited from
Defined in