Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + const ComponentName + const MysqlName + const PodName + var ERROR_ARG_ID = errors.New("id parse failed") + var ERROR_CODE_INTERNAL = "500" + var ERROR_CODE_INVALID_ARGS = "400" + var ERROR_CODE_NOT_FOUND = "404" + var ERROR_DB = errors.New("db error") + var ERROR_HOOK_NOT_FOUND = errors.New("hook not found") + var ERROR_LOCKED_DENIED = errors.New("locked denied") + var ERROR_NOT_FILE = errors.New("path not file") + var ERROR_PATH_NOT_FOUND = errors.New("path not exist") + var ERROR_REPO_LOCKED = errors.New("repo locked") + func AddHook(context *webcontext.Context) + func AddSystemHook(context *webcontext.Context) + func Backup(ctx *webcontext.Context) + func BackupList(ctx *webcontext.Context) + func BlameFile(context *webcontext.Context) + func CheckMergeStatus(ctx *webcontext.Context) + func CloseMR(ctx *webcontext.Context) + func Commit(ctx *webcontext.Context) + func Compare(ctx *webcontext.Context) + func CreateCheckRun(ctx *webcontext.Context) + func CreateCommit(context *webcontext.Context) + func CreateMergeRequest(ctx *webcontext.Context) + func CreateNotes(ctx *webcontext.Context) + func CreateRepo(context *webcontext.Context) + func CreateRepoBranch(context *webcontext.Context) + func CreateRepoTag(context *webcontext.Context) + func DeleteBackup(ctx *webcontext.Context) + func DeleteHook(context *webcontext.Context) + func DeleteRepo(context *webcontext.Context) + func DeleteRepoBranch(context *webcontext.Context) + func DeleteRepoByApp(ctx *webcontext.Context) + func DeleteRepoTag(context *webcontext.Context) + func DiffFile(ctx *webcontext.Context) + func GetArchive(ctx *webcontext.Context) + func GetGoImportMeta(ctx *webcontext.Context) + func GetHookDetail(context *webcontext.Context) + func GetHooks(context *webcontext.Context) + func GetMergeBase(ctx *webcontext.Context) + func GetMergeRequestDetail(ctx *webcontext.Context) + func GetMergeRequests(ctx *webcontext.Context) + func GetMergeRequestsStats(ctx *webcontext.Context) + func GetMergeTemplates(ctx *webcontext.Context) + func GetRepoBlob(context *webcontext.Context) + func GetRepoBlobRange(context *webcontext.Context) + func GetRepoBranchDetail(context *webcontext.Context) + func GetRepoBranches(context *webcontext.Context) + func GetRepoCommits(context *webcontext.Context) + func GetRepoHead(context *webcontext.Context) + func GetRepoInfoRefs(c *webcontext.Context) + func GetRepoObjects(c *webcontext.Context) + func GetRepoRaw(context *webcontext.Context) + func GetRepoStats(context *webcontext.Context) + func GetRepoTags(context *webcontext.Context) + func GetRepoTree(context *webcontext.Context) + func Health(ctx *webcontext.Context) + func Merge(ctx *webcontext.Context) + func MergeRequestCount(ctx *webcontext.Context) + func MergeWithBranch(ctx *webcontext.Context) + func MigrationNewAuth(ctx *webcontext.Context) + func OperationTempBranch(ctx *webcontext.Context) + func QueryCheckRuns(ctx *webcontext.Context) + func QueryNotes(ctx *webcontext.Context) + func ReopenMR(ctx *webcontext.Context) + func RequeueTask(context *webcontext.Context) + func SearchRepoTree(ctx *webcontext.Context) + func ServiceRepoRPC(c *webcontext.Context) + func SetLocked(context *webcontext.Context) + func SetRepoDefaultBranch(context *webcontext.Context) + func ShowCacheStats(context *webcontext.Context) + func UpdateHook(context *webcontext.Context) + func UpdateMergeRequest(ctx *webcontext.Context) + func UpdateRepoByApp(ctx *webcontext.Context) + type CreateBranchRequest struct + Name string + Ref string + type CreateRepoRequest struct + AppID int64 + AppName string + Config map[string]string + HostMode string + OrgID int64 + OrgName string + ProjectID int64 + ProjectName string + type CreateRepoResponseData struct + ID int64 + RepoPath string + type CreateTagRequest struct + Message string + Name string + Ref string + type HookRequest struct + Id int64 + Name string + PushEvents bool + Url string + type Map map[string]interface + type MergeTemplatesResponseData struct + Branch string + Names []string + Path string + type PagingRequest struct + PageNo int + PageSize int