repo

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2015 License: MIT Imports: 29 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"
	PULLS        base.TplName = "repo/pulls"
)
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 Commits

func Commits(ctx *middleware.Context)

func CompareAndPullRequest added in v0.6.5

func CompareAndPullRequest(ctx *middleware.Context)

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 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 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 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 RetrieveLabels added in v0.6.3

func RetrieveLabels(ctx *middleware.Context)

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

func SettingsCollaboration(ctx *middleware.Context)

func SettingsDeployKeys added in v0.6.5

func SettingsDeployKeys(ctx *middleware.Context)

func SettingsDeployKeysPost added in v0.6.5

func SettingsDeployKeysPost(ctx *middleware.Context, form auth.AddSSHKeyForm)

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 UpdateIssue

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

func UpdateIssueAssignee added in v0.6.5

func UpdateIssueAssignee(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 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 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