gitproxy

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Proxy

func Proxy(c *gin.Context, gitManager *gitbridge.Manager) apierror.APIErrors

Proxy will proxy the URL provided in the GitProxyRequest eventually using the gitconfiguration spcified in the gitconfig.

func ProxyHandler

func ProxyHandler(c *gin.Context) apierror.APIErrors

ProxyHandler is the gin.Handler for the Proxy func

func ValidateURL

func ValidateURL(proxiedURL string) error

ValidateURL will validate the URL to proxy. We don't want to let the user proxy everything but only some of the Github or Gitlab APIs.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL