Documentation ¶
Overview ¶
Package private contains all internal routes. The package name "internal" isn't usable because Golang reserves it for disabling cross-package usage.
Index ¶
- func AddLogger(ctx *context.PrivateContext)
- func AuthorizedPublicKeyByContent(ctx *context.PrivateContext)
- func FlushQueues(ctx *context.PrivateContext)
- func GenerateActionsRunnerToken(ctx *context.PrivateContext)
- func HookPostReceive(ctx *gitea_context.PrivateContext)
- func HookPreReceive(ctx *gitea_context.PrivateContext)
- func HookProcReceive(ctx *gitea_context.PrivateContext)
- func PauseLogging(ctx *context.PrivateContext)
- func Processes(ctx *context.PrivateContext)
- func ReleaseReopenLogging(ctx *context.PrivateContext)
- func ReloadTemplates(ctx *context.PrivateContext)
- func RemoveLogger(ctx *context.PrivateContext)
- func RepoAssignment(ctx *gitea_context.PrivateContext) context.CancelFunc
- func Restart(ctx *context.PrivateContext)
- func RestoreRepo(ctx *myCtx.PrivateContext)
- func ResumeLogging(ctx *context.PrivateContext)
- func Routes() *web.Router
- func SSHLog(ctx *context.PrivateContext)
- func SendEmail(ctx *context.PrivateContext)
- func ServCommand(ctx *context.PrivateContext)
- func ServNoCommand(ctx *context.PrivateContext)
- func SetDefaultBranch(ctx *gitea_context.PrivateContext)
- func SetLogSQL(ctx *context.PrivateContext)
- func Shutdown(ctx *context.PrivateContext)
- func UpdatePublicKeyInRepo(ctx *context.PrivateContext)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizedPublicKeyByContent ¶
func AuthorizedPublicKeyByContent(ctx *context.PrivateContext)
AuthorizedPublicKeyByContent searches content as prefix (leak e-mail part) and returns public key found.
func GenerateActionsRunnerToken ¶
func GenerateActionsRunnerToken(ctx *context.PrivateContext)
GenerateActionsRunnerToken generates a new runner token for a given scope
func HookPostReceive ¶
func HookPostReceive(ctx *gitea_context.PrivateContext)
HookPostReceive updates services and users
func HookPreReceive ¶
func HookPreReceive(ctx *gitea_context.PrivateContext)
HookPreReceive checks whether a individual commit is acceptable
func HookProcReceive ¶
func HookProcReceive(ctx *gitea_context.PrivateContext)
HookProcReceive proc-receive hook - only handles agit Proc-Receive requests at present
func ReleaseReopenLogging ¶
func ReleaseReopenLogging(ctx *context.PrivateContext)
ReleaseReopenLogging releases and reopens logging files
func ReloadTemplates ¶
func ReloadTemplates(ctx *context.PrivateContext)
ReloadTemplates reloads all the templates
func RepoAssignment ¶
func RepoAssignment(ctx *gitea_context.PrivateContext) context.CancelFunc
RepoAssignment assigns the repository and gitrepository to the private context
func Restart ¶
func Restart(ctx *context.PrivateContext)
Restart causes the server to perform a graceful restart
func RestoreRepo ¶
func RestoreRepo(ctx *myCtx.PrivateContext)
RestoreRepo restore a repository from data
func Routes ¶
Routes registers all internal APIs routes to web application. These APIs will be invoked by internal commands for example `gitea serv` and etc.
func SendEmail ¶
func SendEmail(ctx *context.PrivateContext)
SendEmail pushes messages to mail queue
It doesn't wait before each message will be processed
func ServCommand ¶
func ServCommand(ctx *context.PrivateContext)
ServCommand returns information about the provided keyid
func ServNoCommand ¶
func ServNoCommand(ctx *context.PrivateContext)
ServNoCommand returns information about the provided keyid
func SetDefaultBranch ¶
func SetDefaultBranch(ctx *gitea_context.PrivateContext)
SetDefaultBranch updates the default branch
func Shutdown ¶
func Shutdown(ctx *context.PrivateContext)
Shutdown causes the server to perform a graceful shutdown
func UpdatePublicKeyInRepo ¶
func UpdatePublicKeyInRepo(ctx *context.PrivateContext)
UpdatePublicKeyInRepo update public key and deploy key updates
Types ¶
This section is empty.