garm/runner/pool
Ionut Balutoiu 7b6c2e6106 Refactor code to allow more unit testing
In order to allow mocking for some of the `runner` functions, we created a
separate interface (called `PoolManagerController`) with `Create`, `Get`,
`Delete` operations for the `organization` / `repository` pool managers.

Furthermore, a new runner struct (`poolManagerCtrl`) implements this new
interface. The existing code is refactored to use the `poolManagerCtrl`
whenever the pool managers for `org` / `repo` are handled.

This allows more unit testing for the runner functions since `poolManagerCtrl`
field can be mocked now.

Besides this, there are some typos fixed as well.
2022-08-18 17:47:05 +03:00
..
interfaces.go Add manual runner removal 2022-06-29 16:23:01 +00:00
organization.go Refactor code to allow more unit testing 2022-08-18 17:47:05 +03:00
pool.go Fix instance JWT token expiration 2022-07-17 07:24:19 +00:00
repository.go Refactor code to allow more unit testing 2022-08-18 17:47:05 +03:00