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 AddLogger(ctx *macaron.Context, opts private.LoggerOptions)
- func AuthorizedPublicKeyByContent(ctx *macaron.Context)
- func CheckInternalToken(ctx *macaron.Context)
- func FlushQueues(ctx *macaron.Context, opts private.FlushOptions)
- func HookPostReceive(ctx *macaron.Context, opts private.HookOptions)
- func HookPreReceive(ctx *macaron.Context, opts private.HookOptions)
- func PauseLogging(ctx *macaron.Context)
- func RegisterRoutes(m *macaron.Macaron)
- func ReleaseReopenLogging(ctx *macaron.Context)
- func RemoveLogger(ctx *macaron.Context)
- func Restart(ctx *macaron.Context)
- func ResumeLogging(ctx *macaron.Context)
- func ServCommand(ctx *macaron.Context)
- func ServNoCommand(ctx *macaron.Context)
- func SetDefaultBranch(ctx *macaron.Context)
- func Shutdown(ctx *macaron.Context)
- func UpdatePublicKeyInRepo(ctx *macaron.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLogger ¶ added in v1.13.0
func AddLogger(ctx *macaron.Context, opts private.LoggerOptions)
AddLogger adds a logger
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 FlushQueues ¶ added in v1.12.0
func FlushQueues(ctx *macaron.Context, opts private.FlushOptions)
FlushQueues flushes all the Queues
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 PauseLogging ¶ added in v1.13.0
PauseLogging pauses logging
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 ReleaseReopenLogging ¶ added in v1.13.0
ReleaseReopenLogging releases and reopens logging files
func RemoveLogger ¶ added in v1.13.0
RemoveLogger removes a logger
func ResumeLogging ¶ added in v1.13.0
ResumeLogging resumes logging
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.