garm/runner
Gabriel Adrian Samfira 1a719567ff Add rate limit cache and fixes
This change adds a loop that keeps a cache of credentials rate limits
as reported by the github API. The cache is updated every 30 seconds
and is purely informational for the user.

This change also adds some caching improvements. Functions that return
values from the cache as lists, will now sort by ID or creation date.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-08 21:39:55 +00:00
..
common Add runner periodic cleanup check 2025-05-03 22:29:40 +00:00
metrics Add job info in runner list 2024-03-11 15:46:18 +00:00
mocks Update mocks 2025-05-03 22:29:40 +00:00
pool Add cache worker 2025-05-07 08:01:36 +00:00
providers Move ValidateResult to common package 2024-09-02 10:39:45 +03:00
common_test.go fix: goconst linter findings 2024-02-22 17:39:02 +01:00
enterprises.go Add API endpoint for some scaleset ops 2025-05-03 22:29:40 +00:00
enterprises_test.go Fix: Scope entities to endpoint 2024-07-29 17:35:57 +00:00
github_credentials.go Add rate limit cache and fixes 2025-05-08 21:39:55 +00:00
github_endpoints.go Add github credentials API and cli code 2024-04-22 14:08:37 +00:00
interfaces.go Use watcher and get rid of RefreshState() 2024-06-21 13:47:48 +00:00
metadata.go Fix lint errors 2025-05-03 22:29:40 +00:00
organizations.go Add API endpoint for some scaleset ops 2025-05-03 22:29:40 +00:00
organizations_test.go Fix: Scope entities to endpoint 2024-07-29 17:35:57 +00:00
pools.go Fix leftover instances and refactor 2025-05-03 22:29:40 +00:00
pools_test.go remove required tags during update 2024-05-22 06:03:06 +02:00
repositories.go Add API endpoint for some scaleset ops 2025-05-03 22:29:40 +00:00
repositories_test.go Use errors.Wrap() in repositories.go 2024-09-28 19:13:05 +00:00
runner.go Fix lint errors 2025-05-03 22:29:40 +00:00
scalesets.go Add some more caching, record scaleset jobs 2025-05-06 17:50:12 +00:00
types.go Move code to external package 2023-07-21 15:34:18 +00:00