Documentation ¶
Index ¶
- Constants
- func NewPtkLine(line string) []byte
- func NewReportStatus(unpackStatus string, refState string, errMsg string) []byte
- func OutPutArchive(c *webcontext.Context, ref string, format string) string
- func OutPutArchiveDelete(c *webcontext.Context, path string)
- func PostReceiveHook(pushEvents []*models.PayloadPushEvent, c *webcontext.Context)
- func ReadGitSendPackHeader(reqBody io.ReadCloser) ([]byte, error)
- func RunAdvertisement(service string, c *webcontext.Context)
- func RunArchive(c *webcontext.Context, ref string, format string)
- func RunProcess(service string, c *webcontext.Context)
- func SendInfoPacks(c *webcontext.Context)
- func SendLooseObject(prefix string, suffix string, c *webcontext.Context)
- func SendPackIdxFile(pack string, isIdx bool, c *webcontext.Context)
- func SendTextFile(file string, c *webcontext.Context)
Constants ¶
View Source
const ( ASCII_0 = 48 ASCII_9 = 57 ASCII_a = 97 )
Variables ¶
This section is empty.
Functions ¶
func NewReportStatus ¶
func OutPutArchive ¶
func OutPutArchive(c *webcontext.Context, ref string, format string) string
OutPutArchive 创建打包文件
func OutPutArchiveDelete ¶
func OutPutArchiveDelete(c *webcontext.Context, path string)
OutPutArchiveDelete 删除打包文件 (文件打包上传完必须删除)
func PostReceiveHook ¶
func PostReceiveHook(pushEvents []*models.PayloadPushEvent, c *webcontext.Context)
trigger event
func ReadGitSendPackHeader ¶
func ReadGitSendPackHeader(reqBody io.ReadCloser) ([]byte, error)
https://github.com/git/git/blob/master/Documentation/technical/http-protocol.txt
func RunAdvertisement ¶
func RunAdvertisement(service string, c *webcontext.Context)
RunAdvertisement command
func RunArchive ¶
func RunArchive(c *webcontext.Context, ref string, format string)
func SendLooseObject ¶
func SendLooseObject(prefix string, suffix string, c *webcontext.Context)
SendLooseObject loose object
func SendPackIdxFile ¶
func SendPackIdxFile(pack string, isIdx bool, c *webcontext.Context)
SendPackIdxFile file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.