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

Returns: InputStorageProvider

Methods

upload_bytes

upload_bytes(data: Buffer): Promise<Source>

Parameters:

Name

Type

data

Buffer

Returns: Promise<Source>

Defined in: yajsapi/storage/index.ts:69

upload_file

upload_file(path: string): Promise<Source>

Parameters:

Name

Type

path

string

Returns: Promise<Source>

Defined in: yajsapi/storage/index.ts:77

upload_stream

upload_stream(length: number, stream: AsyncGenerator<Buffer, any, unknown>): Promise<Source>

Parameters:

Name

Type

length

number

stream

AsyncGenerator<Buffer, any, unknown>

Returns: Promise<Source>

Defined in: yajsapi/storage/index.ts:62