Class: GftpStorageProvider
shared/storage/gftp.GftpStorageProvider
Implements
Table of contents
Constructors
Methods
Constructors
constructor
• new GftpStorageProvider(logger?
): GftpStorageProvider
Parameters
Name | Type |
---|---|
logger? | Logger |
Returns
Defined in
Methods
init
▸ init(): Promise
<void
>
Initialize storage provider.
Returns
Promise
<void
>
Implementation of
Defined in
isInitiated
▸ isInitiated(): boolean
Returns
boolean
Defined in
receiveFile
▸ receiveFile(path
): Promise
<string
>
Return allocated resource URL from Yagna of a file to be downloaded.
Parameters
Name | Type |
---|---|
path | string |
Returns
Promise
<string
>
Implementation of
Defined in
receiveData
▸ receiveData(): Promise
<string
>
Return allocated resource URL from Yagna of a file to be downloaded.
Returns
Promise
<string
>
Implementation of
Defined in
publishFile
▸ publishFile(src
): Promise
<string
>
Return allocated resource URL from Yagna of a file to be uploaded.
Parameters
Name | Type |
---|---|
src | string |
Returns
Promise
<string
>
Implementation of
Defined in
publishData
▸ publishData(src
): Promise
<string
>
Return allocated resource URL from Yagna of data to be uploaded.
Parameters
Name | Type |
---|---|
src | Uint8Array |
Returns
Promise
<string
>
Implementation of
Defined in
release
▸ release(): Promise
<void
>
Release previously allocated resource URL from Yagna.
Returns
Promise
<void
>
Implementation of
Defined in
src/shared/storage/gftp.ts:105
close
▸ close(): Promise
<void
>
Close storage provider and release all resources.
Returns
Promise
<void
>
Implementation of
Defined in
src/shared/storage/gftp.ts:119
isReady
▸ isReady(): boolean
Tells if the storage provider is ready for use
Returns
boolean
Implementation of
Defined in
Was this helpful?