garm/runner
Gabriel Adrian Samfira 36b9e9f296 Use errors.Wrap() in repositories.go
The API code unwraps errors wrapped by the errors.Wrap() function. It
falls back to 500 error if it can't determine any other error type.

Ultimately we need to migrate to the fmt.Errorf() pattern. But for now
at least, we need to return proper errors. Any 500 error will not output
details to the API. Neither will 401 for similar reasons.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-09-28 19:13:05 +00:00
..
common Version provider interface 2024-08-21 16:14:38 +03:00
metrics Add job info in runner list 2024-03-11 15:46:18 +00:00
mocks Use watcher and get rid of RefreshState() 2024-06-21 13:47:48 +00:00
pool Add getProviderBaseParams function in basePoolManager 2024-09-02 15:25:44 +03: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 Fix: Scope entities to endpoint 2024-07-29 17:35:57 +00:00
enterprises_test.go Fix: Scope entities to endpoint 2024-07-29 17:35:57 +00:00
github_credentials.go Add github credentials API and cli code 2024-04-22 14:08:37 +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 Slightly simplify code 2024-03-30 18:22:06 +00:00
organizations.go Fix: Scope entities to endpoint 2024-07-29 17:35:57 +00:00
organizations_test.go Fix: Scope entities to endpoint 2024-07-29 17:35:57 +00:00
pools.go remove required tags during update 2024-05-22 06:03:06 +02:00
pools_test.go remove required tags during update 2024-05-22 06:03:06 +02:00
repositories.go Use errors.Wrap() in repositories.go 2024-09-28 19:13:05 +00:00
repositories_test.go Use errors.Wrap() in repositories.go 2024-09-28 19:13:05 +00:00
runner.go Fix: Scope entities to endpoint 2024-07-29 17:35:57 +00:00
types.go Move code to external package 2023-07-21 15:34:18 +00:00