repo

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2015 License: MIT Imports: 31 Imported by: 0

Documentation

Index

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"
)
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"
	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 (
	HOME     base.TplName = "repo/home"
	WATCHERS base.TplName = "repo/watchers"
	FORKS    base.TplName = "repo/forks"
)
View Source
const (
	HOOKS        base.TplName = "repo/settings/hooks"
	HOOK_NEW     base.TplName = "repo/settings/hook_new"
	ORG_HOOK_NEW base.TplName = "org/settings/hook_new"
)
View Source
const (
	WIKI_START base.TplName = "repo/wiki/start"
	WIKI_VIEW  base.TplName = "repo/wiki/view"
	WIKI_NEW   base.TplName = "repo/wiki/new"
	WIKI_PAGES base.TplName = "repo/wiki/pages"
)
View Source
const (
	BRANCH base.TplName = "repo/branch"
)

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 DeleteRelease added in v0.7.19

func DeleteRelease(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 EditWiki added in v0.7.33

func EditWiki(ctx *middleware.Context)

func EditWikiPost added in v0.7.33

func EditWikiPost(ctx *middleware.Context, form auth.NewWikiForm)

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 Forks added in v0.7.0

func Forks(ctx *middleware.Context)

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 HTTP added in v0.7.0

func HTTP(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 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 MustEnableIssues added in v0.7.33

func MustEnableIssues(ctx *middleware.Context)

func MustEnablePulls added in v0.7.33

func MustEnablePulls(ctx *middleware.Context)

func MustEnableWiki added in v0.7.33

func MustEnableWiki(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 NewWiki added in v0.7.33

func NewWiki(ctx *middleware.Context)

func NewWikiPost added in v0.7.33

func NewWikiPost(ctx *middleware.Context, form auth.NewWikiForm)

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(oldCommits *list.List, repoLink string) *list.List

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 ServeBlob added in v0.5.8

func ServeBlob(ctx *middleware.Context, blob *git.Blob) error

func ServeData added in v0.6.5

func ServeData(ctx *middleware.Context, name string, reader io.Reader) error

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 Stars added in v0.7.0

func Stars(ctx *middleware.Context)

func TestWebhook added in v0.7.33

func TestWebhook(ctx *middleware.Context)

func TriggerTask added in v0.7.0

func TriggerTask(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 Watchers added in v0.7.0

func Watchers(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)

func Wiki added in v0.7.33

func Wiki(ctx *middleware.Context)

func WikiPages added in v0.7.33

func WikiPages(ctx *middleware.Context)

Types

type Config added in v0.3.0

type Config struct {
	RepoRootPath string
	GitBinPath   string
	UploadPack   bool
	ReceivePack  bool
	OnSucceed    func(rpc string, input []byte)
}

type OrgRepoCtx added in v0.5.0

type OrgRepoCtx struct {
	OrgID       int64
	RepoID      int64
	Link        string
	NewTemplate base.TplName
}

type PageMeta added in v0.7.33

type PageMeta struct {
	Name    string
	URL     string
	Updated time.Time
}

Jump to

Keyboard shortcuts

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