client

package
v0.2.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2021 License: Apache-2.0 Imports: 6 Imported by: 5

Documentation

Index

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

type JiraClientRequest struct {
	JiraAccountUrl   string
	EncodedAuthToken string
}

func CreateClientReq

func CreateClientReq(userName string, token string, jiraAccountUrl string) JiraClientRequest

type JiraTransition

type JiraTransition struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

type JiraTransitionUpdateRequest

type JiraTransitionUpdateRequest struct {
	JiraTransition JiraTransition `json:"transition"`
}

type TransitionResponse

type TransitionResponse struct {
	Transitions []JiraTransition `json:"transitions"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL