vulnerability

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

type Mock struct {
	mock.Mock
}

func (*Mock) GetVulnByID

func (m *Mock) GetVulnByID(vulnerabilityID uuid.UUID) (*horusec.Vulnerability, error)

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)

Jump to

Keyboard shortcuts

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