G
G
Golem SDK
Search…
yapapi - Python high-level API
yajsapi - JavaScript high-level API
Classes
Yagna Contributor Guide
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

Properties

_input

• Private _input: any
Defined in

_output

• Private _output: any
Defined in

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

upload_bytes

â–¸ upload_bytes(data): Promise<Source>
Parameters
Name
Type
data
Buffer
Returns
Promise<Source>
Implementation of
StorageProvider.upload_bytes
Defined in

upload_file

â–¸ upload_file(path): Promise<Source>
Parameters
Name
Type
path
string
Returns
Promise<Source>
Implementation of
StorageProvider.upload_file
Defined in

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