Commit Graph
40 Commits
Author SHA1 Message Date
RandyTheSilly d21de424cb Simplify error handling syntax 2026-01-08 18:50:10 -05:00
RandyTheSilly 5e5a7c57e9 Major sync refactor (do not use SFTP for age files; allow using core.LibmuttonInit with custom device ID prefixes) 2026-01-08 16:59:58 -05:00
RandyTheSilly a18c3ea1d6 Simply check if sanity check file should be generated based on nil input 2026-01-01 21:28:35 -05:00
RandyTheSilly 28286788a0 Fully support non-destructive append in core.LibmuttonInit(); update copyright year for 2026 2026-01-01 19:52:08 -05:00
RandyTheSilly 571bc0a3bd Rename "cfg" package to "config", always use "cfg" for variable names 2025-12-27 12:11:10 -05:00
RandyTheSilly d8d761b0ca Small comment update 2025-12-26 22:40:38 -05:00
RandyTheSilly 2880ce2823 Address JetBrains warnings 2025-12-26 19:12:48 -05:00
RandyTheSilly b591e2ef5a Switch config format from ini to json (drop ini dependency since json is now used for syncing) 2025-12-17 00:36:20 -05:00
RandyTheSilly 35db3bf20b Rename syncclient "oneOff" functions to be less redundant 2025-12-11 19:34:05 -05:00
RandyTheSilly 941a2dc8b8 Eliminate synccycles package [synccycles.DeviceIDGen() => syncclient.DeviceIDGenFromClient()] 2025-12-11 19:31:37 -05:00
RandyTheSilly 50d51f9d96 Initial password aging support 2025-11-23 03:20:58 -05:00
RandyTheSilly aa10016f77 Allow forcing offline mode in LibmuttonInit() 2025-10-26 13:02:10 -04:00
RandyTheSilly b9175d7ff3 Rename all occurrences of "passphrase" to "password" 2025-10-26 12:28:07 -04:00
RandyTheSilly fb2120c94e Allow setting custom device ID prefix 2025-07-06 11:29:41 -04:00
RandyTheSilly 362eb75dc4 Fix offlineMode not being written for third-party clients with no client-specific config data 2025-06-28 19:09:58 -04:00
RandyTheSilly 0f03096ed2 Default to online mode in init 2025-06-07 14:20:49 -04:00
RandyTheSilly 4a0e0f8e9e Ensure old device ID remains active on the client if new device ID registration fails 2025-06-01 16:24:47 -04:00
RandyTheSilly d0f7b663d5 Simplify target existence checks 2025-06-01 15:24:31 -04:00
RandyTheSilly 5f8789a0f0 Bump go-boilerplate; make error codes sequential 2025-06-01 14:17:51 -04:00
RandyTheSilly c4db7dfd59 Fix passphrase setup in EntryRefresh() 2025-05-31 19:57:59 -04:00
RandyTheSilly 3dd07e7165 Add offline mode option to libmutton.ini 2025-05-29 23:39:15 -04:00
RandyTheSilly a1c47b06a1 Address JetBrains warnings 2025-05-29 22:05:57 -04:00
RandyTheSilly 40f0f35f45 Return errors, rather than printing them 2025-05-30 01:08:43 +00:00
RandyTheSilly 74b8261bc8 Do not rely on importing projects for libmutton initialization 2025-05-29 23:35:50 +00:00
RandyTheSilly 36bbf88690 Refactor: Split into more packages to reduce server binary size 2025-05-12 16:26:03 +00:00
RandyTheSilly 03c040b373 Use go-boilerplate 2025-05-09 16:12:03 +00:00
RandyTheSilly ac85577916 Use platform-specific path separator when generating sanity check file 2025-05-08 20:45:32 -04:00
RandyTheSilly 649b60e2fe Initial migration from GPG to RCW 2025-05-04 17:41:44 -04:00
RandyTheSilly 51bb67f315 Break current device ID retrieval out into exported function GetCurrentDeviceID(); fix duplicate device IDs being generated by not deleting the old one before a potentially failed registration 2025-03-19 23:35:50 -04:00
RandyTheSilly e9d0c37043 Implement utility function for formatting and printing errors 2025-02-01 20:48:03 -05:00
RandyTheSilly 4c54349b39 Assign error-specific exit codes to constants 2024-08-13 20:48:20 -04:00
RandyTheSilly a1c9827c04 Move FSSpace, FSPath, and FSMisc constants to core package to avoid import cycles 2024-08-13 20:28:33 -04:00
RandyTheSilly be46b0d6b2 Fix init if devices directory does not exist/is empty 2024-08-13 20:21:11 -04:00
RandyTheSilly 645bd964e6 Create and close sshClient instances in one-off sync functions (ShearRemoteFromClient, RenameRemoteFromClient, AddFolderRemoteFromClient) 2024-08-13 18:41:47 -04:00
RandyTheSilly 88b7a6be6d Create all config/entry files (both local and remote) with 0600 permissions 2024-08-13 17:20:15 -04:00
RandyTheSilly 7d51d12b55 Remove old device ID from server in DeviceIDGen 2024-08-12 15:53:40 -04:00
RandyTheSilly bb1ecc5bae Handle or explicitly ignore all remaining errors 2024-08-12 14:13:48 -04:00
RandyTheSilly ed9c4e91ff Implement error-specific exit codes 2024-08-11 20:21:01 -04:00
RandyTheSilly 06b9527a33 Properly format function documentation comments 2024-08-11 16:37:28 -04:00
RandyTheSilly c83a3aa018 Rename "backend" package to "core" 2024-08-08 16:49:34 -04:00