Documentation ¶
Index ¶
- func DownloadTestReports(taskInfo *task.Task, logger *zap.SugaredLogger) ([]*models.TestSuite, error)
- type Client
- type Service
- func (s *Service) CompleteGitCheckForWorkflowV4(workflowArgs *models.WorkflowV4, taskID int64, status config.Status, ...) error
- func (s *Service) CreateGitCheckForWorkflowV4(workflowArgs *models.WorkflowV4, taskID int64, log *zap.SugaredLogger) error
- func (s *Service) SendErrWebhookComment(mainRepo *models.MainHookRepo, workflow *models.Workflow, err error, prID int, ...) (*models.Notification, error)
- func (s *Service) SendInitWebhookComment(mainRepo *models.MainHookRepo, prID int, baseURI string, ...) (*models.Notification, error)
- func (s *Service) UpdateEnvAndTaskWebhookComment(workflowArgs *models.WorkflowTaskArgs, prTaskInfo *models.PrTaskInfo, ...) (err error)
- func (s *Service) UpdateGitCheckForWorkflowV4(workflowArgs *models.WorkflowV4, taskID int64, log *zap.SugaredLogger) error
- func (s *Service) UpdatePipelineWebhookComment(task *task.Task, logger *zap.SugaredLogger) (err error)
- func (s *Service) UpdateWebhookComment(task *task.Task, logger *zap.SugaredLogger) (err error)
- func (s *Service) UpdateWebhookCommentForScanning(task *task.Task, logger *zap.SugaredLogger) (err error)
- func (s *Service) UpdateWebhookCommentForTest(task *task.Task, logger *zap.SugaredLogger) (err error)
- func (s *Service) UpdateWebhookCommentForWorkflowV4(task *models.WorkflowTask, logger *zap.SugaredLogger) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadTestReports ¶
Types ¶
type Service ¶
type Service struct { Client *Client Coll *mongodb.NotificationColl DiffNoteColl *mongodb.DiffNoteColl }
func NewService ¶
func NewService() *Service
func (*Service) CompleteGitCheckForWorkflowV4 ¶
func (s *Service) CompleteGitCheckForWorkflowV4(workflowArgs *models.WorkflowV4, taskID int64, status config.Status, log *zap.SugaredLogger) error
func (*Service) CreateGitCheckForWorkflowV4 ¶
func (s *Service) CreateGitCheckForWorkflowV4(workflowArgs *models.WorkflowV4, taskID int64, log *zap.SugaredLogger) error
func (*Service) SendErrWebhookComment ¶
func (s *Service) SendErrWebhookComment( mainRepo *models.MainHookRepo, workflow *models.Workflow, err error, prID int, baseURI string, isPipeline, isTest bool, logger *zap.SugaredLogger, ) (*models.Notification, error)
func (*Service) SendInitWebhookComment ¶
func (s *Service) SendInitWebhookComment( mainRepo *models.MainHookRepo, prID int, baseURI string, isPipeline, isTest, isScanning, isWorkflowV4 bool, logger *zap.SugaredLogger, ) (*models.Notification, error)
func (*Service) UpdateEnvAndTaskWebhookComment ¶
func (s *Service) UpdateEnvAndTaskWebhookComment(workflowArgs *models.WorkflowTaskArgs, prTaskInfo *models.PrTaskInfo, logger *zap.SugaredLogger) (err error)
func (*Service) UpdateGitCheckForWorkflowV4 ¶
func (s *Service) UpdateGitCheckForWorkflowV4(workflowArgs *models.WorkflowV4, taskID int64, log *zap.SugaredLogger) error
func (*Service) UpdatePipelineWebhookComment ¶
func (*Service) UpdateWebhookComment ¶
updateWebhookComment update the comment to codehost when task status changes
func (*Service) UpdateWebhookCommentForScanning ¶
func (*Service) UpdateWebhookCommentForTest ¶
func (s *Service) UpdateWebhookCommentForTest(task *task.Task, logger *zap.SugaredLogger) (err error)
UpdateWebhookCommentForTest update the test comment to codehost when task status changes
func (*Service) UpdateWebhookCommentForWorkflowV4 ¶
func (s *Service) UpdateWebhookCommentForWorkflowV4(task *models.WorkflowTask, logger *zap.SugaredLogger) (err error)
Click to show internal directories.
Click to hide internal directories.