repo

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2014 License: BSD-3-Clause 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"
)
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"
)
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 Home added in v0.5.0

func Home(ctx *middleware.Context)

func Http

func Http(ctx *middleware.Context)

func HttpBackend added in v0.3.0

func HttpBackend(config *Config) http.HandlerFunc

Request handling function

func IssueGetAttachment added in v0.5.0

func IssueGetAttachment(ctx *middleware.Context)

func Issues

func Issues(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 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 Pulls

func Pulls(ctx *middleware.Context)

func Releases added in v0.3.0

func Releases(ctx *middleware.Context)

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 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 {
	ReposRoot   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