yajsapi - JavaScript high-level API
Yagna Contributor Guide

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