package
1.6.0
Repository: https://github.com/sempr/gitea.git
Documentation: pkg.go.dev

# Functions

APIContexter returns apicontext as macaron middleware.
CheckAnyUnit will check whether any of the unit types are enabled.
CheckUnit will check whether unit type is enabled.
ComposeGoGetImport returns go-get-import meta content.
Contexter initializes a classic context for a request.
EarlyResponseForGoGetMeta responses appropriate go-get meta with status 200 if user does not have actual access to the requested repository, or the owner or repository does not exist at all.
GitHookService checks if repository Git hooks service has been enabled.
HandleOrgAssignment handles organization assignment.
LoadRepoUnits loads repsitory's units, it should be called after repository and user loaded.
OrgAssignment returns a macaron middleware to handle organization assignment.
RedirectToRepo redirect to a differently-named repository.
ReferencesGitRepo injects the GitRepo into the Context.
RepoAssignment returns a macaron to handle repository assignment.
RepoIDAssignment returns a macaron handler which assigns the repo to the context.
RepoRef handles repository reference names when the ref name is not explicitly given.
RepoRefByType handles repository reference name for a specific type of repository reference.
RequireRepoAdmin returns a macaron middleware for requiring repository admin permission.
RequireRepoWriter returns a macaron middleware for requiring repository write permission.
RetrieveBaseRepo retrieves base repository.
Toggle returns toggle options as middleware.
UnitTypes returns a macaron middleware to set unit types to context variables.

# Constants

RepoRefAny is for usage where educated guess is needed but redirect can not be made.
RepoRefBranch branch.
RepoRefCommit commit.
RepoRefLegacy unknown type, make educated guess and redirect.
RepoRefTag tag.

# Structs

APIContext is a specific macaron context for API service.
APIEmpty is an empty response swagger:response empty.
APIError is error format response swagger:response error.
APIForbiddenError is a forbidden error response swagger:response forbidden.
APINotFound is a not found empty response swagger:response notFound.
APIOrganization contains organization and team.
APIRedirect is a redirect response swagger:response redirect.
APIValidationError is error format response related to input validation swagger:response validationError.
Context represents context of a request.
Organization contains organization context.
PullRequest contains informations to make a pull request.
Repository contains information to operate a repository.
ToggleOptions contains required or check options.

# Type aliases

RepoRefType type of repo reference.