Documentation
¶
Overview ¶
Package allowlist provides a mechanism restrict which repos can go through Packhorse's caching mechanism. Repositories not in the allowlist would be proxied to the upstream.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allowlist ¶
type Allowlist struct {
// contains filtered or unexported fields
}
Allowlist holds the set of repos that should be routed through Packhorse's caching path. If repos is empty, no repos are cached. If disabled is true, all repos will be cached.
func New ¶
New builds an Allowlist from a list of repositories in the form of "group/project" - e.g. "gitlab-org/gitlab".
Click to show internal directories.
Click to hide internal directories.