Documentation ¶
Index ¶
- func BakLog(src string)
- func CheckoutCodes(build *serverModel.Build)
- func Download(uri string, dst string) error
- func DownloadCodes(build *serverModel.Build)
- func ErrRes(msg string) serverModel.RespData
- func GetGitProjectName(gitUrl string) string
- func GetIp() (ipAddr string, macAddr string)
- func GetSysInfo() (info serverModel.SysInfo)
- func GetTestScript(build *serverModel.Build) (result serverModel.OptResult)
- func GetUserHome() (string, error)
- func GetZipSingleDir(path string) string
- func IsHostAgent() bool
- func IsVmAgent() bool
- func ListHistoryLog() (ret []map[string]string)
- func OutputErr(err error, writer http.ResponseWriter)
- func ParserGetParam(values url.Values, name, short string) (val string)
- func ParserGetParams(req *http.Request) (method string, params map[string]string)
- func ParserJsonReq(bytes []byte, obj *serverModel.ReqData) (err error)
- func ParserPostParam(req *http.Request, paramName1, paramName2 string, dft string, isFile bool) (ret string)
- func SetupCORS(w *http.ResponseWriter, req *http.Request)
- func WriteRes(ret serverModel.RespData, writer http.ResponseWriter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckoutCodes ¶
func CheckoutCodes(build *serverModel.Build)
func DownloadCodes ¶
func DownloadCodes(build *serverModel.Build)
func ErrRes ¶
func ErrRes(msg string) serverModel.RespData
func GetGitProjectName ¶
func GetSysInfo ¶
func GetSysInfo() (info serverModel.SysInfo)
func GetTestScript ¶
func GetTestScript(build *serverModel.Build) (result serverModel.OptResult)
func GetUserHome ¶
func GetZipSingleDir ¶
func IsHostAgent ¶
func IsHostAgent() bool
func ListHistoryLog ¶
func OutputErr ¶
func OutputErr(err error, writer http.ResponseWriter)
func ParserGetParams ¶
func ParserJsonReq ¶
func ParserJsonReq(bytes []byte, obj *serverModel.ReqData) (err error)
func ParserPostParam ¶
func WriteRes ¶
func WriteRes(ret serverModel.RespData, writer http.ResponseWriter)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.