-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* * remove unnecessary creation of ocm reference in ocmshareprovider when accepting an ocm share * set transfer protocol when creating transfer type ocm share * refactor transfer endpoints for new ocm impl * refactor/cleanup gateway.ocmshareprovider.UpdateReceivedOCMShare() code * refactor data transfers folder config * new transfers config setting 'remove_on_cancel' * implement transfer destination path * update datatx example toml * update cli ocm-share-update-received with path flag * Add changelog * Add #PR --------- Co-authored-by: Antoon P <[email protected]>
- Loading branch information
Showing
8 changed files
with
260 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Enhancement: Update data transfers for current OCM shares implementation | ||
|
||
https://github.com/cs3org/reva/pull/3847 | ||
https://github.com/cs3org/reva/issues/3846 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,47 @@ | ||
# Example data transfer service configuration | ||
[grpc.services.datatx] | ||
# Rclone is the default data transfer driver | ||
txdriver = "rclone" | ||
# The shares,transfers db file (default: /var/tmp/reva/datatx-shares.json) | ||
tx_shares_file = "" | ||
# Base folder of the data transfers (default: /home/DataTransfers) | ||
data_transfers_folder = "" | ||
|
||
# Rclone data transfer driver | ||
[grpc.services.datatx.txdrivers.rclone] | ||
# Rclone endpoint | ||
endpoint = "http://..." | ||
# Basic auth is used | ||
auth_user = "...rcloneuser" | ||
auth_pass = "...rcloneusersecret" | ||
# The authentication scheme to use in the src and dest requests by rclone (follows the endpoints' authentication methods) | ||
# Valid values: | ||
# "bearer" (default) will result in rclone using request header: Authorization: "Bearer ...token..." | ||
# "x-access-token" will result in rclone using request header: X-Access-Token: "...token..." | ||
# If not set "bearer" is assumed | ||
auth_header = "x-access-token" | ||
# The transfers(jobs) db file (default: /var/tmp/reva/datatx-transfers.json) | ||
file = "" | ||
# Check status job interval in milliseconds | ||
job_status_check_interval = 2000 | ||
# The job timeout in milliseconds (must be long enough for big transfers!) | ||
job_timeout = 120000 | ||
|
||
[http.services.ocdav] | ||
# Rclone supports third-party copy push; for that to work with reva enable this setting | ||
enable_http_tpc = true | ||
# The authentication scheme reva uses for the tpc push call (the call to Destination). | ||
# Follows the destination endpoint authentication method. | ||
# Valid values: | ||
# "bearer" (default) will result in header: Authorization: "Bearer ...token..." | ||
# "x-access-token" will result in header: X-Access-Token: "...token..." | ||
# If not set "bearer" is assumed | ||
http_tpc_push_auth_header = "x-access-token" | ||
# all relevant settings for data transfers | ||
|
||
[grpc.services.gateway] | ||
datatx = "localhost:19000" | ||
# base folder of the data transfers (eg. /home/DataTransfers) | ||
data_transfers_folder = "" | ||
|
||
|
||
[grpc.services.datatx] | ||
# rclone is currently the only data transfer driver implementation | ||
txdriver = "rclone" | ||
# the shares,transfers db file (default: /var/tmp/reva/datatx-shares.json) | ||
tx_shares_file = "" | ||
# base folder of the data transfers (eg. /home/DataTransfers) | ||
data_transfers_folder = "" | ||
|
||
# rclone driver | ||
[grpc.services.datatx.txdrivers.rclone] | ||
# rclone endpoint | ||
endpoint = "http://..." | ||
# Basic auth is used for authenticating with rclone | ||
auth_user = "{rclone user}" | ||
auth_pass = "{rclone user secret}" | ||
# The authentication scheme to use in the src and dest requests by rclone (follows the endpoints' authentication methods) | ||
# Valid values: | ||
# "bearer" (default) will result in rclone using request header: Authorization: "Bearer ...token..." | ||
# "x-access-token" will result in rclone using request header: X-Access-Token: "...token..." | ||
# If not set "bearer" is assumed | ||
auth_header = "x-access-token" | ||
# the transfers(jobs) db file (default: /var/tmp/reva/datatx-transfers.json) | ||
file = "" | ||
# check status job interval in milliseconds | ||
job_status_check_interval = 2000 | ||
# the job timeout in milliseconds (must be long enough for big transfers!) | ||
job_timeout = 120000 | ||
|
||
[http.services.ocdav] | ||
# reva supports http third party copy | ||
enable_http_tpc = true | ||
# with rclone reva only supports http tpc push (ie. with the destination header specified) | ||
# The authentication scheme reva uses for the tpc push call (the call to Destination). | ||
# Follows the destination endpoint authentication method. | ||
# Valid values: | ||
# "bearer" (default) will result in header: Authorization: "Bearer ...token..." | ||
# "x-access-token" will result in header: X-Access-Token: "...token..." | ||
# If not set "bearer" is assumed | ||
http_tpc_push_auth_header = "x-access-token" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.