yajsapi - JavaScript high-level API
Yagna Contributor Guide

Class: InputStorageProvider

yajsapi / Exports / storage / InputStorageProvider

Class: InputStorageProvider

storage.InputStorageProvider

Hierarchy

Table of contents

Constructors

Methods

Constructors

constructor

new InputStorageProvider()

Methods

upload_bytes

upload_bytes(data): Promise<Source>

Parameters

Name

Type

data

Buffer

Returns

Promise<Source>

Defined in

yajsapi/storage/index.ts:69

upload_file

upload_file(path): Promise<Source>

Parameters

Name

Type

path

string

Returns

Promise<Source>

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>

Defined in

yajsapi/storage/index.ts:62