Versions in this module Expand all Collapse all v0 v0.11.29 Aug 15, 2017 Changes in this version + const BARE + const BRANCHES_ALL + const BRANCHES_OVERVIEW + const COMMITS + const COMPARE_PULL + const CREATE + const DELETE_FILE + const DIFF + const EDIT_DIFF_PREVIEW + const EDIT_FILE + const ENV_AUTH_USER_EMAIL + const ENV_AUTH_USER_ID + const ENV_AUTH_USER_NAME + const ENV_REPO_CUSTOM_HOOKS_PATH + const ENV_REPO_ID + const ENV_REPO_NAME + const ENV_REPO_OWNER_NAME + const ENV_REPO_OWNER_SALT_MD5 + const FORK + const FORKS + const HOME + const ISSUES + const ISSUE_NEW + const ISSUE_TEMPLATE_KEY + const ISSUE_VIEW + const LABELS + const MIGRATE + const MILESTONE + const MILESTONE_EDIT + const MILESTONE_NEW + const ORG_WEBHOOK_NEW + const PULL_COMMITS + const PULL_FILES + const PULL_REQUEST_TEMPLATE_KEY + const RELEASES + const RELEASE_NEW + const SETTINGS_BRANCHES + const SETTINGS_COLLABORATION + const SETTINGS_DEPLOY_KEYS + const SETTINGS_GITHOOKS + const SETTINGS_GITHOOK_EDIT + const SETTINGS_OPTIONS + const SETTINGS_PROTECTED_BRANCH + const UPLOAD_FILE + const WATCHERS + const WEBHOOKS + const WEBHOOK_NEW + const WIKI_NEW + const WIKI_PAGES + const WIKI_START + const WIKI_VIEW + var ErrFileTypeForbidden = errors.New("File type is not allowed") + var ErrTooManyFiles = errors.New("Maximum number of files to upload exceeded") + var IssueTemplateCandidates = []string + var PullRequestTemplateCandidates = []string + func Action(c *context.Context) + func AllBranches(c *context.Context) + func Branches(c *context.Context) + func ChangeCollaborationAccessMode(c *context.Context) + func ChangeMilestonStatus(c *context.Context) + func Commits(c *context.Context) + func CompareAndPullRequest(c *context.Context) + func CompareAndPullRequestPost(c *context.Context, f form.NewIssue) + func CompareDiff(c *context.Context) + func ComposeHookEnvs(opts ComposeHookEnvsOptions) []string + func Create(c *context.Context) + func CreatePost(c *context.Context, f form.CreateRepo) + func DeleteBranchPost(c *context.Context) + func DeleteCollaboration(c *context.Context) + func DeleteComment(c *context.Context) + func DeleteDeployKey(c *context.Context) + func DeleteFile(c *context.Context) + func DeleteFilePost(c *context.Context, f form.DeleteRepoFile) + func DeleteLabel(c *context.Context) + func DeleteMilestone(c *context.Context) + func DeleteRelease(c *context.Context) + func DeleteWebhook(c *context.Context) + func DeleteWikiPagePost(c *context.Context) + func Diff(c *context.Context) + func DiffPreviewPost(c *context.Context, f form.EditPreviewDiff) + func DiscordHooksEditPost(c *context.Context, f form.NewDiscordHook) + func DiscordHooksNewPost(c *context.Context, f form.NewDiscordHook) + func Download(c *context.Context) + func EditFile(c *context.Context) + func EditFilePost(c *context.Context, f form.EditRepoFile) + func EditMilestone(c *context.Context) + func EditMilestonePost(c *context.Context, f form.CreateMilestone) + func EditRelease(c *context.Context) + func EditReleasePost(c *context.Context, f form.EditRelease) + func EditWiki(c *context.Context) + func EditWikiPost(c *context.Context, f form.NewWiki) + func FileHistory(c *context.Context) + func Fork(c *context.Context) + func ForkPost(c *context.Context, f form.CreateRepo) + func Forks(c *context.Context) + func HTTP(c *HTTPContext) + func HTTPContexter() macaron.Handler + func Home(c *context.Context) + func InitializeLabels(c *context.Context, f form.InitializeLabels) + func Issues(c *context.Context) + func Labels(c *context.Context) + func MergePullRequest(c *context.Context) + func Migrate(c *context.Context) + func MigratePost(c *context.Context, f form.MigrateRepo) + func Milestones(c *context.Context) + func MustAllowPulls(c *context.Context) + func MustBeNotBare(c *context.Context) + func MustEnableIssues(c *context.Context) + func MustEnableWiki(c *context.Context) + func NewComment(c *context.Context, f form.CreateComment) + func NewFile(c *context.Context) + func NewFilePost(c *context.Context, f form.EditRepoFile) + func NewIssue(c *context.Context) + func NewIssuePost(c *context.Context, f form.NewIssue) + func NewLabel(c *context.Context, f form.CreateLabel) + func NewMilestone(c *context.Context) + func NewMilestonePost(c *context.Context, f form.CreateMilestone) + func NewRelease(c *context.Context) + func NewReleasePost(c *context.Context, f form.NewRelease) + func NewWiki(c *context.Context) + func NewWikiPost(c *context.Context, f form.NewWiki) + func ParseCompareInfo(c *context.Context) (*models.User, *models.Repository, *git.Repository, *git.PullRequestInfo, ...) + func ParseHookEvent(f form.Webhook) *models.HookEvent + func PrepareCompareDiff(c *context.Context, headUser *models.User, headRepo *models.Repository, ...) bool + func PrepareMergedViewPullInfo(c *context.Context, issue *models.Issue) + func PrepareViewPullInfo(c *context.Context, issue *models.Issue) *git.PullRequestInfo + func Pulls(c *context.Context) + func RawDiff(c *context.Context) + func RedeliveryWebhook(c *context.Context) + func RefCommits(c *context.Context) + func Releases(c *context.Context) + func RemoveUploadFileFromServer(c *context.Context, f form.RemoveUploadFile) + func RenderIssueLinks(oldCommits *list.List, repoLink string) *list.List + func RenderUserCards(c *context.Context, total int, getter func(page int) ([]*models.User, error), ...) + func RetrieveLabels(c *context.Context) + func RetrieveRepoMetas(c *context.Context, repo *models.Repository) []*models.Label + func RetrieveRepoMilestonesAndAssignees(c *context.Context, repo *models.Repository) + func SearchCommits(c *context.Context) + func ServeBlob(c *context.Context, blob *git.Blob) error + func ServeData(c *context.Context, name string, reader io.Reader) error + func Settings(c *context.Context) + func SettingsBranches(c *context.Context) + func SettingsCollaboration(c *context.Context) + func SettingsCollaborationPost(c *context.Context) + func SettingsDeployKeys(c *context.Context) + func SettingsDeployKeysPost(c *context.Context, f form.AddSSHKey) + func SettingsGitHooks(c *context.Context) + func SettingsGitHooksEdit(c *context.Context) + func SettingsGitHooksEditPost(c *context.Context) + func SettingsPost(c *context.Context, f form.RepoSetting) + func SettingsProtectedBranch(c *context.Context) + func SettingsProtectedBranchPost(c *context.Context, f form.ProtectBranch) + func SingleDownload(c *context.Context) + func SlackHooksEditPost(c *context.Context, f form.NewSlackHook) + func SlackHooksNewPost(c *context.Context, f form.NewSlackHook) + func Stars(c *context.Context) + func TestWebhook(c *context.Context) + func TriggerTask(c *context.Context) + func UpdateCommentContent(c *context.Context) + func UpdateDefaultBranch(c *context.Context) + func UpdateIssueAssignee(c *context.Context) + func UpdateIssueContent(c *context.Context) + func UpdateIssueLabel(c *context.Context) + func UpdateIssueMilestone(c *context.Context) + func UpdateIssueTitle(c *context.Context) + func UpdateLabel(c *context.Context, f form.CreateLabel) + func UploadFile(c *context.Context) + func UploadFilePost(c *context.Context, f form.UploadRepoFile) + func UploadFileToServer(c *context.Context) + func UploadIssueAttachment(c *context.Context) + func UploadReleaseAttachment(c *context.Context) + func ValidateRepoMetas(c *context.Context, f form.NewIssue) ([]int64, int64, int64) + func ViewIssue(c *context.Context) + func ViewPull(c *context.Context) + func ViewPullCommits(c *context.Context) + func ViewPullFiles(c *context.Context) + func Watchers(c *context.Context) + func WebHooksEdit(c *context.Context) + func WebHooksEditPost(c *context.Context, f form.NewWebhook) + func WebHooksNewPost(c *context.Context, f form.NewWebhook) + func Webhooks(c *context.Context) + func WebhooksNew(c *context.Context) + func Wiki(c *context.Context) + func WikiPages(c *context.Context) + type Branch struct + Commit *git.Commit + IsProtected bool + Name string + type ComposeHookEnvsOptions struct + AuthUser *models.User + OwnerName string + OwnerSalt string + RepoID int64 + RepoName string + RepoPath string + type HTTPContext struct + AuthUser *models.User + OwnerName string + OwnerSalt string + RepoID int64 + RepoName string + type OrgRepoCtx struct + Link string + NewTemplate string + OrgID int64 + RepoID int64 + type PageMeta struct + Name string + URL string + Updated time.Time