Module: utils/s3Bucket

Methods

deleteTechPackFromProvider(pathAndfileName) → {Boolean}

This function is resonsible to delete file from s3 bucket
Parameters:
Name Type Description
pathAndfileName String The path of the file
Returns:
The status of deleted techPack
Type
Boolean

getTechPackFromProvider(pathAndfileName) → {getTechPack}

This function is resonsible to fetch file from s3 bucket
Parameters:
Name Type Description
pathAndfileName String The path of the file
Returns:
The status and techpack path module:utils/s3Bucket~getTechPack
Type
getTechPack

uploadTechPackToProvider(pathAndfileName, base64) → {uploadTechPack}

This function is resonsible to upload file to s3 bucket
Parameters:
Name Type Description
pathAndfileName String The path of the file
base64 String The base64 of file to upload
Returns:
The status and techpack path module:utils/s3Bucket~getTechPack
Type
uploadTechPack

Type Definitions

getTechPack

Type:
  • Object
Properties:
Name Type Description
getTechPack.status Boolean The boolean
getTechPack.fileContent String The executed file path

uploadTechPack

Type:
  • Object
Properties:
Name Type Description
uploadTechPack.status Boolean The boolean
uploadTechPack.techPackPath String The executed techPack path