Documentation ¶
Index ¶
- type Manager
- func (_m *Manager) DangerousArtifacts(ctx context.Context, scannerUUID string, projectID int64, query *q.Query) ([]*model.DangerousArtifact, error)
- func (_m *Manager) DangerousCVEs(ctx context.Context, scannerUUID string, projectID int64, query *q.Query) ([]*scan.VulnerabilityRecord, error)
- func (_m *Manager) ListVuls(ctx context.Context, scannerUUID string, projectID int64, query *q.Query) ([]*model.VulnerabilityItem, error)
- func (_m *Manager) ScannedArtifactsCount(ctx context.Context, scannerUUID string, projectID int64, query *q.Query) (int64, error)
- func (_m *Manager) Summary(ctx context.Context, scannerUUID string, projectID int64, query *q.Query) (*model.Summary, error)
- func (_m *Manager) TotalArtifactsCount(ctx context.Context, projectID int64) (int64, error)
- func (_m *Manager) TotalVuls(ctx context.Context, scannerUUID string, projectID int64, tuneCount bool, ...) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶
NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Manager) DangerousArtifacts ¶
func (_m *Manager) DangerousArtifacts(ctx context.Context, scannerUUID string, projectID int64, query *q.Query) ([]*model.DangerousArtifact, error)
DangerousArtifacts provides a mock function with given fields: ctx, scannerUUID, projectID, query
func (*Manager) DangerousCVEs ¶
func (_m *Manager) DangerousCVEs(ctx context.Context, scannerUUID string, projectID int64, query *q.Query) ([]*scan.VulnerabilityRecord, error)
DangerousCVEs provides a mock function with given fields: ctx, scannerUUID, projectID, query
func (*Manager) ListVuls ¶
func (_m *Manager) ListVuls(ctx context.Context, scannerUUID string, projectID int64, query *q.Query) ([]*model.VulnerabilityItem, error)
ListVuls provides a mock function with given fields: ctx, scannerUUID, projectID, query
func (*Manager) ScannedArtifactsCount ¶
func (_m *Manager) ScannedArtifactsCount(ctx context.Context, scannerUUID string, projectID int64, query *q.Query) (int64, error)
ScannedArtifactsCount provides a mock function with given fields: ctx, scannerUUID, projectID, query
func (*Manager) Summary ¶
func (_m *Manager) Summary(ctx context.Context, scannerUUID string, projectID int64, query *q.Query) (*model.Summary, error)
Summary provides a mock function with given fields: ctx, scannerUUID, projectID, query
func (*Manager) TotalArtifactsCount ¶
TotalArtifactsCount provides a mock function with given fields: ctx, projectID