Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) ServeProxy ¶
func (h *Handler) ServeProxy(w http.ResponseWriter, r *http.Request, repo *models.Repository, cacheKey, upstreamPath string)
ServeProxy handles a proxied request for the given repo. cacheKey is a stable string identifying the resource (e.g. "blob:sha256:abc" or "manifest:nginx:latest") upstreamPath is the path to append to repo.UpstreamURL.