private

package
v1.14.0-rc8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 27 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLogger

func AddLogger(ctx *context.PrivateContext)

AddLogger adds a logger

func AuthorizedPublicKeyByContent

func AuthorizedPublicKeyByContent(ctx *context.PrivateContext)

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

func CheckInternalToken

func CheckInternalToken(next http.Handler) http.Handler

CheckInternalToken check internal token is set

func FlushQueues

func FlushQueues(ctx *context.PrivateContext)

FlushQueues flushes all the Queues

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 PauseLogging

func PauseLogging(ctx *context.PrivateContext)

PauseLogging pauses logging

func ReleaseReopenLogging

func ReleaseReopenLogging(ctx *context.PrivateContext)

ReleaseReopenLogging releases and reopens logging files

func RemoveLogger

func RemoveLogger(ctx *context.PrivateContext)

RemoveLogger removes a logger

func Restart

func Restart(ctx *context.PrivateContext)

Restart causes the server to perform a graceful restart

func ResumeLogging

func ResumeLogging(ctx *context.PrivateContext)

ResumeLogging resumes logging

func Routes

func Routes() *web.Route

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL