Documentation ¶
Index ¶
- Constants
- type JiraClient
- type JiraClientImpl
- func (jiraClientImpl *JiraClientImpl) AuthenticateUserAccount(clientRequest JiraClientRequest) (*http.Response, error)
- func (jiraClientImpl *JiraClientImpl) FindIssueTransitions(clientRequest JiraClientRequest, issueId string) ([]JiraTransition, error)
- func (jiraClientImpl *JiraClientImpl) UpdateJiraTransition(clientRequest JiraClientRequest, issueId string, transitionId string) (*http.Response, error)
- type JiraClientRequest
- type JiraTransition
- type JiraTransitionUpdateRequest
- type TransitionResponse
Constants ¶
View Source
const JiraGetIssueTransitionsApi = "/rest/api/latest/issue/%s/transitions/"
View Source
const JiraUpdateIssueTransitionsApi = "/rest/api/latest/issue/%s/transitions/"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JiraClient ¶
type JiraClient interface { AuthenticateUserAccount(clientRequest JiraClientRequest) (*http.Response, error) FindIssueTransitions(clientRequest JiraClientRequest, issueId string) ([]JiraTransition, error) UpdateJiraTransition(clientRequest JiraClientRequest, issueId string, transitionId string) (*http.Response, error) }
type JiraClientImpl ¶
type JiraClientImpl struct {
// contains filtered or unexported fields
}
func NewJiraClientImpl ¶
func NewJiraClientImpl(logger *zap.SugaredLogger, client *http.Client) *JiraClientImpl
func (*JiraClientImpl) AuthenticateUserAccount ¶
func (jiraClientImpl *JiraClientImpl) AuthenticateUserAccount(clientRequest JiraClientRequest) (*http.Response, error)
func (*JiraClientImpl) FindIssueTransitions ¶
func (jiraClientImpl *JiraClientImpl) FindIssueTransitions(clientRequest JiraClientRequest, issueId string) ([]JiraTransition, error)
func (*JiraClientImpl) UpdateJiraTransition ¶
func (jiraClientImpl *JiraClientImpl) UpdateJiraTransition(clientRequest JiraClientRequest, issueId string, transitionId string) (*http.Response, error)
type JiraClientRequest ¶
func CreateClientReq ¶
func CreateClientReq(userName string, token string, jiraAccountUrl string) JiraClientRequest
type JiraTransition ¶
type JiraTransitionUpdateRequest ¶
type JiraTransitionUpdateRequest struct {
JiraTransition JiraTransition `json:"transition"`
}
type TransitionResponse ¶
type TransitionResponse struct {
Transitions []JiraTransition `json:"transitions"`
}
Click to show internal directories.
Click to hide internal directories.