Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Mgr is the global security manager Mgr = NewManager() )
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { // Summary returns the summary of the scan cve reports. Summary(ctx context.Context, scannerUUID string, projectID int64, query *q.Query) (*model.Summary, error) // DangerousArtifacts returns the most dangerous artifact for the given scanner. DangerousArtifacts(ctx context.Context, scannerUUID string, projectID int64, query *q.Query) ([]*model.DangerousArtifact, error) // TotalArtifactsCount return the count of 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) // DangerousCVEs returns the most dangerous CVEs for the given scanner. DangerousCVEs(ctx context.Context, scannerUUID string, projectID int64, query *q.Query) ([]*scan.VulnerabilityRecord, error) // TotalVuls return the count of vulnerabilities TotalVuls(ctx context.Context, scannerUUID string, projectID int64, tuneCount bool, query *q.Query) (int64, error) // ListVuls returns vulnerabilities list ListVuls(ctx context.Context, scannerUUID string, projectID int64, query *q.Query) ([]*model.VulnerabilityItem, error) }
Manager is used to manage the security manager.
Click to show internal directories.
Click to hide internal directories.