private

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: MIT Imports: 13 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 CheckInternalToken

func CheckInternalToken(ctx *macaron.Context)

CheckInternalToken check internal token is set

func CheckUnitUser added in v1.7.0

func CheckUnitUser(ctx *macaron.Context)

CheckUnitUser chainload to models.CheckUnitUser

func GetRepositoryByOwnerAndName added in v1.7.0

func GetRepositoryByOwnerAndName(ctx *macaron.Context)

GetRepositoryByOwnerAndName chainload to models.GetRepositoryByOwnerAndName

func HookPostReceive added in v1.9.0

func HookPostReceive(ctx *macaron.Context)

HookPostReceive updates services and users

func HookPreReceive added in v1.9.0

func HookPreReceive(ctx *macaron.Context)

HookPreReceive checks whether a individual commit is acceptable

func PushUpdate

func PushUpdate(ctx *macaron.Context)

PushUpdate update public key updates

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 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 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