Documentation
¶
Index ¶
- Constants
- Variables
- 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
- type CreateRepoRequest
- type CreateRepoResponseData
- type CreateTagRequest
- type HookRequest
- type Map
- type MergeTemplatesResponseData
- type PagingRequest
Constants ¶
View Source
const ( PodName = "gittar" ComponentName = "gittar" MysqlName = "mysql-connection" )
Variables ¶
View Source
var ( ERROR_CODE_INTERNAL = "500" ERROR_CODE_NOT_FOUND = "404" ERROR_CODE_INVALID_ARGS = "400" )
View Source
var ( ERROR_NOT_FILE = errors.New("path not file") ERROR_PATH_NOT_FOUND = errors.New("path not exist") ERROR_DB = errors.New("db error") ERROR_ARG_ID = errors.New("id parse failed") ERROR_HOOK_NOT_FOUND = errors.New("hook not found") ERROR_LOCKED_DENIED = errors.New("locked denied") ERROR_REPO_LOCKED = errors.New("repo locked") )
Functions ¶
func AddHook ¶
func AddHook(context *webcontext.Context)
func AddSystemHook ¶
func AddSystemHook(context *webcontext.Context)
func CheckMergeStatus ¶
func CheckMergeStatus(ctx *webcontext.Context)
func CloseMR ¶
func CloseMR(ctx *webcontext.Context)
func Commit ¶
func Commit(ctx *webcontext.Context)
func CreateCheckRun ¶
func CreateCheckRun(ctx *webcontext.Context)
func CreateMergeRequest ¶
func CreateMergeRequest(ctx *webcontext.Context)
func CreateNotes ¶
func CreateNotes(ctx *webcontext.Context)
func DeleteHook ¶
func DeleteHook(context *webcontext.Context)
func DiffFile ¶
func DiffFile(ctx *webcontext.Context)
func GetGoImportMeta ¶
func GetGoImportMeta(ctx *webcontext.Context)
func GetHookDetail ¶
func GetHookDetail(context *webcontext.Context)
func GetMergeBase ¶
func GetMergeBase(ctx *webcontext.Context)
func GetMergeRequestDetail ¶
func GetMergeRequestDetail(ctx *webcontext.Context)
func GetMergeRequests ¶
func GetMergeRequests(ctx *webcontext.Context)
func GetMergeRequestsStats ¶
func GetMergeRequestsStats(ctx *webcontext.Context)
func GetMergeTemplates ¶
func GetMergeTemplates(ctx *webcontext.Context)
func GetRepoBlobRange ¶
func GetRepoBlobRange(context *webcontext.Context)
func GetRepoBranchDetail ¶
func GetRepoBranchDetail(context *webcontext.Context)
GetRepoBranchDetail .
func Merge ¶
func Merge(ctx *webcontext.Context)
func MergeRequestCount ¶
func MergeRequestCount(ctx *webcontext.Context)
func MergeWithBranch ¶
func MergeWithBranch(ctx *webcontext.Context)
func MigrationNewAuth ¶
func MigrationNewAuth(ctx *webcontext.Context)
func OperationTempBranch ¶
func OperationTempBranch(ctx *webcontext.Context)
func QueryCheckRuns ¶
func QueryCheckRuns(ctx *webcontext.Context)
func QueryNotes ¶
func QueryNotes(ctx *webcontext.Context)
func ReopenMR ¶
func ReopenMR(ctx *webcontext.Context)
func RequeueTask ¶
func RequeueTask(context *webcontext.Context)
func SetRepoDefaultBranch ¶
func SetRepoDefaultBranch(context *webcontext.Context)
SetRepoDefaultBranch 设置默认分支
func ShowCacheStats ¶
func ShowCacheStats(context *webcontext.Context)
func UpdateHook ¶
func UpdateHook(context *webcontext.Context)
func UpdateMergeRequest ¶
func UpdateMergeRequest(ctx *webcontext.Context)
Types ¶
type CreateBranchRequest ¶
type CreateRepoRequest ¶
type CreateRepoRequest struct { OrgID int64 `json:"org_id"` ProjectID int64 `json:"project_id"` AppID int64 `json:"app_id"` OrgName string `json:"org_name"` ProjectName string `json:"project_name"` AppName string `json:"app_name"` HostMode string `json:"host_mode"` //selfhost|external Config map[string]string `json:"config"` }
type CreateRepoResponseData ¶
type CreateTagRequest ¶
type HookRequest ¶
type PagingRequest ¶
type PagingRequest struct { // +optional default 1 PageNo int `json:"PageNo"` // +optional default 10 PageSize int `json:"PageSize"` }
分页查询
Click to show internal directories.
Click to hide internal directories.