Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecurityHubDao ¶
type SecurityHubDao interface { // Summary returns the summary of the scan cve reports. Summary(ctx context.Context, scannerUUID string, projectID int64, query *q.Query) (*model.Summary, error) // DangerousCVEs get the top 5 most dangerous CVEs, return top 5 result DangerousCVEs(ctx context.Context, scannerUUID string, projectID int64, query *q.Query) ([]*scan.VulnerabilityRecord, error) // DangerousArtifacts returns top 5 dangerous artifact for the given scanner. return top 5 result DangerousArtifacts(ctx context.Context, scannerUUID string, projectID int64, query *q.Query) ([]*model.DangerousArtifact, error) // TotalArtifactsCount return the count of total artifacts. TotalArtifactsCount(ctx context.Context, projectID int64) (int64, error) // ScannedArtifactsCount return the count of scanned artifacts. ScannedArtifactsCount(ctx context.Context, scannerUUID string, projectID int64, query *q.Query) (int64, error) // ListVulnerabilities search vulnerability record by cveID ListVulnerabilities(ctx context.Context, registrationUUID string, projectID int64, query *q.Query) ([]*model.VulnerabilityItem, error) // CountVulnerabilities count the total vulnerabilities CountVulnerabilities(ctx context.Context, registrationUUID string, projectID int64, tuneCount bool, query *q.Query) (int64, error) }
SecurityHubDao defines the interface to access security hub data.
Click to show internal directories.
Click to hide internal directories.