Documentation ¶
Index ¶
- Constants
- Variables
- func Action(ctx *middleware.Context)
- func Branches(ctx *middleware.Context)
- func ChangeMilestonStatus(ctx *middleware.Context)
- func Collaboration(ctx *middleware.Context)
- func Commits(ctx *middleware.Context)
- func CompareAndPullRequest(ctx *middleware.Context)
- func CompareAndPullRequestPost(ctx *middleware.Context, form auth.CreateIssueForm)
- func CompareDiff(ctx *middleware.Context)
- func Create(ctx *middleware.Context)
- func CreatePost(ctx *middleware.Context, form auth.CreateRepoForm)
- func DeleteDeployKey(ctx *middleware.Context)
- func DeleteLabel(ctx *middleware.Context)
- func DeleteMilestone(ctx *middleware.Context)
- func DeleteWebhook(ctx *middleware.Context)
- func DeployKeys(ctx *middleware.Context)
- func DeployKeysPost(ctx *middleware.Context, form auth.AddSSHKeyForm)
- func Diff(ctx *middleware.Context)
- func Download(ctx *middleware.Context)
- func EditMilestone(ctx *middleware.Context)
- func EditMilestonePost(ctx *middleware.Context, form auth.CreateMilestoneForm)
- func EditRelease(ctx *middleware.Context)
- func EditReleasePost(ctx *middleware.Context, form auth.EditReleaseForm)
- func FileHistory(ctx *middleware.Context)
- func Fork(ctx *middleware.Context)
- func ForkPost(ctx *middleware.Context, form auth.CreateRepoForm)
- func GitHooks(ctx *middleware.Context)
- func GitHooksEdit(ctx *middleware.Context)
- func GitHooksEditPost(ctx *middleware.Context)
- func HTTPBackend(config *Config) http.HandlerFunc
- func Home(ctx *middleware.Context)
- func Http(ctx *middleware.Context)
- func Issues(ctx *middleware.Context)
- func Labels(ctx *middleware.Context)
- func MergePullRequest(ctx *middleware.Context)
- func Migrate(ctx *middleware.Context)
- func MigratePost(ctx *middleware.Context, form auth.MigrateRepoForm)
- func Milestones(ctx *middleware.Context)
- func NewComment(ctx *middleware.Context, form auth.CreateCommentForm)
- func NewIssue(ctx *middleware.Context)
- func NewIssuePost(ctx *middleware.Context, form auth.CreateIssueForm)
- func NewLabel(ctx *middleware.Context, form auth.CreateLabelForm)
- func NewMilestone(ctx *middleware.Context)
- func NewMilestonePost(ctx *middleware.Context, form auth.CreateMilestoneForm)
- func NewRelease(ctx *middleware.Context)
- func NewReleasePost(ctx *middleware.Context, form auth.NewReleaseForm)
- func ParseCompareInfo(ctx *middleware.Context) (*models.User, *models.Repository, *git.Repository, *git.PullRequestInfo, ...)
- func ParseHookEvent(form auth.WebhookForm) *models.HookEvent
- func PrepareCompareDiff(ctx *middleware.Context, headUser *models.User, headRepo *models.Repository, ...) bool
- func PrepareMergedViewPullInfo(ctx *middleware.Context, pull *models.Issue)
- func PrepareViewPullInfo(ctx *middleware.Context, pull *models.Issue) *git.PullRequestInfo
- func RefCommits(ctx *middleware.Context)
- func Releases(ctx *middleware.Context)
- func RenderIssueLinks(oldCommits *list.List, repoLink string) *list.List
- func RetrieveLabels(ctx *middleware.Context)
- func RetrieveRepoMetas(ctx *middleware.Context, repo *models.Repository) []*models.Label
- func RetrieveRepoMilestonesAndAssignees(ctx *middleware.Context, repo *models.Repository)
- func SearchCommits(ctx *middleware.Context)
- func ServeBlob(ctx *middleware.Context, blob *git.Blob) error
- func ServeData(ctx *middleware.Context, name string, reader io.Reader) error
- func Settings(ctx *middleware.Context)
- func SettingsPost(ctx *middleware.Context, form auth.RepoSettingForm)
- func SingleDownload(ctx *middleware.Context)
- func SlackHooksEditPost(ctx *middleware.Context, form auth.NewSlackHookForm)
- func SlackHooksNewPost(ctx *middleware.Context, form auth.NewSlackHookForm)
- func TriggerHook(ctx *middleware.Context)
- func UpdateCommentContent(ctx *middleware.Context)
- func UpdateIssueAssignee(ctx *middleware.Context)
- func UpdateIssueContent(ctx *middleware.Context)
- func UpdateIssueLabel(ctx *middleware.Context)
- func UpdateIssueMilestone(ctx *middleware.Context)
- func UpdateIssueTitle(ctx *middleware.Context)
- func UpdateLabel(ctx *middleware.Context, form auth.CreateLabelForm)
- func UploadIssueAttachment(ctx *middleware.Context)
- func ValidateRepoMetas(ctx *middleware.Context, form auth.CreateIssueForm) ([]int64, int64, int64)
- func ViewIssue(ctx *middleware.Context)
- func ViewPullCommits(ctx *middleware.Context)
- func ViewPullFiles(ctx *middleware.Context)
- func WebHooksEdit(ctx *middleware.Context)
- func WebHooksEditPost(ctx *middleware.Context, form auth.NewWebhookForm)
- func WebHooksNewPost(ctx *middleware.Context, form auth.NewWebhookForm)
- func Webhooks(ctx *middleware.Context)
- func WebhooksNew(ctx *middleware.Context)
- type Config
- type OrgRepoCtx
Constants ¶
View Source
const ( COMMITS base.TplName = "repo/commits" DIFF base.TplName = "repo/diff" )
View Source
const ( ISSUES base.TplName = "repo/issue/list" ISSUE_NEW base.TplName = "repo/issue/new" ISSUE_VIEW base.TplName = "repo/issue/view" LABELS base.TplName = "repo/issue/labels" MILESTONE base.TplName = "repo/issue/milestones" MILESTONE_NEW base.TplName = "repo/issue/milestone_new" MILESTONE_EDIT base.TplName = "repo/issue/milestone_edit" )
View Source
const ( FORK base.TplName = "repo/pulls/fork" COMPARE_PULL base.TplName = "repo/pulls/compare" PULL_COMMITS base.TplName = "repo/pulls/commits" PULL_FILES base.TplName = "repo/pulls/files" )
View Source
const ( RELEASES base.TplName = "repo/release/list" RELEASE_NEW base.TplName = "repo/release/new" RELEASE_EDIT base.TplName = "repo/release/edit" )
View Source
const ( CREATE base.TplName = "repo/create" MIGRATE base.TplName = "repo/migrate" )
View Source
const ( SETTINGS_OPTIONS base.TplName = "repo/settings/options" COLLABORATION base.TplName = "repo/settings/collaboration" HOOKS base.TplName = "repo/settings/hooks" HOOK_NEW base.TplName = "repo/settings/hook_new" ORG_HOOK_NEW base.TplName = "org/settings/hook_new" GITHOOKS base.TplName = "repo/settings/githooks" GITHOOK_EDIT base.TplName = "repo/settings/githook_edit" DEPLOY_KEYS base.TplName = "repo/settings/deploy_keys" )
View Source
const (
BRANCH base.TplName = "repo/branch"
)
View Source
const (
HOME base.TplName = "repo/home"
)
Variables ¶
View Source
var ( ErrFileTypeForbidden = errors.New("File type is not allowed") ErrTooManyFiles = errors.New("Maximum number of files to upload exceeded") )
Functions ¶
func Action ¶
func Action(ctx *middleware.Context)
func Branches ¶
func Branches(ctx *middleware.Context)
func ChangeMilestonStatus ¶ added in v0.6.5
func ChangeMilestonStatus(ctx *middleware.Context)
func Collaboration ¶ added in v0.4.0
func Collaboration(ctx *middleware.Context)
func Commits ¶
func Commits(ctx *middleware.Context)
func CompareAndPullRequest ¶ added in v0.6.5
func CompareAndPullRequest(ctx *middleware.Context)
func CompareAndPullRequestPost ¶ added in v0.6.9
func CompareAndPullRequestPost(ctx *middleware.Context, form auth.CreateIssueForm)
func CompareDiff ¶ added in v0.5.0
func CompareDiff(ctx *middleware.Context)
func Create ¶
func Create(ctx *middleware.Context)
func CreatePost ¶ added in v0.3.0
func CreatePost(ctx *middleware.Context, form auth.CreateRepoForm)
func DeleteDeployKey ¶ added in v0.6.5
func DeleteDeployKey(ctx *middleware.Context)
func DeleteLabel ¶ added in v0.4.0
func DeleteLabel(ctx *middleware.Context)
func DeleteMilestone ¶ added in v0.6.5
func DeleteMilestone(ctx *middleware.Context)
func DeleteWebhook ¶ added in v0.6.9
func DeleteWebhook(ctx *middleware.Context)
func DeployKeys ¶ added in v0.6.9
func DeployKeys(ctx *middleware.Context)
func DeployKeysPost ¶ added in v0.6.9
func DeployKeysPost(ctx *middleware.Context, form auth.AddSSHKeyForm)
func Diff ¶
func Diff(ctx *middleware.Context)
func Download ¶ added in v0.5.0
func Download(ctx *middleware.Context)
func EditMilestone ¶ added in v0.6.5
func EditMilestone(ctx *middleware.Context)
func EditMilestonePost ¶ added in v0.6.5
func EditMilestonePost(ctx *middleware.Context, form auth.CreateMilestoneForm)
func EditRelease ¶ added in v0.5.0
func EditRelease(ctx *middleware.Context)
func EditReleasePost ¶ added in v0.5.0
func EditReleasePost(ctx *middleware.Context, form auth.EditReleaseForm)
func FileHistory ¶ added in v0.4.0
func FileHistory(ctx *middleware.Context)
func Fork ¶ added in v0.5.8
func Fork(ctx *middleware.Context)
func ForkPost ¶ added in v0.5.8
func ForkPost(ctx *middleware.Context, form auth.CreateRepoForm)
func GitHooks ¶ added in v0.5.5
func GitHooks(ctx *middleware.Context)
func GitHooksEdit ¶ added in v0.5.5
func GitHooksEdit(ctx *middleware.Context)
func GitHooksEditPost ¶ added in v0.5.5
func GitHooksEditPost(ctx *middleware.Context)
func HTTPBackend ¶ added in v0.6.0
func HTTPBackend(config *Config) http.HandlerFunc
Request handling function
func Home ¶ added in v0.5.0
func Home(ctx *middleware.Context)
func Http ¶
func Http(ctx *middleware.Context)
func Issues ¶
func Issues(ctx *middleware.Context)
func Labels ¶ added in v0.6.3
func Labels(ctx *middleware.Context)
func MergePullRequest ¶ added in v0.6.9
func MergePullRequest(ctx *middleware.Context)
func Migrate ¶ added in v0.3.0
func Migrate(ctx *middleware.Context)
func MigratePost ¶ added in v0.3.0
func MigratePost(ctx *middleware.Context, form auth.MigrateRepoForm)
func Milestones ¶ added in v0.4.0
func Milestones(ctx *middleware.Context)
func NewComment ¶ added in v0.6.5
func NewComment(ctx *middleware.Context, form auth.CreateCommentForm)
func NewIssue ¶ added in v0.6.5
func NewIssue(ctx *middleware.Context)
func NewIssuePost ¶ added in v0.6.5
func NewIssuePost(ctx *middleware.Context, form auth.CreateIssueForm)
func NewLabel ¶ added in v0.4.0
func NewLabel(ctx *middleware.Context, form auth.CreateLabelForm)
func NewMilestone ¶ added in v0.4.0
func NewMilestone(ctx *middleware.Context)
func NewMilestonePost ¶ added in v0.4.0
func NewMilestonePost(ctx *middleware.Context, form auth.CreateMilestoneForm)
func NewRelease ¶ added in v0.5.0
func NewRelease(ctx *middleware.Context)
func NewReleasePost ¶ added in v0.5.0
func NewReleasePost(ctx *middleware.Context, form auth.NewReleaseForm)
func ParseCompareInfo ¶ added in v0.6.9
func ParseCompareInfo(ctx *middleware.Context) (*models.User, *models.Repository, *git.Repository, *git.PullRequestInfo, string, string)
func ParseHookEvent ¶ added in v0.6.9
func ParseHookEvent(form auth.WebhookForm) *models.HookEvent
func PrepareCompareDiff ¶ added in v0.6.9
func PrepareCompareDiff( ctx *middleware.Context, headUser *models.User, headRepo *models.Repository, headGitRepo *git.Repository, prInfo *git.PullRequestInfo, baseBranch, headBranch string) bool
func PrepareMergedViewPullInfo ¶ added in v0.6.9
func PrepareMergedViewPullInfo(ctx *middleware.Context, pull *models.Issue)
func PrepareViewPullInfo ¶ added in v0.6.9
func PrepareViewPullInfo(ctx *middleware.Context, pull *models.Issue) *git.PullRequestInfo
func RefCommits ¶ added in v0.5.8
func RefCommits(ctx *middleware.Context)
func Releases ¶ added in v0.3.0
func Releases(ctx *middleware.Context)
func RenderIssueLinks ¶ added in v0.5.9
func RetrieveLabels ¶ added in v0.6.3
func RetrieveLabels(ctx *middleware.Context)
func RetrieveRepoMetas ¶ added in v0.6.9
func RetrieveRepoMetas(ctx *middleware.Context, repo *models.Repository) []*models.Label
func RetrieveRepoMilestonesAndAssignees ¶ added in v0.6.9
func RetrieveRepoMilestonesAndAssignees(ctx *middleware.Context, repo *models.Repository)
func SearchCommits ¶ added in v0.3.0
func SearchCommits(ctx *middleware.Context)
func Settings ¶ added in v0.5.0
func Settings(ctx *middleware.Context)
func SettingsPost ¶ added in v0.5.0
func SettingsPost(ctx *middleware.Context, form auth.RepoSettingForm)
func SingleDownload ¶
func SingleDownload(ctx *middleware.Context)
func SlackHooksEditPost ¶ added in v0.5.0
func SlackHooksEditPost(ctx *middleware.Context, form auth.NewSlackHookForm)
func SlackHooksNewPost ¶ added in v0.5.0
func SlackHooksNewPost(ctx *middleware.Context, form auth.NewSlackHookForm)
func TriggerHook ¶ added in v0.6.3
func TriggerHook(ctx *middleware.Context)
func UpdateCommentContent ¶ added in v0.6.9
func UpdateCommentContent(ctx *middleware.Context)
func UpdateIssueAssignee ¶ added in v0.6.5
func UpdateIssueAssignee(ctx *middleware.Context)
func UpdateIssueContent ¶ added in v0.6.9
func UpdateIssueContent(ctx *middleware.Context)
func UpdateIssueLabel ¶ added in v0.4.0
func UpdateIssueLabel(ctx *middleware.Context)
func UpdateIssueMilestone ¶ added in v0.4.0
func UpdateIssueMilestone(ctx *middleware.Context)
func UpdateIssueTitle ¶ added in v0.6.9
func UpdateIssueTitle(ctx *middleware.Context)
func UpdateLabel ¶ added in v0.4.0
func UpdateLabel(ctx *middleware.Context, form auth.CreateLabelForm)
func UploadIssueAttachment ¶ added in v0.6.5
func UploadIssueAttachment(ctx *middleware.Context)
func ValidateRepoMetas ¶ added in v0.6.9
func ValidateRepoMetas(ctx *middleware.Context, form auth.CreateIssueForm) ([]int64, int64, int64)
func ViewIssue ¶
func ViewIssue(ctx *middleware.Context)
func ViewPullCommits ¶ added in v0.6.9
func ViewPullCommits(ctx *middleware.Context)
func ViewPullFiles ¶ added in v0.6.9
func ViewPullFiles(ctx *middleware.Context)
func WebHooksEdit ¶ added in v0.4.0
func WebHooksEdit(ctx *middleware.Context)
func WebHooksEditPost ¶ added in v0.4.0
func WebHooksEditPost(ctx *middleware.Context, form auth.NewWebhookForm)
func WebHooksNewPost ¶ added in v0.5.0
func WebHooksNewPost(ctx *middleware.Context, form auth.NewWebhookForm)
func Webhooks ¶ added in v0.5.0
func Webhooks(ctx *middleware.Context)
func WebhooksNew ¶ added in v0.6.9
func WebhooksNew(ctx *middleware.Context)
Types ¶
Click to show internal directories.
Click to hide internal directories.