yajsapi - Java Script 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

Returns: StorageProvider

Inherited from: OutputStorageProvider

Methods

new_destination

new_destination(destination_file?: null | string): Promise<Destination>

Parameters:

Name

Type

Default value

destination_file

null | string

null

Returns: Promise<Destination>

Inherited from: OutputStorageProvider

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

upload_bytes

upload_bytes(data: Buffer): Promise<Source>

Parameters:

Name

Type

data

Buffer

Returns: Promise<Source>

Inherited from: InputStorageProvider

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

upload_file

upload_file(path: string): Promise<Source>

Parameters:

Name

Type

path

string

Returns: Promise<Source>

Inherited from: InputStorageProvider

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>

Inherited from: InputStorageProvider

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