Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Ctl = NewController()
Ctl is the global controller for security hub
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { // SecuritySummary returns the security summary of the specified project. SecuritySummary(ctx context.Context, projectID int64, options ...Option) (*secHubModel.Summary, error) // ListVuls list vulnerabilities by query ListVuls(ctx context.Context, scannerUUID string, projectID int64, withTag bool, query *q.Query) ([]*secHubModel.VulnerabilityItem, error) // CountVuls get all vulnerability count by query CountVuls(ctx context.Context, scannerUUID string, projectID int64, tuneCount bool, query *q.Query) (int64, error) }
Controller controller of security hub
type Option ¶
type Option func(*Options)
Option define the func to build options
func WithArtifact ¶
WithArtifact enable artifact info in summary
Click to show internal directories.
Click to hide internal directories.