foundry.https_upload
module foundry.https_upload
foundry.https_upload
Private utility methods to upload files and/or folders to Globus using HTTPS instead of Globus Transfer.
function upload_to_endpoint
upload_to_endpoint
Upload local data to a Globus endpoint using HTTPS PUT requests. Data can be a folder or an individual file.
Args:
auths
(PubAuths): Dataclass of authorizers needed for upload. Includestransfer_client
,auth_client_openid
,and
endpoint_auth_clients, which is a Dict of
endpoint_id``: AuthClient mappings.local_data_path
(str): Path to the local dataset to publish to Foundry via HTTPS. Creates an HTTPS PUT request to upload the data specified to a Globus endpoint (default is NCSA endpoint) before it is transferred to MDF.endpoint_id
(str): Globus endpoint ID to upload the data to. Default is NCSA endpoint. Must match theendpoint_id
auth'd inauths.auth_client_gcs
.
Returns ------- (str) Globus data source URL: URL pointing to the data on the Globus endpoint
This file was automatically generated via lazydocs.