Documentation ¶
Index ¶
- Constants
- Variables
- func ProviderAccessTokenURL(kind string, url string) string
- type GitIssueProvider
- func (i *GitIssueProvider) CreateIssue(issue *gits.GitIssue) (*gits.GitIssue, error)
- func (i *GitIssueProvider) CreateIssueComment(key string, comment string) error
- func (i *GitIssueProvider) GetIssue(key string) (*gits.GitIssue, error)
- func (i *GitIssueProvider) SearchIssues(query string) ([]*gits.GitIssue, error)
- type IssueProvider
- func CreateGitIssueProvider(gitProvider gits.GitProvider, owner string, repository string) (IssueProvider, error)
- func CreateIssueProvider(kind string, server *auth.AuthServer, userAuth *auth.UserAuth, project string) (IssueProvider, error)
- func CreateJiraIssueProvider(server *auth.AuthServer, userAuth *auth.UserAuth, project string) (IssueProvider, error)
- type JiraService
- func (i *JiraService) CreateIssue(issue *gits.GitIssue) (*gits.GitIssue, error)
- func (i *JiraService) CreateIssueComment(key string, comment string) error
- func (i *JiraService) GetIssue(key string) (*gits.GitIssue, error)
- func (i *JiraService) SearchIssues(query string) ([]*gits.GitIssue, error)
- func (i *JiraService) ServerName() string
Constants ¶
View Source
const ( Bugzilla = "bugzilla" Jira = "jira" Trello = "trello" )
Variables ¶
View Source
var (
IssueTrackerKinds = []string{Bugzilla, Jira, Trello}
)
Functions ¶
func ProviderAccessTokenURL ¶
Types ¶
type GitIssueProvider ¶
type GitIssueProvider struct { GitProvider gits.GitProvider Owner string Repository string }
func (*GitIssueProvider) CreateIssue ¶
func (*GitIssueProvider) CreateIssueComment ¶
func (i *GitIssueProvider) CreateIssueComment(key string, comment string) error
func (*GitIssueProvider) GetIssue ¶
func (i *GitIssueProvider) GetIssue(key string) (*gits.GitIssue, error)
func (*GitIssueProvider) SearchIssues ¶
func (i *GitIssueProvider) SearchIssues(query string) ([]*gits.GitIssue, error)
type IssueProvider ¶
type IssueProvider interface { GetIssue(key string) (*gits.GitIssue, error) SearchIssues(query string) ([]*gits.GitIssue, error) CreateIssue(issue *gits.GitIssue) (*gits.GitIssue, error) CreateIssueComment(key string, comment string) error }
func CreateGitIssueProvider ¶
func CreateGitIssueProvider(gitProvider gits.GitProvider, owner string, repository string) (IssueProvider, error)
func CreateIssueProvider ¶
func CreateIssueProvider(kind string, server *auth.AuthServer, userAuth *auth.UserAuth, project string) (IssueProvider, error)
func CreateJiraIssueProvider ¶
func CreateJiraIssueProvider(server *auth.AuthServer, userAuth *auth.UserAuth, project string) (IssueProvider, error)
type JiraService ¶
type JiraService struct { JiraClient *jira.Client Server *auth.AuthServer UserAuth *auth.UserAuth Project string }
func (*JiraService) CreateIssue ¶
func (*JiraService) CreateIssueComment ¶
func (i *JiraService) CreateIssueComment(key string, comment string) error
func (*JiraService) SearchIssues ¶
func (i *JiraService) SearchIssues(query string) ([]*gits.GitIssue, error)
func (*JiraService) ServerName ¶
func (i *JiraService) ServerName() string
Click to show internal directories.
Click to hide internal directories.