Documentation ¶
Overview ¶
Copyright 2015 The Gogs Authors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
Index ¶
- func AddCollaborator(ctx *context.APIContext, form api.AddCollaboratorOption)
- func AddIssueLabels(ctx *context.APIContext, form api.IssueLabelsOption)
- func ClearIssueLabels(ctx *context.APIContext)
- func Create(ctx *context.APIContext, opt api.CreateRepoOption)
- func CreateDeployKey(ctx *context.APIContext, form api.CreateKeyOption)
- func CreateHook(ctx *context.APIContext, form api.CreateHookOption)
- func CreateIssue(ctx *context.APIContext, form api.CreateIssueOption)
- func CreateIssueComment(ctx *context.APIContext, form api.CreateIssueCommentOption)
- func CreateLabel(ctx *context.APIContext, form api.CreateLabelOption)
- func CreateMilestone(ctx *context.APIContext, form api.CreateMilestoneOption)
- func CreateOrgRepo(ctx *context.APIContext, opt api.CreateRepoOption)
- func CreateUserRepo(ctx *context.APIContext, owner *models.User, opt api.CreateRepoOption)
- func Delete(ctx *context.APIContext)
- func DeleteDeploykey(ctx *context.APIContext)
- func DeleteHook(ctx *context.APIContext)
- func DeleteIssueLabel(ctx *context.APIContext)
- func DeleteLabel(ctx *context.APIContext)
- func DeleteMilestone(ctx *context.APIContext)
- func EditHook(ctx *context.APIContext, form api.EditHookOption)
- func EditIssue(ctx *context.APIContext, form api.EditIssueOption)
- func EditIssueComment(ctx *context.APIContext, form api.EditIssueCommentOption)
- func EditLabel(ctx *context.APIContext, form api.EditLabelOption)
- func EditMilestone(ctx *context.APIContext, form api.EditMilestoneOption)
- func Get(ctx *context.APIContext)
- func GetArchive(ctx *context.APIContext)
- func GetBranch(ctx *context.APIContext)
- func GetDeployKey(ctx *context.APIContext)
- func GetEditorconfig(ctx *context.APIContext)
- func GetIssue(ctx *context.APIContext)
- func GetLabel(ctx *context.APIContext)
- func GetMilestone(ctx *context.APIContext)
- func GetRawFile(ctx *context.APIContext)
- func HandleAddKeyError(ctx *context.APIContext, err error)
- func HandleCheckKeyStringError(ctx *context.APIContext, err error)
- func ListBranches(ctx *context.APIContext)
- func ListDeployKeys(ctx *context.APIContext)
- func ListHooks(ctx *context.APIContext)
- func ListIssueComments(ctx *context.APIContext)
- func ListIssueLabels(ctx *context.APIContext)
- func ListIssues(ctx *context.APIContext)
- func ListLabels(ctx *context.APIContext)
- func ListMilestones(ctx *context.APIContext)
- func ListMyRepos(ctx *context.APIContext)
- func Migrate(ctx *context.APIContext, form auth.MigrateRepoForm)
- func ReplaceIssueLabels(ctx *context.APIContext, form api.IssueLabelsOption)
- func Search(ctx *context.APIContext)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCollaborator ¶ added in v0.9.97
func AddCollaborator(ctx *context.APIContext, form api.AddCollaboratorOption)
func AddIssueLabels ¶ added in v0.9.60
func AddIssueLabels(ctx *context.APIContext, form api.IssueLabelsOption)
func ClearIssueLabels ¶ added in v0.9.60
func ClearIssueLabels(ctx *context.APIContext)
func Create ¶
func Create(ctx *context.APIContext, opt api.CreateRepoOption)
https://github.com/gogits/go-gogs-client/wiki/Repositories#create
func CreateDeployKey ¶
func CreateDeployKey(ctx *context.APIContext, form api.CreateKeyOption)
https://github.com/gogits/go-gogs-client/wiki/Repositories-Deploy-Keys#add-a-new-deploy-key
func CreateHook ¶
func CreateHook(ctx *context.APIContext, form api.CreateHookOption)
https://github.com/gogits/go-gogs-client/wiki/Repositories#create-a-hook
func CreateIssue ¶ added in v0.9.13
func CreateIssue(ctx *context.APIContext, form api.CreateIssueOption)
func CreateIssueComment ¶ added in v0.9.97
func CreateIssueComment(ctx *context.APIContext, form api.CreateIssueCommentOption)
func CreateLabel ¶ added in v0.9.60
func CreateLabel(ctx *context.APIContext, form api.CreateLabelOption)
func CreateMilestone ¶ added in v0.9.97
func CreateMilestone(ctx *context.APIContext, form api.CreateMilestoneOption)
func CreateOrgRepo ¶
func CreateOrgRepo(ctx *context.APIContext, opt api.CreateRepoOption)
func CreateUserRepo ¶ added in v0.8.10
func CreateUserRepo(ctx *context.APIContext, owner *models.User, opt api.CreateRepoOption)
func Delete ¶
func Delete(ctx *context.APIContext)
https://github.com/gogits/go-gogs-client/wiki/Repositories#delete
func DeleteDeploykey ¶
func DeleteDeploykey(ctx *context.APIContext)
https://github.com/gogits/go-gogs-client/wiki/Repositories-Deploy-Keys#remove-a-deploy-key
func DeleteHook ¶ added in v0.9.46
func DeleteHook(ctx *context.APIContext)
func DeleteIssueLabel ¶ added in v0.9.60
func DeleteIssueLabel(ctx *context.APIContext)
func DeleteLabel ¶ added in v0.9.60
func DeleteLabel(ctx *context.APIContext)
func DeleteMilestone ¶ added in v0.9.97
func DeleteMilestone(ctx *context.APIContext)
func EditHook ¶
func EditHook(ctx *context.APIContext, form api.EditHookOption)
https://github.com/gogits/go-gogs-client/wiki/Repositories#edit-a-hook
func EditIssue ¶ added in v0.9.13
func EditIssue(ctx *context.APIContext, form api.EditIssueOption)
func EditIssueComment ¶ added in v0.9.97
func EditIssueComment(ctx *context.APIContext, form api.EditIssueCommentOption)
func EditLabel ¶ added in v0.9.60
func EditLabel(ctx *context.APIContext, form api.EditLabelOption)
func EditMilestone ¶ added in v0.9.97
func EditMilestone(ctx *context.APIContext, form api.EditMilestoneOption)
func Get ¶
func Get(ctx *context.APIContext)
https://github.com/gogits/go-gogs-client/wiki/Repositories#get
func GetArchive ¶
func GetArchive(ctx *context.APIContext)
https://github.com/gogits/go-gogs-client/wiki/Repositories-Contents#download-archive
func GetBranch ¶ added in v0.8.43
func GetBranch(ctx *context.APIContext)
https://github.com/gogits/go-gogs-client/wiki/Repositories#get-branch
func GetDeployKey ¶
func GetDeployKey(ctx *context.APIContext)
https://github.com/gogits/go-gogs-client/wiki/Repositories-Deploy-Keys#get-a-deploy-key
func GetEditorconfig ¶ added in v0.9.97
func GetEditorconfig(ctx *context.APIContext)
func GetIssue ¶ added in v0.9.13
func GetIssue(ctx *context.APIContext)
func GetLabel ¶ added in v0.9.60
func GetLabel(ctx *context.APIContext)
func GetMilestone ¶ added in v0.9.97
func GetMilestone(ctx *context.APIContext)
func GetRawFile ¶
func GetRawFile(ctx *context.APIContext)
https://github.com/gogits/go-gogs-client/wiki/Repositories-Contents#download-raw-content
func HandleAddKeyError ¶
func HandleAddKeyError(ctx *context.APIContext, err error)
func HandleCheckKeyStringError ¶
func HandleCheckKeyStringError(ctx *context.APIContext, err error)
func ListBranches ¶ added in v0.8.43
func ListBranches(ctx *context.APIContext)
https://github.com/gogits/go-gogs-client/wiki/Repositories#list-branches
func ListDeployKeys ¶
func ListDeployKeys(ctx *context.APIContext)
https://github.com/gogits/go-gogs-client/wiki/Repositories-Deploy-Keys#list-deploy-keys
func ListHooks ¶
func ListHooks(ctx *context.APIContext)
https://github.com/gogits/go-gogs-client/wiki/Repositories#list-hooks
func ListIssueComments ¶ added in v0.9.97
func ListIssueComments(ctx *context.APIContext)
func ListIssueLabels ¶ added in v0.9.60
func ListIssueLabels(ctx *context.APIContext)
func ListIssues ¶ added in v0.9.13
func ListIssues(ctx *context.APIContext)
func ListLabels ¶ added in v0.9.60
func ListLabels(ctx *context.APIContext)
func ListMilestones ¶ added in v0.9.97
func ListMilestones(ctx *context.APIContext)
func ListMyRepos ¶
func ListMyRepos(ctx *context.APIContext)
https://github.com/gogits/go-gogs-client/wiki/Repositories#list-your-repositories
func Migrate ¶
func Migrate(ctx *context.APIContext, form auth.MigrateRepoForm)
https://github.com/gogits/go-gogs-client/wiki/Repositories#migrate
func ReplaceIssueLabels ¶ added in v0.9.60
func ReplaceIssueLabels(ctx *context.APIContext, form api.IssueLabelsOption)
func Search ¶
func Search(ctx *context.APIContext)
https://github.com/gogits/go-gogs-client/wiki/Repositories#search-repositories
Types ¶
This section is empty.