jira

package
v0.1.37 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JiraOHSSProjectKey   = "OHSS"
	CustomFieldClusterID = "customfield_12316349"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultIssueServiceGetterImpl

type DefaultIssueServiceGetterImpl struct {
	// contains filtered or unexported fields
}

func (*DefaultIssueServiceGetterImpl) GetIssueService

func (getter *DefaultIssueServiceGetterImpl) GetIssueService() (*jira.IssueService, error)

type IssueServiceDecorator

type IssueServiceDecorator struct {
	Getter IssueServiceGetter
}

func (*IssueServiceDecorator) Create

func (decorator *IssueServiceDecorator) Create(issue *jira.Issue) (*jira.Issue, *jira.Response, error)

func (*IssueServiceDecorator) DoTransition

func (decorator *IssueServiceDecorator) DoTransition(ticketID, transitionID string) (*jira.Response, error)

func (*IssueServiceDecorator) Get

func (decorator *IssueServiceDecorator) Get(issueID string, options *jira.GetQueryOptions) (*jira.Issue, *jira.Response, error)

func (*IssueServiceDecorator) GetTransitions

func (decorator *IssueServiceDecorator) GetTransitions(id string) ([]jira.Transition, *jira.Response, error)

func (*IssueServiceDecorator) Update

func (decorator *IssueServiceDecorator) Update(issue *jira.Issue) (*jira.Issue, *jira.Response, error)

type IssueServiceGetter

type IssueServiceGetter interface {
	GetIssueService() (*jira.IssueService, error)
}

type IssueServiceInterface

type IssueServiceInterface interface {
	Create(issue *jira.Issue) (*jira.Issue, *jira.Response, error)
	Get(issueID string, options *jira.GetQueryOptions) (*jira.Issue, *jira.Response, error)
	Update(issue *jira.Issue) (*jira.Issue, *jira.Response, error)
	GetTransitions(id string) ([]jira.Transition, *jira.Response, error)
	DoTransition(ticketID, transitionID string) (*jira.Response, error)
}

type OHSSIssue

type OHSSIssue struct {
	ID         string
	Key        string
	Title      string
	ProjectKey string
	WebURL     string
	ClusterID  string
}

type OHSSService

type OHSSService struct {
	// contains filtered or unexported fields
}

func NewOHSSService

func NewOHSSService(client IssueServiceInterface) *OHSSService

func (*OHSSService) GetIssue

func (j *OHSSService) GetIssue(issueID string) (ohssIssue OHSSIssue, err error)

GetIssue returns matching issue from OHSS project

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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