jira

package
v0.6.19 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountDetails

type AccountDetails struct {
	UserId                         int32
	ProjectManagementToolAuthToken string
	CommitIdRegex                  string
	UserName                       string
	URL                            string
	FinalIssueStatus               string
}

type Commit

type Commit struct {
	CommitId      string `json:"commitId"`
	CommitMessage string `json:"commitMessage"`
}

type ConfigBean

type ConfigBean struct {
	UserId                         int32  `json:"userId" validate:"number,required"`
	PipelineId                     int32  `json:"pipelineId" validate:"number,required"`
	PipelineStage                  string `json:"pipelineStage" validate:"required"`
	FinalIssueStatus               string `json:"finalIssueStatus" validate:"required"`
	ProjectManagementToolAuthToken string `json:"projectManagementToolAuthToken" validate:"required"`
	CommitIdRegex                  string `json:"commitIdRegex" validate:"required"`
	ToolUserName                   string `json:"toolUserName" validate:"required"`
	CompanyToolUrl                 string `json:"companyToolUrl" validate:"required"`
}

type ProjectManagementService

type ProjectManagementService interface {
	UpdateJiraStatus(updateIssueBean *UpdateIssueBean, userId int32) (map[string][]string, error)
	SaveAccountDetails(jiraConfig *ConfigBean, userId int32) (*repository.JiraAccountDetails, error)
}

type ProjectManagementServiceImpl

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

func NewProjectManagementServiceImpl

func NewProjectManagementServiceImpl(logger *zap.SugaredLogger, jiraAccountService jira.AccountService,
	jiraAccountRepository repository.JiraAccountRepository, accountValidator jira.AccountValidator) *ProjectManagementServiceImpl

func (*ProjectManagementServiceImpl) SaveAccountDetails

func (impl *ProjectManagementServiceImpl) SaveAccountDetails(jiraConfig *ConfigBean, userId int32) (*repository.JiraAccountDetails, error)

func (*ProjectManagementServiceImpl) UpdateJiraStatus

func (impl *ProjectManagementServiceImpl) UpdateJiraStatus(UpdateIssueBean *UpdateIssueBean, userId int32) (map[string][]string, error)

type UpdateIssueBean

type UpdateIssueBean struct {
	PipelineId    int32    `json:"pipelineId" validate:"number,required"`
	PipelineStage string   `json:"pipelineStage" validate:"required"`
	Commits       []Commit `json:"commits" validate:"required" `
}

Jump to

Keyboard shortcuts

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