Documentation ¶
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 CreateFork(ctx *context.APIContext, form api.CreateForkOption)
- 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 CreatePullRequest(ctx *context.APIContext, form api.CreatePullRequestOption)
- func CreateRelease(ctx *context.APIContext, form api.CreateReleaseOption)
- func CreateUserRepo(ctx *context.APIContext, owner *models.User, opt api.CreateRepoOption)
- func Delete(ctx *context.APIContext)
- func DeleteCollaborator(ctx *context.APIContext)
- func DeleteDeploykey(ctx *context.APIContext)
- func DeleteHook(ctx *context.APIContext)
- func DeleteIssueComment(ctx *context.APIContext)
- func DeleteIssueLabel(ctx *context.APIContext)
- func DeleteLabel(ctx *context.APIContext)
- func DeleteMilestone(ctx *context.APIContext)
- func DeleteRelease(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 EditPullRequest(ctx *context.APIContext, form api.EditPullRequestOption)
- func EditRelease(ctx *context.APIContext, form api.EditReleaseOption)
- func Get(ctx *context.APIContext)
- func GetArchive(ctx *context.APIContext)
- func GetBranch(ctx *context.APIContext)
- func GetByID(ctx *context.APIContext)
- func GetCombinedCommitStatus(ctx *context.APIContext)
- func GetCommitStatuses(ctx *context.APIContext)
- func GetDeployKey(ctx *context.APIContext)
- func GetEditorconfig(ctx *context.APIContext)
- func GetHook(ctx *context.APIContext)
- func GetIssue(ctx *context.APIContext)
- func GetLabel(ctx *context.APIContext)
- func GetMilestone(ctx *context.APIContext)
- func GetPullRequest(ctx *context.APIContext)
- func GetRawFile(ctx *context.APIContext)
- func GetRelease(ctx *context.APIContext)
- func HandleAddKeyError(ctx *context.APIContext, err error)
- func HandleCheckKeyStringError(ctx *context.APIContext, err error)
- func IsCollaborator(ctx *context.APIContext)
- func IsPullRequestMerged(ctx *context.APIContext)
- func ListBranches(ctx *context.APIContext)
- func ListCollaborators(ctx *context.APIContext)
- func ListDeployKeys(ctx *context.APIContext)
- func ListForks(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 ListPullRequests(ctx *context.APIContext, form api.ListPullRequestsOptions)
- func ListReleases(ctx *context.APIContext)
- func ListRepoIssueComments(ctx *context.APIContext)
- func ListStargazers(ctx *context.APIContext)
- func ListSubscribers(ctx *context.APIContext)
- func MergePullRequest(ctx *context.APIContext)
- func Migrate(ctx *context.APIContext, form auth.MigrateRepoForm)
- func MirrorSync(ctx *context.APIContext)
- func NewCommitStatus(ctx *context.APIContext, form api.CreateStatusOption)
- 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 ¶
func AddCollaborator(ctx *context.APIContext, form api.AddCollaboratorOption)
AddCollaborator add a collaborator of a repository
func AddIssueLabels ¶
func AddIssueLabels(ctx *context.APIContext, form api.IssueLabelsOption)
AddIssueLabels add labels for an issue
func ClearIssueLabels ¶
func ClearIssueLabels(ctx *context.APIContext)
ClearIssueLabels delete all the labels for an issue
func Create ¶
func Create(ctx *context.APIContext, opt api.CreateRepoOption)
Create one repository of mine
func CreateDeployKey ¶
func CreateDeployKey(ctx *context.APIContext, form api.CreateKeyOption)
CreateDeployKey create deploy key for a repository see https://github.com/gogits/go-gogs-client/wiki/Repositories-Deploy-Keys#add-a-new-deploy-key
func CreateFork ¶ added in v1.1.0
func CreateFork(ctx *context.APIContext, form api.CreateForkOption)
CreateFork create a fork of a repo
func CreateHook ¶
func CreateHook(ctx *context.APIContext, form api.CreateHookOption)
CreateHook create a hook for a repository
func CreateIssue ¶
func CreateIssue(ctx *context.APIContext, form api.CreateIssueOption)
CreateIssue create an issue of a repository
func CreateIssueComment ¶
func CreateIssueComment(ctx *context.APIContext, form api.CreateIssueCommentOption)
CreateIssueComment create a comment for an issue
func CreateLabel ¶
func CreateLabel(ctx *context.APIContext, form api.CreateLabelOption)
CreateLabel create a label for a repository
func CreateMilestone ¶
func CreateMilestone(ctx *context.APIContext, form api.CreateMilestoneOption)
CreateMilestone create a milestone for a repository
func CreateOrgRepo ¶
func CreateOrgRepo(ctx *context.APIContext, opt api.CreateRepoOption)
CreateOrgRepo create one repository of the organization
func CreatePullRequest ¶ added in v1.0.0
func CreatePullRequest(ctx *context.APIContext, form api.CreatePullRequestOption)
CreatePullRequest does what it says
func CreateRelease ¶ added in v1.1.0
func CreateRelease(ctx *context.APIContext, form api.CreateReleaseOption)
CreateRelease create a release
func CreateUserRepo ¶
func CreateUserRepo(ctx *context.APIContext, owner *models.User, opt api.CreateRepoOption)
CreateUserRepo create a repository for a user
func DeleteCollaborator ¶ added in v1.1.0
func DeleteCollaborator(ctx *context.APIContext)
DeleteCollaborator delete a collaborator from a repository
func DeleteDeploykey ¶
func DeleteDeploykey(ctx *context.APIContext)
DeleteDeploykey delete deploy key for a repository see https://github.com/gogits/go-gogs-client/wiki/Repositories-Deploy-Keys#remove-a-deploy-key
func DeleteIssueComment ¶ added in v1.0.0
func DeleteIssueComment(ctx *context.APIContext)
DeleteIssueComment delete a comment from an issue
func DeleteIssueLabel ¶
func DeleteIssueLabel(ctx *context.APIContext)
DeleteIssueLabel delete a label for an issue
func DeleteLabel ¶
func DeleteLabel(ctx *context.APIContext)
DeleteLabel delete a label for a repository
func DeleteMilestone ¶
func DeleteMilestone(ctx *context.APIContext)
DeleteMilestone delete a milestone for a repository
func DeleteRelease ¶ added in v1.1.0
func DeleteRelease(ctx *context.APIContext)
DeleteRelease delete a release from a repository
func EditHook ¶
func EditHook(ctx *context.APIContext, form api.EditHookOption)
EditHook modify a hook of a repository
func EditIssue ¶
func EditIssue(ctx *context.APIContext, form api.EditIssueOption)
EditIssue modify an issue of a repository
func EditIssueComment ¶
func EditIssueComment(ctx *context.APIContext, form api.EditIssueCommentOption)
EditIssueComment modify a comment of an issue
func EditLabel ¶
func EditLabel(ctx *context.APIContext, form api.EditLabelOption)
EditLabel modify a label for a repository
func EditMilestone ¶
func EditMilestone(ctx *context.APIContext, form api.EditMilestoneOption)
EditMilestone modify a milestone for a repository
func EditPullRequest ¶ added in v1.0.0
func EditPullRequest(ctx *context.APIContext, form api.EditPullRequestOption)
EditPullRequest does what it says
func EditRelease ¶ added in v1.1.0
func EditRelease(ctx *context.APIContext, form api.EditReleaseOption)
EditRelease edit a release
func GetArchive ¶
func GetArchive(ctx *context.APIContext)
GetArchive get archive of a repository see https://github.com/gogits/go-gogs-client/wiki/Repositories-Contents#download-archive
func GetBranch ¶
func GetBranch(ctx *context.APIContext)
GetBranch get a branch of a repository see https://github.com/gogits/go-gogs-client/wiki/Repositories#get-branch
func GetByID ¶ added in v1.0.0
func GetByID(ctx *context.APIContext)
GetByID returns a single Repository
func GetCombinedCommitStatus ¶ added in v1.2.0
func GetCombinedCommitStatus(ctx *context.APIContext)
GetCombinedCommitStatus returns the combined status for any given commit hash
func GetCommitStatuses ¶ added in v1.2.0
func GetCommitStatuses(ctx *context.APIContext)
GetCommitStatuses returns all statuses for any given commit hash
func GetDeployKey ¶
func GetDeployKey(ctx *context.APIContext)
GetDeployKey get a deploy key by id see https://github.com/gogits/go-gogs-client/wiki/Repositories-Deploy-Keys#get-a-deploy-key
func GetEditorconfig ¶
func GetEditorconfig(ctx *context.APIContext)
GetEditorconfig get editor config of a repository
func GetHook ¶ added in v1.1.0
func GetHook(ctx *context.APIContext)
GetHook get a repo's hook by id
func GetLabel ¶
func GetLabel(ctx *context.APIContext)
GetLabel get label by repository and label id
func GetMilestone ¶
func GetMilestone(ctx *context.APIContext)
GetMilestone get a milestone for a repository
func GetPullRequest ¶ added in v1.0.0
func GetPullRequest(ctx *context.APIContext)
GetPullRequest returns a single PR based on index
func GetRawFile ¶
func GetRawFile(ctx *context.APIContext)
GetRawFile get a file by path on a repository see https://github.com/gogits/go-gogs-client/wiki/Repositories-Contents#download-raw-content
func GetRelease ¶ added in v1.1.0
func GetRelease(ctx *context.APIContext)
GetRelease get a single release of a repository
func HandleAddKeyError ¶
func HandleAddKeyError(ctx *context.APIContext, err error)
HandleAddKeyError handle add key error
func HandleCheckKeyStringError ¶
func HandleCheckKeyStringError(ctx *context.APIContext, err error)
HandleCheckKeyStringError handle check key error
func IsCollaborator ¶ added in v1.1.0
func IsCollaborator(ctx *context.APIContext)
IsCollaborator check if a user is a collaborator of a repository
func IsPullRequestMerged ¶ added in v1.0.0
func IsPullRequestMerged(ctx *context.APIContext)
IsPullRequestMerged checks if a PR exists given an index
- Returns 204 if it exists Otherwise 404
func ListBranches ¶
func ListBranches(ctx *context.APIContext)
ListBranches list all the branches of a repository see https://github.com/gogits/go-gogs-client/wiki/Repositories#list-branches
func ListCollaborators ¶ added in v1.1.0
func ListCollaborators(ctx *context.APIContext)
ListCollaborators list a repository's collaborators
func ListDeployKeys ¶
func ListDeployKeys(ctx *context.APIContext)
ListDeployKeys list all the deploy keys of a repository see https://github.com/gogits/go-gogs-client/wiki/Repositories-Deploy-Keys#list-deploy-keys
func ListForks ¶ added in v1.1.0
func ListForks(ctx *context.APIContext)
ListForks list a repository's forks
func ListIssueComments ¶
func ListIssueComments(ctx *context.APIContext)
ListIssueComments list all the comments of an issue
func ListIssueLabels ¶
func ListIssueLabels(ctx *context.APIContext)
ListIssueLabels list all the labels of an issue
func ListIssues ¶
func ListIssues(ctx *context.APIContext)
ListIssues list the issues of a repository
func ListLabels ¶
func ListLabels(ctx *context.APIContext)
ListLabels list all the labels of a repository
func ListMilestones ¶
func ListMilestones(ctx *context.APIContext)
ListMilestones list all the milestones for a repository
func ListPullRequests ¶ added in v1.0.0
func ListPullRequests(ctx *context.APIContext, form api.ListPullRequestsOptions)
ListPullRequests returns a list of all PRs
func ListReleases ¶ added in v1.1.0
func ListReleases(ctx *context.APIContext)
ListReleases list a repository's releases
func ListRepoIssueComments ¶ added in v1.0.0
func ListRepoIssueComments(ctx *context.APIContext)
ListRepoIssueComments returns all issue-comments for an issue
func ListStargazers ¶ added in v1.1.0
func ListStargazers(ctx *context.APIContext)
ListStargazers list a repository's stargazers
func ListSubscribers ¶ added in v1.1.0
func ListSubscribers(ctx *context.APIContext)
ListSubscribers list a repo's subscribers (i.e. watchers)
func MergePullRequest ¶ added in v1.0.0
func MergePullRequest(ctx *context.APIContext)
MergePullRequest merges a PR given an index
func Migrate ¶
func Migrate(ctx *context.APIContext, form auth.MigrateRepoForm)
Migrate migrate remote git repository to gitea
func MirrorSync ¶ added in v1.2.0
func MirrorSync(ctx *context.APIContext)
MirrorSync adds a mirrored repository to the sync queue
func NewCommitStatus ¶ added in v1.2.0
func NewCommitStatus(ctx *context.APIContext, form api.CreateStatusOption)
NewCommitStatus creates a new CommitStatus
func ReplaceIssueLabels ¶
func ReplaceIssueLabels(ctx *context.APIContext, form api.IssueLabelsOption)
ReplaceIssueLabels replace labels for an issue
Types ¶
This section is empty.