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 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 CanUserPush ¶ added in v1.3.1
CanUserPush returns if user push
func CheckInternalToken ¶
CheckInternalToken check internal token is set
func CheckUnitUser ¶ added in v1.7.3
CheckUnitUser chainload to models.CheckUnitUser
func GetActivePullRequest ¶ added in v1.7.3
GetActivePullRequest return an active pull request when it exists or an empty object
func GetProtectedBranchBy ¶
GetProtectedBranchBy get protected branch information
func GetPublicKeyByID ¶ added in v1.7.3
GetPublicKeyByID chainload to models.GetPublicKeyByID
func GetRepository ¶ added in v1.7.3
GetRepository return the default branch of a repository
func GetRepositoryByOwnerAndName ¶ added in v1.7.3
GetRepositoryByOwnerAndName chainload to models.GetRepositoryByOwnerAndName
func GetUserByKeyID ¶ added in v1.7.3
GetUserByKeyID chainload to models.GetUserByKeyID
func HasDeployKey ¶ added in v1.7.3
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 ¶ added in v1.7.3
UpdateDeployKey update deploy key updates
func UpdatePublicKey ¶
UpdatePublicKey update publick key updates
Types ¶
This section is empty.