Documentation
¶
Index ¶
Constants ¶
View Source
const GitRepoPath = "/var/run/git/cli-manager"
Variables ¶
This section is empty.
Functions ¶
func HandleDownloadPlugin ¶
func HandleDownloadPlugin(w http.ResponseWriter, r *http.Request)
func HandleGitAdversitement ¶
func HandleGitAdversitement(w http.ResponseWriter, r *http.Request)
HandleGitAdversitement handles the git advertisement requests done by client tools relying on git compatibility. This function only supports upload-pack requests to limit the supported functionality only to git fetch and git clone.
func HandleGitUploadPack ¶
func HandleGitUploadPack(w http.ResponseWriter, r *http.Request)
func PrepareGitServer ¶
PrepareGitServer creates a http server mux to support git compatible endpoints in addition to plugin download mechanism.
Types ¶
Click to show internal directories.
Click to hide internal directories.