Documentation ¶
Index ¶
- type Comment
- type Issue
- type Pagure
- func (p *Pagure) IssueComment(issue int, comment string) error
- func (p *Pagure) IssueCommentInfo(issue int, comment int) (Comment, error)
- func (p *Pagure) IssueCreate(title string, content string, private bool) error
- func (p *Pagure) IssueInfo(issue int) (Issue, error)
- func (p *Pagure) IssueList(status string, tags string, assignee string, author string) ([]Issue, error)
- func (p *Pagure) ProjectCreate(projectname string, description string, namespace string, url string, ...) error
- func (p *Pagure) ProjectList(tags string, pattern string, username string, fork bool) ([]Project, error)
- func (p *Pagure) ProjectListTags() ([]string, error)
- func (p *Pagure) PullRequestClose(id int) error
- func (p *Pagure) PullRequestComment(id int, comment string, commit string, filename string, row int, treeID string) error
- func (p *Pagure) PullRequestFlag(id int, username string, percent int, comment string, url string, uid string, ...) error
- func (p *Pagure) PullRequestInfo(id int) (PullRequest, error)
- func (p *Pagure) PullRequestList(status string, assignee string, author string) ([]PullRequest, error)
- func (p *Pagure) PullRequestMerge(id int) error
- func (p *Pagure) UserInfo(username string) (UserInfo, error)
- func (p *Pagure) UserList(pattern string) ([]string, error)
- func (p *Pagure) UserListGroups(pattern string) ([]string, error)
- type PagureError
- type Project
- type PullRequest
- type User
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Issue ¶
type Pagure ¶
type Pagure struct {
// contains filtered or unexported fields
}
func CreateAnonymousInstance ¶
CreateAnonymousInstance provides an anonymous session to a Pagure instance
func CreateInstance ¶
CreateInstance provides an authenitcated session to a Pagure instance, for a particular project
func (*Pagure) IssueComment ¶
IssueComment comments on the issue
func (*Pagure) IssueCommentInfo ¶
func (*Pagure) IssueCreate ¶
IssueCreate opens a new issue for on this project session, on the pagure instance
func (*Pagure) IssueList ¶
func (p *Pagure) IssueList(status string, tags string, assignee string, author string) ([]Issue, error)
IssueList fetches the issues for this project session, on the pagure instance. - `status` is the status of the issue (string can be empty) - `tags` for issue groups (string can be empty) - `assignee` is who issue is assigned to (string can be empty) - `author` of the issue (string can be empty)
func (*Pagure) ProjectCreate ¶
func (p *Pagure) ProjectCreate(projectname string, description string, namespace string, url string, avatarEmail string, createReadme bool) error
ProjectCreate establishes a new project on the pagure instance
func (*Pagure) ProjectList ¶
func (p *Pagure) ProjectList(tags string, pattern string, username string, fork bool) ([]Project, error)
ProjectList fetches projects from the pagure instance that match provided criteria. - `tags` is the git tag (string can be empty) - `pattern` is the project name pattern (string can be empty) - `username` is the user that owns the proejct (string can be empty) - `fork` is whether to include forks of original projects in the list
func (*Pagure) ProjectListTags ¶
ProjectListTags fetches the tags/releases for the project
func (*Pagure) PullRequestComment ¶
func (*Pagure) PullRequestFlag ¶
func (*Pagure) PullRequestInfo ¶
func (p *Pagure) PullRequestInfo(id int) (PullRequest, error)
func (*Pagure) PullRequestList ¶
func (*Pagure) UserInfo ¶
UserInfo fetches the information on the provided username
func (*Pagure) UserList ¶
UserList fetches the of users that matches the provided pattern
type PagureError ¶
func (*PagureError) Error ¶
func (e *PagureError) Error() string
Error reports the error message (and satisfies the error interface)
type Project ¶
type PullRequest ¶
type PullRequest struct { Assignee User Branch string BranchFrom string `json:"branch_from"` ClosedAt string `json:"closed_at"` ClosedBy User `json:"closed_by"` Comments []Comment CommitStart string `json:"commit_start"` CommitStop string `json:"commit_stop"` DateCreated string `json:"date_created"` ID int Project Project RepoFrom Project `json:"repo_from"` Status string Title string UID string UpdatedOn string `json:"updated_on"` User User }