private

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 22 Imported by: 47

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 added in v1.13.0

func AddLogger(ctx *macaron.Context, opts private.LoggerOptions)

AddLogger adds a logger

func AuthorizedPublicKeyByContent added in v1.11.0

func AuthorizedPublicKeyByContent(ctx *macaron.Context)

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

func CheckInternalToken

func CheckInternalToken(ctx *macaron.Context)

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

func PauseLogging(ctx *macaron.Context)

PauseLogging pauses logging

func RegisterRoutes

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 ReleaseReopenLogging added in v1.13.0

func ReleaseReopenLogging(ctx *macaron.Context)

ReleaseReopenLogging releases and reopens logging files

func RemoveLogger added in v1.13.0

func RemoveLogger(ctx *macaron.Context)

RemoveLogger removes a logger

func Restart added in v1.12.0

func Restart(ctx *macaron.Context)

Restart causes the server to perform a graceful restart

func ResumeLogging added in v1.13.0

func ResumeLogging(ctx *macaron.Context)

ResumeLogging resumes logging

func ServCommand added in v1.9.0

func ServCommand(ctx *macaron.Context)

ServCommand returns information about the provided keyid

func ServNoCommand added in v1.9.0

func ServNoCommand(ctx *macaron.Context)

ServNoCommand returns information about the provided keyid

func SetDefaultBranch added in v1.11.0

func SetDefaultBranch(ctx *macaron.Context)

SetDefaultBranch updates the default branch

func Shutdown added in v1.12.0

func Shutdown(ctx *macaron.Context)

Shutdown causes the server to perform a graceful shutdown

func UpdatePublicKeyInRepo added in v1.9.0

func UpdatePublicKeyInRepo(ctx *macaron.Context)

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