repo

package
v1.0.2-gitspaces-beta Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleArchive

func HandleArchive(repoCtrl *repo.Controller) http.HandlerFunc

func HandleBlame

func HandleBlame(repoCtrl *repo.Controller) http.HandlerFunc

HandleBlame returns the git blame output for a file.

func HandleCalculateCommitDivergence

func HandleCalculateCommitDivergence(repoCtrl *repo.Controller) http.HandlerFunc

* Writes json-encoded branch information to the http response body.

func HandleCodeOwnersValidate

func HandleCodeOwnersValidate(repoCtrl *repo.Controller) http.HandlerFunc

func HandleCommitDiff

func HandleCommitDiff(repoCtrl *repo.Controller) http.HandlerFunc

HandleCommitDiff returns the diff between two commits, branches or tags.

func HandleCommitFiles

func HandleCommitFiles(repoCtrl *repo.Controller) http.HandlerFunc

HandleCommitFiles creates or modify file in repository.

func HandleCreate

func HandleCreate(repoCtrl *repo.Controller) http.HandlerFunc

HandleCreate returns a http.HandlerFunc that creates a new repository.

func HandleCreateBranch

func HandleCreateBranch(repoCtrl *repo.Controller) http.HandlerFunc

HandleCreateBranch writes json-encoded branch information to the http response body.

func HandleCreateCommitTag

func HandleCreateCommitTag(repoCtrl *repo.Controller) http.HandlerFunc

func HandleDeleteBranch

func HandleDeleteBranch(repoCtrl *repo.Controller) http.HandlerFunc

HandleDeleteBranch deletes a given branch.

func HandleDeleteCommitTag

func HandleDeleteCommitTag(repoCtrl *repo.Controller) http.HandlerFunc

func HandleDiff

func HandleDiff(repoCtrl *repo.Controller) http.HandlerFunc

HandleDiff returns the diff between two commits, branches or tags.

func HandleDiffStats

func HandleDiffStats(repoCtrl *repo.Controller) http.HandlerFunc

HandleDiffStats how diff statistics of two commits, branches or tags.

func HandleFind

func HandleFind(repoCtrl *repo.Controller) http.HandlerFunc

HandleFind writes json-encoded repository information to the http response body.

func HandleGetBranch

func HandleGetBranch(repoCtrl *repo.Controller) http.HandlerFunc

* Gets a given branch.

func HandleGetCommit

func HandleGetCommit(repoCtrl *repo.Controller) http.HandlerFunc

* Gets a given commit.

func HandleGetContent

func HandleGetContent(repoCtrl *repo.Controller) http.HandlerFunc

HandleGetContent handles the get content HTTP API.

func HandleGitInfoRefs

func HandleGitInfoRefs(repoCtrl *repo.Controller, urlProvider url.Provider) http.HandlerFunc

HandleGitInfoRefs handles the info refs part of git's smart http protocol.

func HandleGitRedirect

func HandleGitRedirect(urlProvider url.Provider) http.HandlerFunc

HandleGitRedirect redirects from the vanilla git clone URL to the repo UI page.

func HandleGitServicePack

func HandleGitServicePack(
	service enum.GitServiceType,
	repoCtrl *repo.Controller,
	urlProvider url.Provider,
) http.HandlerFunc

HandleGitServicePack handles the service pack part of git's smart http protocol (receive-/upload-pack).

func HandleImport

func HandleImport(repoCtrl *repo.Controller) http.HandlerFunc

func HandleImportProgress

func HandleImportProgress(repoCtrl *repo.Controller) http.HandlerFunc

func HandleListBranches

func HandleListBranches(repoCtrl *repo.Controller) http.HandlerFunc

* Writes json-encoded branch information to the http response body.

func HandleListCommitTags

func HandleListCommitTags(repoCtrl *repo.Controller) http.HandlerFunc

* Writes json-encoded commit tag information to the http response body.

func HandleListCommits

func HandleListCommits(repoCtrl *repo.Controller) http.HandlerFunc

* Writes json-encoded commit information to the http response body.

func HandleListPaths

func HandleListPaths(repoCtrl *repo.Controller) http.HandlerFunc

func HandleListPipelines

func HandleListPipelines(repoCtrl *repo.Controller) http.HandlerFunc

func HandleListServiceAccounts

func HandleListServiceAccounts(repoCtrl *repo.Controller) http.HandlerFunc

* Writes json-encoded service account information to the http response body.

func HandleMergeCheck

func HandleMergeCheck(repoCtrl *repo.Controller) http.HandlerFunc

HandleMergeCheck checks if two branches are mergeable.

func HandleMove

func HandleMove(repoCtrl *repo.Controller) http.HandlerFunc

HandleMove moves an existing repo.

func HandlePathsDetails

func HandlePathsDetails(repoCtrl *repo.Controller) http.HandlerFunc

HandlePathsDetails handles get file or directory details HTTP API.

func HandlePipelineGenerate

func HandlePipelineGenerate(repoCtrl *repo.Controller) http.HandlerFunc

func HandlePurge

func HandlePurge(repoCtrl *repo.Controller) http.HandlerFunc

func HandleRaw

func HandleRaw(repoCtrl *repo.Controller) http.HandlerFunc

HandleRaw returns the raw content of a file.

func HandleRestore

func HandleRestore(repoCtrl *repo.Controller) http.HandlerFunc

func HandleRuleCreate

func HandleRuleCreate(repoCtrl *repo.Controller) http.HandlerFunc

HandleRuleCreate handles API that adds a new protection rule to a repository.

func HandleRuleDelete

func HandleRuleDelete(repoCtrl *repo.Controller) http.HandlerFunc

HandleRuleDelete handles API that deletes a protection rule.

func HandleRuleFind

func HandleRuleFind(repoCtrl *repo.Controller) http.HandlerFunc

HandleRuleFind handles API that returns a protection rule of a repository.

func HandleRuleList

func HandleRuleList(repoCtrl *repo.Controller) http.HandlerFunc

HandleRuleList handles API that lists a protection rules of a repository.

func HandleRuleUpdate

func HandleRuleUpdate(repoCtrl *repo.Controller) http.HandlerFunc

HandleRuleUpdate handles API that updates a protection rule of a repository.

func HandleSoftDelete

func HandleSoftDelete(repoCtrl *repo.Controller) http.HandlerFunc

* Soft Deletes a repository.

func HandleSummary

func HandleSummary(repoCtrl *repo.Controller) http.HandlerFunc

HandleSummary writes json-encoded repository summary information to the http response body.

func HandleUpdate

func HandleUpdate(repoCtrl *repo.Controller) http.HandlerFunc

* Updates an existing repository.

func HandleUpdateDefaultBranch

func HandleUpdateDefaultBranch(repoCtrl *repo.Controller) http.HandlerFunc

func HandleUpdatePublicAccess

func HandleUpdatePublicAccess(repoCtrl *repo.Controller) http.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL