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 AuthorizedPublicKeyByContent(ctx *macaron.Context)
- func CheckInternalToken(ctx *macaron.Context)
- func CheckUnitUser(ctx *macaron.Context)
- func GetRepositoryByOwnerAndName(ctx *macaron.Context)
- func HookPostReceive(ctx *macaron.Context, opts private.HookOptions)
- func HookPreReceive(ctx *macaron.Context, opts private.HookOptions)
- func RegisterRoutes(m *macaron.Macaron)
- func ServCommand(ctx *macaron.Context)
- func ServNoCommand(ctx *macaron.Context)
- func SetDefaultBranch(ctx *macaron.Context)
- func UpdatePublicKeyInRepo(ctx *macaron.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizedPublicKeyByContent ¶ added in v1.11.0
AuthorizedPublicKeyByContent searches content as prefix (leak e-mail part) and returns public key found.
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
func HookPostReceive(ctx *macaron.Context, opts private.HookOptions)
HookPostReceive updates services and users
func HookPreReceive ¶ added in v1.9.0
func HookPreReceive(ctx *macaron.Context, opts private.HookOptions)
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 SetDefaultBranch ¶ added in v1.11.0
SetDefaultBranch updates the default branch
func UpdatePublicKeyInRepo ¶ added in v1.9.0
UpdatePublicKeyInRepo update public key and deploy key updates
Types ¶
This section is empty.