Documentation
¶
Overview ¶
Package gitd Implements Git Smart HTTP backend as a HTTP handler, using Git's C implementation as reference: https://github.com/git/git/blob/master/http-backend.c
Index ¶
- func Handler(h http.Handler, opts ...option) http.Handler
- func InfoRefs(w http.ResponseWriter, req *http.Request, reposPath, repoPath string)
- func ReceivePack(w http.ResponseWriter, req *http.Request, reposPath, repoPath string)
- func ReposPath(rpath string) option
- func UploadPack(w http.ResponseWriter, req *http.Request, reposPath, repoPath string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InfoRefs ¶
func InfoRefs(w http.ResponseWriter, req *http.Request, reposPath, repoPath string)
InfoRefs returns Git object refs.
func ReceivePack ¶
func ReceivePack(w http.ResponseWriter, req *http.Request, reposPath, repoPath string)
ReceivePack runs git-receive-pack in a safe manner.
func ReposPath ¶
func ReposPath(rpath string) option
ReposPath allows to set the root path where the Git bare repos live.
func UploadPack ¶
func UploadPack(w http.ResponseWriter, req *http.Request, reposPath, repoPath string)
UploadPack runs git-upload-pack in a safe manner.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.