private

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2018 License: MIT Imports: 7 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanUserPush added in v1.3.0

func CanUserPush(ctx *macaron.Context)

CanUserPush returns if user push

func CheckInternalToken

func CheckInternalToken(ctx *macaron.Context)

CheckInternalToken check internal token is set

func GetProtectedBranchBy

func GetProtectedBranchBy(ctx *macaron.Context)

GetProtectedBranchBy get protected branch information

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 UpdatePublicKey

func UpdatePublicKey(ctx *macaron.Context)

UpdatePublicKey update publick 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