Watch
1
0
Fork
You've already forked pkg-proxy
1
mirror of https://github.com/git-pkgs/proxy.git synced 2026-11-11 00:29:15 -05:00
pkg-proxy/internal/config
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Giles Westwood 8bebc560f7
Delete cached artifacts through the API and the UI (#491)
* Delete cached artifacts through the API and the UI

cache_delete (PROXY_CACHE_DELETE) registers
DELETE /api/cache/{ecosystem}/{name}/{version}, which removes a
version's cached files, or only ?filename=, so the next request fetches
them from the upstream again. Records are cleared and the stored objects
queued for deletion like a replaced artifact. Pushed archives are left
alone: a whole-version delete skips them and naming one answers 409.

With it enabled, the version page shows a Delete button for each cached
file and one for the whole version. The UI calls /ui/api/cache so the
same ingress rules that guard /ui guard its deletes. Neither route has
authentication of its own, so the option is off by default.

* Load the cache delete script from a static file

Move the version page's delete-button JavaScript into
static/cache-delete.js and load it with a script tag, as
packages-list.js does.

---------

Co-authored-by: Giles Westwood <201443+gilesw@users.noreply.github.com>
2026-10-20 11:35:08 +01:00
..
config.go Delete cached artifacts through the API and the UI (#491) 2026-10-20 11:35:08 +01:00
config_test.go Add Chef Supermarket proxy support for Berkshelf and Policyfiles (#518) 2026-10-19 07:59:39 +01:00
denylist.go feat: add exact-version package denylist 2026-09-20 14:42:30 +05:30
denylist_test.go feat: add exact-version package denylist 2026-09-20 14:42:30 +05:30
hosted.go Serve hosted-only npm scopes and Composer vendors from pushed packages alone 2026-10-14 13:23:19 +02:00
hosted_test.go Serve hosted-only npm scopes and Composer vendors from pushed packages alone 2026-10-14 13:23:19 +02:00
mirror.go Re-mirror container images on a schedule (#508) 2026-10-18 18:33:13 +01:00
mirror_test.go Re-mirror container images on a schedule (#508) 2026-10-18 18:33:13 +01:00
request_timeouts_test.go Make response write and artifact download timeouts configurable (#531) 2026-10-19 08:54:21 +01:00
retention.go Add age-based retention for cached artifacts (#428) 2026-10-12 09:06:01 +01:00
retention_test.go Add opt-in retention for generic artifacts (#513) 2026-10-19 08:43:57 +01:00