Commit Graph

  • d2fd31d728 fix resty import fix/resty_import Chun-Hung Tseng 2025-01-27 22:17:55 +00:00
  • 4ab06a053b Update go-proton-api version master Chun-Hung Tseng 2025-01-27 21:49:37 +00:00
  • 09e1fe7778 Merge pull request #30 from major0/fix/proton-go-api-references Chun-Hung Tseng 2025-01-27 22:46:47 +01:00
  • 04a533aec9 feat: leverage go's mod replace sanely Mark Ferrell 2025-01-16 04:40:28 -08:00
  • 08abccbeb3 Merge pull request #28 from lawmurray/master Chun-Hung Tseng 2024-11-19 21:03:33 +01:00
  • 2172bb8805 Merge pull request #27 from tomekit/master Chun-Hung Tseng 2024-09-22 18:12:12 +02:00
  • a6d0537d37 Make use of XAttr included in the Link object, rather than getting it with an extra API request. Lawrence Murray 2024-09-18 21:15:49 +07:00
  • 3bdb034e9c Address SHA1 case issue. https://github.com/henrybear327/Proton-API-Bridge/issues/21 and https://github.com/rclone/rclone/issues/7345#issuecomment-1821463100 Tomasz Raganowicz 2024-05-05 21:12:02 +02:00
  • cd25c0345b Create FUNDING.yml Chun-Hung Tseng 2023-09-22 17:12:07 +08:00
  • f6671447d0 Merge pull request #19 from henrybear327/feat/add_version v1.0.0 Chun-Hung Tseng 2023-09-10 19:53:13 +02:00
  • 5a40ccff1d Add lib version string Chun-Hung Tseng 2023-09-10 10:06:22 +00:00
  • 5bfa15b567 Merge pull request #13 from henrybear327/protondrive/fix_signature_verification_bug Chun-Hung Tseng 2023-09-08 14:59:33 +08:00
  • bc9415009f Select the address key according to the email address recorded at Link Chun-Hung Tseng 2023-09-06 01:02:21 +02:00
  • 762502d1fb Merge pull request #15 from henrybear327/feat/improve_error_messages Chun-Hung Tseng 2023-09-06 09:33:17 +08:00
  • 264c05c839 Improve 2FA and replacing existing draft error messages Chun-Hung Tseng 2023-09-06 03:32:30 +02:00
  • cd239be14b Merge pull request #14 from henrybear327/feat/two_password_mode Chun-Hung Tseng 2023-09-06 08:55:36 +08:00
  • d5bf0418ca Add two-password mode Chun-Hung Tseng 2023-09-06 02:54:59 +02:00
  • 631e846856 Merge pull request #12 from henrybear327/fix/deref_nil_ptr Chun-Hung Tseng 2023-09-06 05:32:40 +08:00
  • 1261c687b6 Fix de-referencing nil pointer bug in GetActiveRevisionAttrs Chun-Hung Tseng 2023-08-02 18:56:07 +02:00
  • e054c27a8f Skip signature verification in most parts feat/skip_signature_verification Chun-Hung Tseng 2023-08-02 18:20:56 +02:00
  • b52f839b20 Add SkipSignatureVerifications to config Chun-Hung Tseng 2023-08-02 17:47:03 +02:00
  • 2fa36bc924 Refactor the code Un-expose the unnecessary methods Update go mod Chun-Hung Tseng 2023-08-02 17:30:57 +02:00
  • 611ec433f8 Fix a bug for the users in 32-bit system that the User object won't be able to be parsed due to overflow as int is default to int32 Chun-Hung Tseng 2023-07-25 22:28:45 +02:00
  • aeabe60e01 Fix signing of SetContentKeyPacketAndSignature Chun-Hung Tseng 2023-07-23 23:35:41 +02:00
  • e2f5412124 Fix RevisionXAttrCommon digests related logic Chun-Hung Tseng 2023-07-23 08:25:17 +02:00
  • a33d554f70 Add mailing sending feature for Anson Chen :) feat/mail-sending Chun-Hung Tseng 2023-07-16 21:56:44 +02:00
  • 8d7db1ea7b Implememt the file download seek support Update to support more fields in RevisionXAttrCommon Chun-Hung Tseng 2023-07-17 21:51:04 +02:00
  • 733b3e5b6e Reduce DOWNLOAD_BATCH_BLOCK_SIZE to 1 and explain the reason Chun-Hung Tseng 2023-07-17 09:58:34 +02:00
  • 64559fc589 Parallel upload encryption with concurrency control feat/parallel_crypto Chun-Hung Tseng 2023-07-16 10:11:52 +02:00
  • 0c3101417a Fix integration test Chun-Hung Tseng 2023-07-16 10:16:35 +02:00
  • acbb0db3d0 Parallel upload block with concurrency control Chun-Hung Tseng 2023-07-16 09:28:15 +02:00
  • 78268b452e Parallel upload block (concurrency control in the next commit) Chun-Hung Tseng 2023-07-16 06:35:44 +02:00
  • cedf21b695 Replace disableCaching with enableCaching Chun-Hung Tseng 2023-07-16 06:06:16 +02:00
  • ad20ba8bd0 Refactor file download to return file ReadCloser, and also support on-demand block decryption Chun-Hung Tseng 2023-07-15 17:03:53 +02:00
  • d7a4545314 Implemented complete caching mechanism Chun-Hung Tseng 2023-07-15 00:52:55 +02:00
  • 34b79bffa4 Remove extra getLink call during file upload Chun-Hung Tseng 2023-07-14 10:24:52 +02:00
  • 4ae992cf98 Fix a bug in file upload, where the reader doesn't fully read till buffer full Chun-Hung Tseng 2023-07-14 01:15:18 +02:00
  • db549cdb89 Add GetActiveRevisionAttrs Chun-Hung Tseng 2023-07-13 23:15:42 +02:00
  • 5719017050 Update the GetHashKey code Chun-Hung Tseng 2023-07-13 22:47:21 +02:00
  • 5e56932c15 Use CheckAvailableHashes for SearchByNameInActiveFolderByID Chun-Hung Tseng 2023-07-13 22:07:44 +02:00
  • 4924a926d6 Add insert kr to cache Chun-Hung Tseng 2023-07-13 19:55:59 +02:00
  • d293198b51 Add insert link to cache Add DisableLinkCaching config Chun-Hung Tseng 2023-07-12 22:50:39 +02:00
  • e330ee8276 Refactor GetLink in preparation for caching Chun-Hung Tseng 2023-07-12 22:13:05 +02:00
  • 01d4a4ab08 Add authHandler and deAuthHandler to the ProtonDrive init function Chun-Hung Tseng 2023-07-12 21:46:29 +02:00
  • db0f81b687 Update README Chun-Hung Tseng 2023-07-12 21:45:44 +02:00
  • 916abed02a Fix file upload EOF bug Chun-Hung Tseng 2023-07-12 18:13:40 +02:00
  • af49c9f19b Rewritten file upload logic (esp. on failed upload handling and big-file upload) Chun-Hung Tseng 2023-07-12 17:58:47 +02:00
  • abb6ec8a98 Parallel upload attempt feat/parallel_upload Chun-Hung Tseng 2023-07-13 00:27:58 +02:00
  • 668fc9d996 buggy work feat/cache Chun-Hung Tseng 2023-07-12 23:26:53 +02:00
  • 582f10cc62 Add insert link to cache Add DisableLinkCaching config Chun-Hung Tseng 2023-07-12 22:50:39 +02:00
  • b3bb8ade20 Refactor GetLink in preparation for caching Chun-Hung Tseng 2023-07-12 22:13:05 +02:00
  • d306c8423d Add authHandler and deAuthHandler to the ProtonDrive init function Chun-Hung Tseng 2023-07-12 21:46:29 +02:00
  • 55b20a7957 Update README Chun-Hung Tseng 2023-07-12 21:45:44 +02:00
  • 5244f2e831 Fix file upload EOF bug Chun-Hung Tseng 2023-07-12 18:13:40 +02:00
  • f72c03f083 Rewritten file upload logic (esp. on failed upload handling and big-file upload) Chun-Hung Tseng 2023-07-12 17:58:47 +02:00
  • e294306c44 Fix default MIME type bug Chun-Hung Tseng 2023-07-12 13:14:53 +02:00
  • c46d7d26da Return access credentials if it's a successful new login Chun-Hung Tseng 2023-07-07 22:49:52 +02:00
  • d284d50b61 Refactor file upload Use filename to detect MIME type Chun-Hung Tseng 2023-07-06 12:11:03 +02:00
  • b675a36304 Add a new configuration option: UserAgent Chun-Hung Tseng 2023-07-01 10:08:07 +02:00
  • a4e81165f9 Fix mainshareKR bug Chun-Hung Tseng 2023-06-30 14:14:26 +02:00
  • 208b70cfd4 Improve/refactor file upload - when the file draft exists Add config option - ReplaceExistingDraft Refactor and add integration tests Update README and add notes for MIME parsing and progress bug Improve returned errors Chun-Hung Tseng 2023-06-29 22:59:17 +02:00
  • fef42081b3 Make AppVersion a configuration option Refactor out NewClientWithRefresh in the login function Chun-Hung Tseng 2023-06-29 22:10:03 +02:00
  • 257ea3c1fe Initial commit Chun-Hung Tseng 2023-06-20 17:10:43 +02:00
  • bd817ff71d Update go mod backup/pre-PR Chun-Hung Tseng 2023-06-29 00:04:31 +02:00
  • 2b539fa0d4 Update README Fix integration test Chun-Hung Tseng 2023-06-28 22:44:25 +02:00
  • ac838dd5e1 Add downloaded block hash verification Chun-Hung Tseng 2023-06-28 22:28:49 +02:00
  • 89beb44c28 All large file download and upload testing Chun-Hung Tseng 2023-06-26 23:37:40 +02:00
  • 37252ec62a Add license Chun-Hung Tseng 2023-06-26 23:07:10 +02:00
  • 669985e246 Initial commit Chun-Hung Tseng 2023-06-20 17:10:43 +02:00
  • cce9f787a8 Add MoveFile code dev Chun-Hung Tseng 2023-06-26 21:56:16 +02:00
  • 3ea21c8ebf Rewrite integration tests Introduce move file Rename dest to dst Chun-Hung Tseng 2023-06-26 21:26:13 +02:00
  • a676af5570 Fix move link Chun-Hung Tseng 2023-06-26 11:59:04 +02:00
  • 34a2837ffa Implement move link Chun-Hung Tseng 2023-06-25 17:02:19 +02:00
  • ba9695a41c Implement file system modTime and size Refactor GetActiveRevision Add GetActiveRevisionWithAttrs Chun-Hung Tseng 2023-06-25 15:17:25 +02:00
  • dd61cc8863 Update go mod Chun-Hung Tseng 2023-06-24 23:02:08 +02:00
  • 39929049a1 Initial implementation of adding a revision during file upload Fix modtime bug Move block constant out Chun-Hung Tseng 2023-06-24 22:59:32 +02:00
  • f5cd01170f Refactor file upload to prepare for adding new revisions Chun-Hung Tseng 2023-06-24 14:57:48 +02:00
  • 3b8d20a11c Return file size on upload Chun-Hung Tseng 2023-06-24 12:44:25 +02:00
  • 6570484818 Initial commit Chun-Hung Tseng 2023-06-20 17:10:43 +02:00
  • 944c82c536 Init Chun-Hung Tseng 2023-06-20 17:10:00 +02:00