FilesUtil
An instance of this class represents Files utility service
Static Method Summary
| Static Public Methods | ||
| public static |
createService(chrisClient: Client): FilesUtil Create a service object of this class |
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(chrisClient: Client) Constructor |
|
Member Summary
| Public Members | ||
| public |
chrisClient: * |
|
Method Summary
| Public Methods | ||
| public |
async downloadFiles(pluginInstance: Object) Download files of a given plugin instance |
|
| public |
async downloadZip(pfdoInst: Object, zipName: String) Download a zip file of a given pfdorun instance |
|
| public |
async uploadFiles(files: Array): Promise<String> Upload files to CUBE |
|
| Private Methods | ||
| private |
Private method to download a blob/file/stream from CUBE |
|
Static Public Methods
Public Constructors
public constructor(chrisClient: Client) source
Constructor
Params:
| Name | Type | Attribute | Description |
| chrisClient | Client | A Chris Client Object |
Public Members
public chrisClient: * source
Public Methods
public async downloadFiles(pluginInstance: Object) source
Download files of a given plugin instance
Params:
| Name | Type | Attribute | Description |
| pluginInstance | Object |
public async downloadZip(pfdoInst: Object, zipName: String) source
Download a zip file of a given pfdorun instance
public async uploadFiles(files: Array): Promise<String> source
Upload files to CUBE
Params:
| Name | Type | Attribute | Description |
| files | Array | An array of files object |