Documentation ¶
Index ¶
Constants ¶
View Source
const ( OptionTypeProject string = "project" OptionTypeBranch string = "branch" OptionTypeCommit string = "commit" )
View Source
const ProjectOptionsCacheKey = "ProjectOptions"
Variables ¶
View Source
var AuditLog = func(username string, action types.EventActionType, msg string) { events.AuditLog(username, action, msg, nil, nil) }
View Source
var AuditLogWithChange = events.AuditLog
View Source
var ErrorPermissionDenied = errors.New("没有权限执行该操作")
View Source
var FileAuditLog = func(username string, msg string, fileID int) { events.FileAuditLog(username, msg, fileID) }
View Source
var GetProjectMarsConfig = utils.GetProjectMarsConfig
View Source
var MustGetUser = auth.MustGetUser
Functions ¶
func FindDefaultContainer ¶
func RegisterEndpoint ¶
func RegisterEndpoint(fn endpointFunc)
func RegisterServer ¶
func RegisterServer(fn registryFunc)
func RegisteredEndpoints ¶
func RegisteredEndpoints() []endpointFunc
func RegisteredServers ¶
func RegisteredServers() []registryFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.