Documentation
¶
Overview ¶
Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
Index ¶
- func CanUserPush(ctx *macaron.Context)
- func CheckInternalToken(ctx *macaron.Context)
- func CheckUnitUser(ctx *macaron.Context)
- func GetActivePullRequest(ctx *macaron.Context)
- func GetDeployKey(ctx *macaron.Context)
- func GetProtectedBranchBy(ctx *macaron.Context)
- func GetPublicKeyByID(ctx *macaron.Context)
- func GetRepository(ctx *macaron.Context)
- func GetRepositoryByOwnerAndName(ctx *macaron.Context)
- func GetUserByKeyID(ctx *macaron.Context)
- func HasDeployKey(ctx *macaron.Context)
- func InitWiki(ctx *macaron.Context)
- func PushUpdate(ctx *macaron.Context)
- func RegisterRoutes(m *macaron.Macaron)
- func UpdateDeployKey(ctx *macaron.Context)
- func UpdatePublicKey(ctx *macaron.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckInternalToken ¶
CheckInternalToken check internal token is set
func CheckUnitUser ¶
CheckUnitUser chainload to models.CheckUnitUser
func GetActivePullRequest ¶
GetActivePullRequest return an active pull request when it exists or an empty object
func GetDeployKey ¶
GetDeployKey chainload to models.GetDeployKey
func GetProtectedBranchBy ¶
GetProtectedBranchBy get protected branch information
func GetPublicKeyByID ¶
GetPublicKeyByID chainload to models.GetPublicKeyByID
func GetRepository ¶
GetRepository return the default branch of a repository
func GetRepositoryByOwnerAndName ¶
GetRepositoryByOwnerAndName chainload to models.GetRepositoryByOwnerAndName
func GetUserByKeyID ¶
GetUserByKeyID chainload to models.GetUserByKeyID
func HasDeployKey ¶
HasDeployKey chainload to models.HasDeployKey
func RegisterRoutes ¶
RegisterRoutes registers all internal APIs routes to web application. These APIs will be invoked by internal commands for example `gitea serv` and etc.
func UpdateDeployKey ¶
UpdateDeployKey update deploy key updates
func UpdatePublicKey ¶
UpdatePublicKey update publick key updates
Types ¶
This section is empty.