Versions in this module Expand all Collapse all v0 v0.1.0 Oct 18, 2020 Changes in this version + const CtxPath + var ErrUpstreamCouldNotParseHost = errors.New("could not parse upstream host") + func Authenticate(opts *ProxyOpts, res http.ResponseWriter, req *http.Request) + func GetFullRepositoryFromPath(path string, base string) string + func GetImageFromPath(path string) string + func GetPathWithBase(path, base string) string + func GetRepositoryFromPath(path string) string + func GetRepositoryFromScope(scope string) string + func GetScope(req *http.Request, upstreamPath string) string + func MakeBasicAuth(username string, password string) string + func NewProxy(req *http.Request, opts *ProxyOpts) (*httputil.ReverseProxy, error) + func NewRedirectFollower(wrappedRoundTripper http.RoundTripper) http.RoundTripper + func ProxyHandler(opts *ProxyOpts) func(http.ResponseWriter, *http.Request) + func RegistryAuthResolveGRPC(client dockerregistryproxyv1.AuthenticationProviderAPIClient) (authn.Authenticator, error) + func UnauthenticatedResponse(res http.ResponseWriter, req *http.Request, upstreamPath string) + type Claims struct + DockerRepository string + func GetAuthentication(req *http.Request) *Claims + func (c Claims) Valid() error + type ProxyOpts struct + Auth authn.Authenticator + AuthVerifiers map[string]dockerregistryproxyv1.AuthenticationVerifierAPIClient + Registry name.Registry + TokenHMAC []byte + Transport http.RoundTripper + Upstream *url.URL + func GetProxyOpts(upstreamAddr string, ...) (*ProxyOpts, error) + type RedirectFollower struct + func (t *RedirectFollower) RoundTrip(req *http.Request) (*http.Response, error)