Documentation ¶
Index ¶
- type IRepository
- type Mock
- func (m *Mock) GetVulnByID(vulnerabilityID uuid.UUID) (*horusec.Vulnerability, error)
- func (m *Mock) ListVulnManagementData(repositoryID uuid.UUID, page, size int, vulnSeverity severity.Severity, ...) (vulnManagement dto.VulnManagement, err error)
- func (m *Mock) UpdateVulnType(vulnerabilityID uuid.UUID, updateTypeData *dto.UpdateVulnType) (*horusec.Vulnerability, error)
- type Repository
- func (r *Repository) GetVulnByID(vulnerabilityID uuid.UUID) (*horusec.Vulnerability, error)
- func (r *Repository) ListVulnManagementData(repositoryID uuid.UUID, page, size int, vulnSeverity severity.Severity, ...) (vulnManagement dto.VulnManagement, err error)
- func (r *Repository) UpdateVulnType(vulnerabilityID uuid.UUID, updateTypeData *dto.UpdateVulnType) (*horusec.Vulnerability, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRepository ¶
type IRepository interface { ListVulnManagementData(repositoryID uuid.UUID, page, size int, vulnSeverity severity.Severity, vulnType horusecEnums.VulnerabilityType, vulnHash string) (vulnManagement dto.VulnManagement, err error) UpdateVulnType(vulnerabilityID uuid.UUID, updateTypeData *dto.UpdateVulnType) (*horusec.Vulnerability, error) GetVulnByID(vulnerabilityID uuid.UUID) (*horusec.Vulnerability, error) }
func NewManagementRepository ¶
func NewManagementRepository(databaseRead SQL.InterfaceRead, databaseWrite SQL.InterfaceWrite) IRepository
type Mock ¶
func (*Mock) GetVulnByID ¶
func (*Mock) ListVulnManagementData ¶
func (m *Mock) ListVulnManagementData(repositoryID uuid.UUID, page, size int, vulnSeverity severity.Severity, vulnType horusecEnums.VulnerabilityType, vulnHash string) (vulnManagement dto.VulnManagement, err error)
func (*Mock) UpdateVulnType ¶
func (m *Mock) UpdateVulnType(vulnerabilityID uuid.UUID, updateTypeData *dto.UpdateVulnType) (*horusec.Vulnerability, error)
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func (*Repository) GetVulnByID ¶
func (r *Repository) GetVulnByID(vulnerabilityID uuid.UUID) (*horusec.Vulnerability, error)
func (*Repository) ListVulnManagementData ¶
func (r *Repository) ListVulnManagementData(repositoryID uuid.UUID, page, size int, vulnSeverity severity.Severity, vulnType horusecEnums.VulnerabilityType, vulnHash string) (vulnManagement dto.VulnManagement, err error)
func (*Repository) UpdateVulnType ¶
func (r *Repository) UpdateVulnType(vulnerabilityID uuid.UUID, updateTypeData *dto.UpdateVulnType) (*horusec.Vulnerability, error)
Click to show internal directories.
Click to hide internal directories.