reference

Class: GftpStorageProvider

storage/gftp.GftpStorageProvider

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new GftpStorageProvider(logger?)

Parameters

NameType
logger?Logger

Defined in

src/storage/gftp.ts:24

Methods

init

init(): Promise<void>

Initialize storage provider.

Returns

Promise<void>

Implementation of

StorageProvider.init

Defined in

src/storage/gftp.ts:30


isInitiated

isInitiated(): boolean

Returns

boolean

Defined in

src/storage/gftp.ts:63


receiveFile

receiveFile(path): Promise<string>

Return allocated resource URL from Yagna of a file to be downloaded.

Parameters

NameType
pathstring

Returns

Promise<string>

Implementation of

StorageProvider.receiveFile

Defined in

src/storage/gftp.ts:75


receiveData

receiveData(): Promise<string>

Return allocated resource URL from Yagna of a file to be downloaded.

Returns

Promise<string>

Implementation of

StorageProvider.receiveData

Defined in

src/storage/gftp.ts:80


publishFile

publishFile(src): Promise<string>

Return allocated resource URL from Yagna of a file to be uploaded.

Parameters

NameType
srcstring

Returns

Promise<string>

Implementation of

StorageProvider.publishFile

Defined in

src/storage/gftp.ts:84


publishData

publishData(src): Promise<string>

Return allocated resource URL from Yagna of data to be uploaded.

Parameters

NameType
srcUint8Array

Returns

Promise<string>

Implementation of

StorageProvider.publishData

Defined in

src/storage/gftp.ts:90


release

release(): Promise<void>

Release previously allocated resource URL from Yagna.

Returns

Promise<void>

Implementation of

StorageProvider.release

Defined in

src/storage/gftp.ts:102


close

close(): Promise<void>

Close storage provider and release all resources.

Returns

Promise<void>

Implementation of

StorageProvider.close

Defined in

src/storage/gftp.ts:116