garm/util
Gabriel Adrian Samfira 73b330467b Use tmp storage while uploading, use tx where needed
Use temporary storage while the client is streaming the file to GARM.
This ensures that while uploading, we don't lock the blob database. On slow
connections this would mean that no readers would be able to access the db
while data was being written to it via the upload process.

By saving the file to a temporary location and only after we receive the
entire thing, add it to the DB, we significantly reduce the time we need to
keep the DB locked.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-10-08 22:22:58 +03:00
..
appdefaults Add the ability to set tools download source (Gitea) 2025-09-26 18:59:15 +03:00
github Attempt to use the scalset API and caching 2025-08-24 22:36:44 +00:00
logging.go Make the debug-log command more useful 2025-08-27 13:21:56 +00:00
util.go Use tmp storage while uploading, use tx where needed 2025-10-08 22:22:58 +03:00
util_nix.go Use tmp storage while uploading, use tx where needed 2025-10-08 22:22:58 +03:00
util_test.go Add SPA UI for GARM 2025-08-16 09:09:13 +00:00
util_windows.go Use tmp storage while uploading, use tx where needed 2025-10-08 22:22:58 +03:00