private

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: MIT Imports: 10 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 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 CheckUnitUser added in v1.7.0

func CheckUnitUser(ctx *macaron.Context)

CheckUnitUser chainload to models.CheckUnitUser

func GetActivePullRequest added in v1.7.0

func GetActivePullRequest(ctx *macaron.Context)

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

func GetDeployKey added in v1.7.2

func GetDeployKey(ctx *macaron.Context)

GetDeployKey chainload to models.GetDeployKey

func GetProtectedBranchBy

func GetProtectedBranchBy(ctx *macaron.Context)

GetProtectedBranchBy get protected branch information

func GetPublicKeyByID added in v1.7.0

func GetPublicKeyByID(ctx *macaron.Context)

GetPublicKeyByID chainload to models.GetPublicKeyByID

func GetRepository added in v1.7.0

func GetRepository(ctx *macaron.Context)

GetRepository return the default branch of a repository

func GetRepositoryByOwnerAndName added in v1.7.0

func GetRepositoryByOwnerAndName(ctx *macaron.Context)

GetRepositoryByOwnerAndName chainload to models.GetRepositoryByOwnerAndName

func GetUserByKeyID added in v1.7.0

func GetUserByKeyID(ctx *macaron.Context)

GetUserByKeyID chainload to models.GetUserByKeyID

func HasDeployKey added in v1.7.0

func HasDeployKey(ctx *macaron.Context)

HasDeployKey chainload to models.HasDeployKey

func InitWiki added in v1.7.0

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

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