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.
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 CheckInternalToken(ctx *macaron.Context)
- func CheckUnitUser(ctx *macaron.Context)
- func GetRepositoryByOwnerAndName(ctx *macaron.Context)
- func HookPostReceive(ctx *macaron.Context)
- func HookPreReceive(ctx *macaron.Context)
- func PushUpdate(ctx *macaron.Context)
- func RegisterRoutes(m *macaron.Macaron)
- func ServCommand(ctx *macaron.Context)
- func ServNoCommand(ctx *macaron.Context)
- func UpdatePublicKeyInRepo(ctx *macaron.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckInternalToken ¶
CheckInternalToken check internal token is set
func CheckUnitUser ¶ added in v1.7.0
CheckUnitUser chainload to models.CheckUnitUser
func GetRepositoryByOwnerAndName ¶ added in v1.7.0
GetRepositoryByOwnerAndName chainload to models.GetRepositoryByOwnerAndName
func HookPostReceive ¶ added in v1.9.0
HookPostReceive updates services and users
func HookPreReceive ¶ added in v1.9.0
HookPreReceive checks whether a individual commit is acceptable
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 ServCommand ¶ added in v1.9.0
ServCommand returns information about the provided keyid
func ServNoCommand ¶ added in v1.9.0
ServNoCommand returns information about the provided keyid
func UpdatePublicKeyInRepo ¶ added in v1.9.0
UpdatePublicKeyInRepo update public key and deploy key updates
Types ¶
This section is empty.