Documentation ¶
Overview ¶
nolint
Index ¶
- type IAnalysisRepository
- type Mock
- func (m *Mock) Create(analysis *horusec.Analysis, tx SQL.InterfaceWrite) error
- func (m *Mock) GetByID(analysisID uuid.UUID) (*horusec.Analysis, error)
- func (m *Mock) GetDetailsCount(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (count int, err error)
- func (m *Mock) GetDetailsPaginated(companyID, repositoryID uuid.UUID, page, size int, ...) (vulnDetails []dashboard.VulnDetails, err error)
- func (m *Mock) GetDeveloperCount(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (count int, err error)
- func (m *Mock) GetRepositoryCount(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (count int, err error)
- func (m *Mock) GetVulnByDeveloper(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnByDeveloper []dashboard.VulnByDeveloper, err error)
- func (m *Mock) GetVulnByLanguage(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnByLanguage []dashboard.VulnByLanguage, err error)
- func (m *Mock) GetVulnByRepository(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnByRepository []dashboard.VulnByRepository, err error)
- func (m *Mock) GetVulnBySeverity(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnBySeverity []dashboard.VulnBySeverity, err error)
- func (m *Mock) GetVulnByTime(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnByTime []dashboard.VulnByTime, err error)
- type Repository
- func (ar *Repository) Create(analysis *horusec.Analysis, tx SQL.InterfaceWrite) error
- func (ar *Repository) GetByID(analysisID uuid.UUID) (*horusec.Analysis, error)
- func (ar *Repository) GetDetailsCount(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (count int, err error)
- func (ar *Repository) GetDetailsPaginated(companyID, repositoryID uuid.UUID, page, size int, ...) (vulnDetails []dashboard.VulnDetails, err error)
- func (ar *Repository) GetDeveloperCount(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (count int, err error)
- func (ar *Repository) GetRepositoryCount(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (count int, err error)
- func (ar *Repository) GetVulnByDeveloper(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnByDeveloper []dashboard.VulnByDeveloper, err error)
- func (ar *Repository) GetVulnByLanguage(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnByLanguage []dashboard.VulnByLanguage, err error)
- func (ar *Repository) GetVulnByRepository(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnByRepository []dashboard.VulnByRepository, err error)
- func (ar *Repository) GetVulnBySeverity(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnBySeverity []dashboard.VulnBySeverity, err error)
- func (ar *Repository) GetVulnByTime(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnByTime []dashboard.VulnByTime, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IAnalysisRepository ¶
type IAnalysisRepository interface { Create(analysis *horusec.Analysis, tx SQL.InterfaceWrite) error GetByID(analysisID uuid.UUID) (*horusec.Analysis, error) GetDetailsPaginated(companyID, repositoryID uuid.UUID, page, size int, initialDate, finalDate time.Time) (vulnDetails []dashboard.VulnDetails, err error) GetDetailsCount(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (count int, err error) GetDeveloperCount(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (count int, err error) GetRepositoryCount(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (count int, err error) GetVulnBySeverity(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnBySeverity []dashboard.VulnBySeverity, err error) GetVulnByDeveloper(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnByDeveloper []dashboard.VulnByDeveloper, err error) GetVulnByLanguage(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnByLanguage []dashboard.VulnByLanguage, err error) GetVulnByRepository(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnByRepository []dashboard.VulnByRepository, err error) GetVulnByTime(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnByTime []dashboard.VulnByTime, err error) }
func NewAnalysisRepository ¶
func NewAnalysisRepository(databaseRead SQL.InterfaceRead, databaseWrite SQL.InterfaceWrite) IAnalysisRepository
type Mock ¶
func (*Mock) GetDetailsCount ¶
func (*Mock) GetDetailsPaginated ¶
func (*Mock) GetDeveloperCount ¶
func (*Mock) GetRepositoryCount ¶
func (*Mock) GetVulnByDeveloper ¶
func (*Mock) GetVulnByLanguage ¶
func (*Mock) GetVulnByRepository ¶
func (*Mock) GetVulnBySeverity ¶
func (*Mock) GetVulnByTime ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func (*Repository) Create ¶
func (ar *Repository) Create(analysis *horusec.Analysis, tx SQL.InterfaceWrite) error
func (*Repository) GetDetailsCount ¶
func (*Repository) GetDetailsPaginated ¶
func (ar *Repository) GetDetailsPaginated(companyID, repositoryID uuid.UUID, page, size int, initialDate, finalDate time.Time) (vulnDetails []dashboard.VulnDetails, err error)
func (*Repository) GetDeveloperCount ¶
func (*Repository) GetRepositoryCount ¶
func (*Repository) GetVulnByDeveloper ¶
func (ar *Repository) GetVulnByDeveloper(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnByDeveloper []dashboard.VulnByDeveloper, err error)
func (*Repository) GetVulnByLanguage ¶
func (ar *Repository) GetVulnByLanguage(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnByLanguage []dashboard.VulnByLanguage, err error)
func (*Repository) GetVulnByRepository ¶
func (ar *Repository) GetVulnByRepository(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnByRepository []dashboard.VulnByRepository, err error)
func (*Repository) GetVulnBySeverity ¶
func (ar *Repository) GetVulnBySeverity(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnBySeverity []dashboard.VulnBySeverity, err error)
func (*Repository) GetVulnByTime ¶
func (ar *Repository) GetVulnByTime(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (vulnByTime []dashboard.VulnByTime, err error)
Click to show internal directories.
Click to hide internal directories.