private

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: MIT Imports: 9 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanUserPush

func CanUserPush(ctx *macaron.Context)

CanUserPush returns if user push

func CheckInternalToken

func CheckInternalToken(ctx *macaron.Context)

CheckInternalToken check internal token is set

func CheckUnitUser

func CheckUnitUser(ctx *macaron.Context)

CheckUnitUser chainload to models.CheckUnitUser

func GetActivePullRequest

func GetActivePullRequest(ctx *macaron.Context)

GetActivePullRequest return an active pull request when it exists or an empty object

func GetDeployKey

func GetDeployKey(ctx *macaron.Context)

GetDeployKey chainload to models.GetDeployKey

func GetProtectedBranchBy

func GetProtectedBranchBy(ctx *macaron.Context)

GetProtectedBranchBy get protected branch information

func GetPublicKeyByID

func GetPublicKeyByID(ctx *macaron.Context)

GetPublicKeyByID chainload to models.GetPublicKeyByID

func GetRepository

func GetRepository(ctx *macaron.Context)

GetRepository return the default branch of a repository

func GetRepositoryByOwnerAndName

func GetRepositoryByOwnerAndName(ctx *macaron.Context)

GetRepositoryByOwnerAndName chainload to models.GetRepositoryByOwnerAndName

func GetUserByKeyID

func GetUserByKeyID(ctx *macaron.Context)

GetUserByKeyID chainload to models.GetUserByKeyID

func HasDeployKey

func HasDeployKey(ctx *macaron.Context)

HasDeployKey chainload to models.HasDeployKey

func InitWiki

func InitWiki(ctx *macaron.Context)

InitWiki initilizes wiki via repo id

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 UpdateDeployKey

func UpdateDeployKey(ctx *macaron.Context)

UpdateDeployKey update deploy key updates

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