garm/apiserver/controllers
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
..
controllers.go Allow star CORS 2025-09-25 16:58:24 +03:00
enterprises.go Add a rudimentary filter option when listing entities 2025-06-18 21:23:34 +00:00
file_object.go Use tmp storage while uploading, use tx where needed 2025-10-08 22:22:58 +03:00
gitea_credentials.go Add copyright header 2025-05-20 09:43:29 +00:00
gitea_endpoints.go Add copyright header 2025-05-20 09:43:29 +00:00
github_credentials.go Add copyright header 2025-05-20 09:43:29 +00:00
github_endpoints.go Add copyright header 2025-05-20 09:43:29 +00:00
instances.go WiP 2025-05-03 22:29:40 +00:00
metadata.go Add runner install template management (#525) 2025-09-23 13:46:27 +03:00
organizations.go Add a rudimentary filter option when listing entities 2025-06-18 21:23:34 +00:00
pools.go fix: gci section warnings 2024-02-22 15:06:53 +01:00
repositories.go Add a rudimentary filter option when listing entities 2025-06-18 21:23:34 +00:00
scalesets.go WiP 2025-05-03 22:29:40 +00:00
templates.go Add runner install template management (#525) 2025-09-23 13:46:27 +03:00