yajsapi - JavaScript high-level API
Yagna Contributor Guide

Class: ComposedStorageProvider

yajsapi / Exports / storage / ComposedStorageProvider

Class: ComposedStorageProvider

storage.ComposedStorageProvider

Hierarchy

  • ComposedStorageProvider

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

Parameters:

Name

Type

input_storage

InputStorageProvider

output_storage

OutputStorageProvider

Returns: ComposedStorageProvider

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

Properties

_input

Private _input: any

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

_output

Private _output: any

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

Methods

new_destination

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

Parameters:

Name

Type

Default value

destination_file

null | string

null

Returns: Promise<Destination>

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

upload_bytes

upload_bytes(data: Buffer): Promise<Source>

Parameters:

Name

Type

data

Buffer

Returns: Promise<Source>

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

upload_file

upload_file(path: string): Promise<Source>

Parameters:

Name

Type

path

string

Returns: Promise<Source>

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

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:136