Help us shape the future of Go! Take the 2026 Go Developer Survey

private

package
v3.1.61 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT, MIT Imports: 54 Imported by: 0

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

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 (without comment part) and returns public key found.

func FlushQueues

func FlushQueues(ctx *context.PrivateContext)

FlushQueues flushes all the Queues

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 PauseLogging

func PauseLogging(ctx *context.PrivateContext)

PauseLogging pauses logging

func Processes

func Processes(ctx *context.PrivateContext)

Processes prints out the processes

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 RemoveLogger

func RemoveLogger(ctx *context.PrivateContext)

RemoveLogger removes a logger

func RepoAssignment

func RepoAssignment(ctx *gitea_context.PrivateContext)

RepoAssignment assigns the repository and git repository 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 ResumeLogging

func ResumeLogging(ctx *context.PrivateContext)

ResumeLogging resumes logging

func Routes

func Routes() *web.Router

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

func SSHLog

func SSHLog(ctx *context.PrivateContext)

SSHLog hook to response ssh log

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 SetLogSQL

func SetLogSQL(ctx *context.PrivateContext)

SetLogSQL re-sets database SQL logging

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.

Source Files

  • actions.go
  • default_branch.go
  • hook_post_receive.go
  • hook_pre_receive.go
  • hook_proc_receive.go
  • hook_verification.go
  • internal.go
  • internal_repo.go
  • key.go
  • mail.go
  • manager.go
  • manager_process.go
  • manager_unix.go
  • restore_repo.go
  • serv.go
  • ssh_log.go

Jump to

Keyboard shortcuts

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