debian-forge-composer/internal/kojiapi
Achilleas Koutsou 9fda1ff55f dnfjson: cache cleanup
Added CleanCache() method to the solver that deletes all the caches if
the total size grows above a certain (configurable) limit
(default: 500 MiB).

The function is called externally to handle errors (usually log or
ignore completely) and to avoid calling multiple times for multiple
depsolves of a single request.

The cleanup is extremely simple and is meant as a placeholder for more
sophisticated cache management.  The goal is to simply avoid ballooning
cache sizes that might cause issues for users or our own services.
2022-06-01 11:36:52 +01:00
..
api go.mod: Update oapi-codegen and kin-openapi 2022-01-12 11:35:06 +01:00
server.go dnfjson: cache cleanup 2022-06-01 11:36:52 +01:00
server_internal_test.go koji: use nvra as the filename for images 2020-10-27 19:01:30 +00:00
server_test.go tests: use TestMain() instead of Init() to compile mock-dnf-json 2022-06-01 11:36:52 +01:00