Skip to main content

Crate git_cache_proxy

Crate git_cache_proxy 

Source
Expand description

Library surface for git-cache-proxy.

The modules are exposed as a library (in addition to the git-cache-proxy binary in main.rs) so that integration tests can drive the HTTP router and the git cache in-process. See the binary crate for the runnable entry point.

Modulesยง

config
Command-line / environment configuration.
evict
Bounding the on-disk cache with LRU eviction of idle mirrors.
git
Git plumbing: keep a bare mirror fresh and serve upload-pack from it.
metrics
Prometheus metrics.
repo
Request-path -> (upstream URL, on-disk cache dir) resolution, hardened against path traversal.
server
HTTP surface: the git smart-HTTP endpoints plus health/metrics.