Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scyllaclient: rclone, change RcloneListDirOpts to use better defaults
- NoModTime is replaced with ShowModTime - NoMimeType is removed - ShowX is removed Relates to #3039 With this patch ```go opts := scyllaclient.RcloneListDirOpts{ Recurse: true, FilesOnly: true, ShowModTime: true, } x, err := client.RcloneListDir(ctx, scyllaclienttest.TestHost, "s3:my-foo/backup/meta/cluster/5c3667c9-e8da-4a75-8541-a48b7c2b3db4", &opts) ``` yields ``` $ make pkg-integration-test PKG=./pkg/scyllaclient RUN=TestRcloneS3ListIntegration | grep HEAD 09:49:16.330 DEBUG rclone HEAD /my-foo/backup/meta/cluster/5c3667c9-e8da-4a75-8541-a48b7c2b3db4 HTTP/1.1 09:49:16.491 DEBUG rclone HEAD /my-foo/backup/meta/cluster/5c3667c9-e8da-4a75-8541-a48b7c2b3db4/dc/dc1/node/139bf9e7-162f-40eb-9b5c-3220a866567b/task_843c83b8-5d2c-4686-b968-815d2689a41a_tag_sm_20220217110728UTC_manifest.json.gz HTTP/1.1 09:49:16.528 DEBUG rclone HEAD /my-foo/backup/meta/cluster/5c3667c9-e8da-4a75-8541-a48b7c2b3db4/dc/dc1/node/139bf9e7-162f-40eb-9b5c-3220a866567b/task_843c83b8-5d2c-4686-b968-815d2689a41a_tag_sm_20220217111110UTC_manifest.json.gz HTTP/1.1 09:49:16.555 DEBUG rclone HEAD /my-foo/backup/meta/cluster/5c3667c9-e8da-4a75-8541-a48b7c2b3db4/dc/dc1/node/869fbac6-244f-4369-af06-89e9052a33ee/task_843c83b8-5d2c-4686-b968-815d2689a41a_tag_sm_20220217110728UTC_manifest.json.gz HTTP/1.1 09:49:16.586 DEBUG rclone HEAD /my-foo/backup/meta/cluster/5c3667c9-e8da-4a75-8541-a48b7c2b3db4/dc/dc1/node/869fbac6-244f-4369-af06-89e9052a33ee/task_843c83b8-5d2c-4686-b968-815d2689a41a_tag_sm_20220217111110UTC_manifest.json.gz HTTP/1.1 09:49:16.614 DEBUG rclone HEAD /my-foo/backup/meta/cluster/5c3667c9-e8da-4a75-8541-a48b7c2b3db4/dc/dc1/node/881fbc3d-833b-42cc-ab51-3b66f127c3e8/task_843c83b8-5d2c-4686-b968-815d2689a41a_tag_sm_20220217110728UTC_manifest.json.gz HTTP/1.1 09:49:16.634 DEBUG rclone HEAD /my-foo/backup/meta/cluster/5c3667c9-e8da-4a75-8541-a48b7c2b3db4/dc/dc1/node/881fbc3d-833b-42cc-ab51-3b66f127c3e8/task_843c83b8-5d2c-4686-b968-815d2689a41a_tag_sm_20220217111110UTC_manifest.json.gz HTTP/1.1 09:49:16.657 DEBUG rclone HEAD /my-foo/backup/meta/cluster/5c3667c9-e8da-4a75-8541-a48b7c2b3db4/dc/dc2/node/59cf508b-91ea-41f1-ba7e-cf0475e65124/task_843c83b8-5d2c-4686-b968-815d2689a41a_tag_sm_20220217110728UTC_manifest.json.gz HTTP/1.1 09:49:16.689 DEBUG rclone HEAD /my-foo/backup/meta/cluster/5c3667c9-e8da-4a75-8541-a48b7c2b3db4/dc/dc2/node/59cf508b-91ea-41f1-ba7e-cf0475e65124/task_843c83b8-5d2c-4686-b968-815d2689a41a_tag_sm_20220217111110UTC_manifest.json.gz HTTP/1.1 09:49:16.727 DEBUG rclone HEAD /my-foo/backup/meta/cluster/5c3667c9-e8da-4a75-8541-a48b7c2b3db4/dc/dc2/node/92ff550e-52bb-4ac4-866c-576cec82ccd2/task_843c83b8-5d2c-4686-b968-815d2689a41a_tag_sm_20220217110728UTC_manifest.json.gz HTTP/1.1 09:49:16.752 DEBUG rclone HEAD /my-foo/backup/meta/cluster/5c3667c9-e8da-4a75-8541-a48b7c2b3db4/dc/dc2/node/92ff550e-52bb-4ac4-866c-576cec82ccd2/task_843c83b8-5d2c-4686-b968-815d2689a41a_tag_sm_20220217111110UTC_manifest.json.gz HTTP/1.1 09:49:16.787 DEBUG rclone HEAD /my-foo/backup/meta/cluster/5c3667c9-e8da-4a75-8541-a48b7c2b3db4/dc/dc2/node/a9e62b6f-2823-48e6-a6ae-5b9daae65302/task_843c83b8-5d2c-4686-b968-815d2689a41a_tag_sm_20220217110728UTC_manifest.json.gz HTTP/1.1 09:49:16.810 DEBUG rclone HEAD /my-foo/backup/meta/cluster/5c3667c9-e8da-4a75-8541-a48b7c2b3db4/dc/dc2/node/a9e62b6f-2823-48e6-a6ae-5b9daae65302/task_843c83b8-5d2c-4686-b968-815d2689a41a_tag_sm_20220217111110UTC_manifest.json.gz HTTP/1.1 ``` and ```go opts := scyllaclient.RcloneListDirOpts{ Recurse: true, FilesOnly: true, } x, err := client.RcloneListDir(ctx, scyllaclienttest.TestHost, "s3:my-foo/backup/meta/cluster/5c3667c9-e8da-4a75-8541-a48b7c2b3db4", &opts) ``` yields ``` $ make pkg-integration-test PKG=./pkg/scyllaclient RUN=TestRcloneS3ListIntegration | grep HEAD 09:51:32.800 DEBUG rclone HEAD /my-foo/backup/meta/cluster/5c3667c9-e8da-4a75-8541-a48b7c2b3db4 HTTP/1.1 ```
- Loading branch information