Glider
|
Functions | |
gen_file_list_drive (final_path) | |
gen_file_list_event (event, final_path) | |
send_notification (module, webhook_url, status, files=None, error=None) | |
Constants | |
ACCESS_ID | |
Access keys for AWS. | |
ACCESS_KEY | |
Access keys for AWS. | |
s3_client = boto3.client("s3", aws_access_key_id=ACCESS_ID, aws_secret_access_key= ACCESS_KEY) | |
Connection for AWS using boto3. | |
src.upload_module.common.Tools.gen_file_list_drive | ( | final_path | ) |
src.upload_module.common.Tools.gen_file_list_event | ( | event, | |
final_path ) |
src.upload_module.common.Tools.send_notification | ( | module, | |
webhook_url, | |||
status, | |||
files = None, | |||
error = None ) |
Sends a success/fail notification to some webhook. Args: module (str): current module webhook_url (str): webhook url status (str): final status of execution files (list): files uploaded to s3. None when status =! successful error (str): error show while procedure fails. None when status = successful Returns: Nothing
src.upload_module.common.Tools.ACCESS_ID |
src.upload_module.common.Tools.ACCESS_KEY |
src.upload_module.common.Tools.s3_client = boto3.client("s3", aws_access_key_id=ACCESS_ID, aws_secret_access_key= ACCESS_KEY) |