repo

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2015 License: MIT Imports: 28 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_CREATE base.TplName = "repo/issue/create"
	ISSUE_VIEW   base.TplName = "repo/issue/view"

	MILESTONE      base.TplName = "repo/issue/milestone"
	MILESTONE_NEW  base.TplName = "repo/issue/milestone_new"
	MILESTONE_EDIT base.TplName = "repo/issue/milestone_edit"
)
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"
	FORK    base.TplName = "repo/fork"
)
View Source
const (
	SETTINGS_OPTIONS base.TplName = "repo/settings/options"
	COLLABORATION    base.TplName = "repo/settings/collaboration"
	HOOKS            base.TplName = "repo/settings/hooks"
	GITHOOKS         base.TplName = "repo/settings/githooks"
	GITHOOK_EDIT     base.TplName = "repo/settings/githook_edit"
	HOOK_NEW         base.TplName = "repo/settings/hook_new"
	ORG_HOOK_NEW     base.TplName = "org/settings/hook_new"
)
View Source
const (
	BRANCH base.TplName = "repo/branch"
)
View Source
const (
	HOME base.TplName = "repo/home"
)
View Source
const (
	PULLS base.TplName = "repo/pulls"
)

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 Comment

func Comment(ctx *middleware.Context)

func Commits

func Commits(ctx *middleware.Context)

func CompareDiff added in v0.5.0

func CompareDiff(ctx *middleware.Context)

func Create

func Create(ctx *middleware.Context)

func CreateIssue

func CreateIssue(ctx *middleware.Context)

func CreateIssuePost added in v0.3.0

func CreateIssuePost(ctx *middleware.Context, form auth.CreateIssueForm)

func CreatePost added in v0.3.0

func CreatePost(ctx *middleware.Context, form auth.CreateRepoForm)

func DeleteLabel added in v0.4.0

func DeleteLabel(ctx *middleware.Context)

func Diff

func Diff(ctx *middleware.Context)

func Download added in v0.5.0

func Download(ctx *middleware.Context)

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 IssueGetAttachment added in v0.5.0

func IssueGetAttachment(ctx *middleware.Context)

func Issues

func Issues(ctx *middleware.Context)

func Issues2 added in v0.5.5

func Issues2(ctx *middleware.Context)

testing route handler for new issue ui page todo : move to Issue() function

func Labels2 added in v0.5.8

func Labels2(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 Milestones2 added in v0.5.9

func Milestones2(ctx *middleware.Context)

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

func PullRequest2(ctx *middleware.Context)

func Pulls

func Pulls(ctx *middleware.Context)

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 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 Settings added in v0.5.0

func Settings(ctx *middleware.Context)

func SettingsCollaboration added in v0.5.0

func SettingsCollaboration(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 UpdateAssignee added in v0.4.0

func UpdateAssignee(ctx *middleware.Context)

func UpdateIssue

func UpdateIssue(ctx *middleware.Context, form auth.CreateIssueForm)

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 UpdateLabel added in v0.4.0

func UpdateLabel(ctx *middleware.Context, form auth.CreateLabelForm)

func UpdateMilestone added in v0.4.0

func UpdateMilestone(ctx *middleware.Context)

func UpdateMilestonePost added in v0.4.0

func UpdateMilestonePost(ctx *middleware.Context, form auth.CreateMilestoneForm)

func ViewIssue

func ViewIssue(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 WebHooksNew added in v0.5.0

func WebHooksNew(ctx *middleware.Context)

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)

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
}

Jump to

Keyboard shortcuts

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