app

package
v0.0.0-...-6a546ba Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefectService

func NewDefectService(
	r repository.DefectRepository,
	t producttree.ProductTree,
	b bulletin.Bulletin,
	be backend.CveBackend,
	o obs.OBS,
) *defectService

Types

type CmdToSaveDefect

type CmdToSaveDefect = domain.Defect

type CollectDefectsDTO

type CollectDefectsDTO struct {
	Title     string `json:"title"`
	Number    string `json:"issue_id"`
	IssueUrl  string `json:"issue_url"`
	Component string `json:"component"`
	Status    string `json:"status"`
	Score     string `json:"score"`
	Version   string `json:"version"`
}

func ToCollectDefectsDTO

func ToCollectDefectsDTO(defects domain.Defects) []CollectDefectsDTO

type DefectService

type DefectService interface {
	IsDefectExist(*domain.Issue) (bool, error)
	SaveDefects(CmdToSaveDefect) error
	CollectDefects(time time.Time) ([]CollectDefectsDTO, error)
	GenerateBulletins([]string) error
}

Jump to

Keyboard shortcuts

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