gitea: code.gitea.io/gitea/routers/private Index | Files

package private

import "code.gitea.io/gitea/routers/private"

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

Package Files

hook.go internal.go key.go manager.go manager_unix.go serv.go

func AuthorizedPublicKeyByContent Uses

func AuthorizedPublicKeyByContent(ctx *macaron.Context)

AuthorizedPublicKeyByContent searches content as prefix (leak e-mail part) and returns public key found.

func CheckInternalToken Uses

func CheckInternalToken(ctx *macaron.Context)

CheckInternalToken check internal token is set

func CheckUnitUser Uses

func CheckUnitUser(ctx *macaron.Context)

CheckUnitUser chainload to models.CheckUnitUser

func FlushQueues Uses

func FlushQueues(ctx *macaron.Context, opts private.FlushOptions)

FlushQueues flushes all the Queues

func GetRepositoryByOwnerAndName Uses

func GetRepositoryByOwnerAndName(ctx *macaron.Context)

GetRepositoryByOwnerAndName chainload to models.GetRepositoryByOwnerAndName

func HookPostReceive Uses

func HookPostReceive(ctx *macaron.Context, opts private.HookOptions)

HookPostReceive updates services and users

func HookPreReceive Uses

func HookPreReceive(ctx *macaron.Context, opts private.HookOptions)

HookPreReceive checks whether a individual commit is acceptable

func RegisterRoutes Uses

func RegisterRoutes(m *macaron.Macaron)

RegisterRoutes registers all internal APIs routes to web application. These APIs will be invoked by internal commands for example `gitea serv` and etc.

func Restart Uses

func Restart(ctx *macaron.Context)

Restart causes the server to perform a graceful restart

func ServCommand Uses

func ServCommand(ctx *macaron.Context)

ServCommand returns information about the provided keyid

func ServNoCommand Uses

func ServNoCommand(ctx *macaron.Context)

ServNoCommand returns information about the provided keyid

func SetDefaultBranch Uses

func SetDefaultBranch(ctx *macaron.Context)

SetDefaultBranch updates the default branch

func Shutdown Uses

func Shutdown(ctx *macaron.Context)

Shutdown causes the server to perform a graceful shutdown

func UpdatePublicKeyInRepo Uses

func UpdatePublicKeyInRepo(ctx *macaron.Context)

UpdatePublicKeyInRepo update public key and deploy key updates

Package private imports 23 packages (graph) and is imported by 16 packages. Updated 2020-02-18. Refresh now. Tools for package owners.