runner/act/artifactcache
Earl Warren 69c6c70845
chore: refactor act/artifactcache Handler to an interface (#934)
- the Handler struct becomes handler (lowercase)
- the Handler interface is defined to be the existing methods
- isClosed() is added and used only in tests
- setgcAt() is added and used only in tests

---

This is to allow mocking the Handler interface for testing.

<!--start release-notes-assistant-->
<!--URL:https://code.forgejo.org/forgejo/runner-->
- other
  - [PR](https://code.forgejo.org/forgejo/runner/pulls/934): <!--number 934 --><!--line 0 --><!--description Y2hvcmU6IHJlZmFjdG9yIGFjdC9hcnRpZmFjdGNhY2hlIEhhbmRsZXIgdG8gYW4gaW50ZXJmYWNl-->chore: refactor act/artifactcache Handler to an interface<!--description-->
<!--end release-notes-assistant-->

Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/934
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.code.forgejo.org>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-09-04 14:38:50 +00:00
..
testdata/example Support cache (#1770) 2023-04-28 15:57:40 +00:00
doc.go Support cache (#1770) 2023-04-28 15:57:40 +00:00
handler.go chore: refactor act/artifactcache Handler to an interface (#934) 2025-09-04 14:38:50 +00:00
handler_test.go chore: refactor act/artifactcache Handler to an interface (#934) 2025-09-04 14:38:50 +00:00
mac.go chore: refactor act/artifactcache Handler to an interface (#934) 2025-09-04 14:38:50 +00:00
mac_test.go chore: refactor act/artifactcache Handler to an interface (#934) 2025-09-04 14:38:50 +00:00
model.go fix: PRs cache artifacts separate from other runs 2025-09-01 13:45:43 +02:00
storage.go chore: use the same .golangci.yml as the runner & gofumpt over gofmt (#206) 2025-07-28 12:26:41 +00:00