Versions in this module Expand all Collapse all v1 v1.8.1 May 8, 2019 Changes in this version + var ErrFileTypeForbidden = errors.New("File type is not allowed") + var ErrTooManyFiles = errors.New("Maximum number of files to upload exceeded") + var IssueTemplateCandidates = []string + func Action(ctx *context.Context) + func Activity(ctx *context.Context) + func AddDependency(ctx *context.Context) + func AddTimeManually(c *context.Context, form auth.AddTimeManuallyForm) + func Branches(ctx *context.Context) + func CancelStopwatch(c *context.Context) + func ChangeCollaborationAccessMode(ctx *context.Context) + func ChangeCommentReaction(ctx *context.Context, form auth.ReactionForm) + func ChangeIssueReaction(ctx *context.Context, form auth.ReactionForm) + func ChangeMilestonStatus(ctx *context.Context) + func CleanUpPullRequest(ctx *context.Context) + func Collaboration(ctx *context.Context) + func CollaborationPost(ctx *context.Context) + func Commits(ctx *context.Context) + func CompareAndPullRequest(ctx *context.Context) + func CompareAndPullRequestPost(ctx *context.Context, form auth.CreateIssueForm) + func CompareDiff(ctx *context.Context) + func Create(ctx *context.Context) + func CreateBranch(ctx *context.Context, form auth.NewBranchForm) + func CreateCodeComment(ctx *context.Context, form auth.CodeCommentForm) + func CreatePost(ctx *context.Context, form auth.CreateRepoForm) + func DeleteBranchPost(ctx *context.Context) + func DeleteCollaboration(ctx *context.Context) + func DeleteComment(ctx *context.Context) + func DeleteDeployKey(ctx *context.Context) + func DeleteFile(ctx *context.Context) + func DeleteFilePost(ctx *context.Context, form auth.DeleteRepoFileForm) + func DeleteLabel(ctx *context.Context) + func DeleteMilestone(ctx *context.Context) + func DeleteRelease(ctx *context.Context) + func DeleteWebhook(ctx *context.Context) + func DeleteWikiPagePost(ctx *context.Context) + func DeployKeys(ctx *context.Context) + func DeployKeysPost(ctx *context.Context, form auth.AddKeyForm) + func Diff(ctx *context.Context) + func DiffPreviewPost(ctx *context.Context, form auth.EditPreviewDiffForm) + func DingtalkHooksEditPost(ctx *context.Context, form auth.NewDingtalkHookForm) + func DingtalkHooksNewPost(ctx *context.Context, form auth.NewDingtalkHookForm) + func DiscordHooksEditPost(ctx *context.Context, form auth.NewDiscordHookForm) + func DiscordHooksNewPost(ctx *context.Context, form auth.NewDiscordHookForm) + func Download(ctx *context.Context) + func DownloadByID(ctx *context.Context) + func DownloadByIDOrLFS(ctx *context.Context) + func DownloadPullDiff(ctx *context.Context) + func DownloadPullPatch(ctx *context.Context) + func EditFile(ctx *context.Context) + func EditFilePost(ctx *context.Context, form auth.EditRepoFileForm) + func EditMilestone(ctx *context.Context) + func EditMilestonePost(ctx *context.Context, form auth.CreateMilestoneForm) + func EditRelease(ctx *context.Context) + func EditReleasePost(ctx *context.Context, form auth.EditReleaseForm) + func EditWiki(ctx *context.Context) + func EditWikiPost(ctx *context.Context, form auth.NewWikiForm) + func FileHistory(ctx *context.Context) + func Fork(ctx *context.Context) + func ForkPost(ctx *context.Context, form auth.CreateRepoForm) + func Forks(ctx *context.Context) + func GetActionIssue(ctx *context.Context) *models.Issue + func GitHooks(ctx *context.Context) + func GitHooksEdit(ctx *context.Context) + func GitHooksEditPost(ctx *context.Context) + func GogsHooksEditPost(ctx *context.Context, form auth.NewGogshookForm) + func GogsHooksNewPost(ctx *context.Context, form auth.NewGogshookForm) + func Graph(ctx *context.Context) + func HTTP(ctx *context.Context) + func HTTPBackend(ctx *context.Context, cfg *serviceConfig) http.HandlerFunc + func Home(ctx *context.Context) + func InitializeLabels(ctx *context.Context, form auth.InitializeLabelsForm) + func IssueStopwatch(c *context.Context) + func IssueWatch(ctx *context.Context) + func Issues(ctx *context.Context) + func Labels(ctx *context.Context) + func LockIssue(ctx *context.Context, form auth.IssueLockForm) + func MergePullRequest(ctx *context.Context, form auth.MergePullRequestForm) + func Migrate(ctx *context.Context) + func MigratePost(ctx *context.Context, form auth.MigrateRepoForm) + func MilestoneIssuesAndPulls(ctx *context.Context) + func Milestones(ctx *context.Context) + func MustAllowPulls(ctx *context.Context) + func MustAllowUserComment(ctx *context.Context) + func MustBeAbleToUpload(ctx *context.Context) + func MustBeEditable(ctx *context.Context) + func MustBeNotEmpty(ctx *context.Context) + func MustEnableIssues(ctx *context.Context) + func MustEnableWiki(ctx *context.Context) + func NewComment(ctx *context.Context, form auth.CreateCommentForm) + func NewFile(ctx *context.Context) + func NewFilePost(ctx *context.Context, form auth.EditRepoFileForm) + func NewIssue(ctx *context.Context) + func NewIssuePost(ctx *context.Context, form auth.CreateIssueForm) + func NewLabel(ctx *context.Context, form auth.CreateLabelForm) + func NewMilestone(ctx *context.Context) + func NewMilestonePost(ctx *context.Context, form auth.CreateMilestoneForm) + func NewRelease(ctx *context.Context) + func NewReleasePost(ctx *context.Context, form auth.NewReleaseForm) + func NewWiki(ctx *context.Context) + func NewWikiPost(ctx *context.Context, form auth.NewWikiForm) + func ParseCompareInfo(ctx *context.Context) (*models.User, *models.Repository, *git.Repository, *git.PullRequestInfo, ...) + func ParseHookEvent(form auth.WebhookForm) *models.HookEvent + func PrepareCompareDiff(ctx *context.Context, headUser *models.User, headRepo *models.Repository, ...) bool + func PrepareMergedViewPullInfo(ctx *context.Context, issue *models.Issue) *git.PullRequestInfo + func PrepareViewPullInfo(ctx *context.Context, issue *models.Issue) *git.PullRequestInfo + func ProtectedBranch(ctx *context.Context) + func ProtectedBranchPost(ctx *context.Context) + func RawDiff(ctx *context.Context) + func RedirectDownload(ctx *context.Context) + func RefCommits(ctx *context.Context) + func Releases(ctx *context.Context) + func RemoveDependency(ctx *context.Context) + func RemoveUploadFileFromServer(ctx *context.Context, form auth.RemoveUploadFileForm) + func RenderUserCards(ctx *context.Context, total int, getter func(page int) ([]*models.User, error), ...) + func RestoreBranchPost(ctx *context.Context) + func RetrieveLabels(ctx *context.Context) + func RetrieveRepoMetas(ctx *context.Context, repo *models.Repository) []*models.Label + func RetrieveRepoMilestonesAndAssignees(ctx *context.Context, repo *models.Repository) + func Search(ctx *context.Context) + func SearchCommits(ctx *context.Context) + func ServeBlob(ctx *context.Context, blob *git.Blob) error + func ServeBlobOrLFS(ctx *context.Context, blob *git.Blob) error + func ServeData(ctx *context.Context, name string, reader io.Reader) error + func SetDiffViewStyle(ctx *context.Context) + func SetEditorconfigIfExists(ctx *context.Context) + func SetWhitespaceBehavior(ctx *context.Context) + func Settings(ctx *context.Context) + func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) + func SettingsProtectedBranch(c *context.Context) + func SettingsProtectedBranchPost(ctx *context.Context, f auth.ProtectBranchForm) + func SingleDownload(ctx *context.Context) + func SingleDownloadOrLFS(ctx *context.Context) + func SlackHooksEditPost(ctx *context.Context, form auth.NewSlackHookForm) + func SlackHooksNewPost(ctx *context.Context, form auth.NewSlackHookForm) + func Stars(ctx *context.Context) + func SubmitReview(ctx *context.Context, form auth.SubmitReviewForm) + func TestWebhook(ctx *context.Context) + func TopicsPost(ctx *context.Context) + func TriggerTask(ctx *context.Context) + func UnlockIssue(ctx *context.Context) + func UpdateCommentContent(ctx *context.Context) + func UpdateIssueAssignee(ctx *context.Context) + func UpdateIssueContent(ctx *context.Context) + func UpdateIssueLabel(ctx *context.Context) + func UpdateIssueMilestone(ctx *context.Context) + func UpdateIssueStatus(ctx *context.Context) + func UpdateIssueTitle(ctx *context.Context) + func UpdateLabel(ctx *context.Context, form auth.CreateLabelForm) + func UploadAttachment(ctx *context.Context) + func UploadFile(ctx *context.Context) + func UploadFilePost(ctx *context.Context, form auth.UploadRepoFileForm) + func UploadFileToServer(ctx *context.Context) + func ValidateRepoMetas(ctx *context.Context, form auth.CreateIssueForm, isPull bool) ([]int64, []int64, int64) + func ViewIssue(ctx *context.Context) + func ViewPullCommits(ctx *context.Context) + func ViewPullFiles(ctx *context.Context) + func Watchers(ctx *context.Context) + func WebHooksEdit(ctx *context.Context) + func WebHooksEditPost(ctx *context.Context, form auth.NewWebhookForm) + func WebHooksNewPost(ctx *context.Context, form auth.NewWebhookForm) + func Webhooks(ctx *context.Context) + func WebhooksNew(ctx *context.Context) + func Wiki(ctx *context.Context) + func WikiPages(ctx *context.Context) + func WikiRaw(ctx *context.Context) + type Branch struct + Commit *git.Commit + DeletedBranch *models.DeletedBranch + IsDeleted bool + IsProtected bool + Name string + type PageMeta struct + Name string + SubURL string + UpdatedUnix util.TimeStamp