Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
type DAO interface { // Create creates new report Create(ctx context.Context, r *model.Report) (int64, error) // DeleteMany delete the reports according to the query DeleteMany(ctx context.Context, query q.Query) (int64, error) // List lists the reports with given query parameters. List(ctx context.Context, query *q.Query) ([]*model.Report, error) // UpdateReportData only updates the `report` column with conditions matched. UpdateReportData(ctx context.Context, uuid string, report string) error // Update update report Update(ctx context.Context, r *model.Report, cols ...string) error // DeleteByExtraAttr delete the scan_report by mimeType and extra attribute DeleteByExtraAttr(ctx context.Context, mimeType, attrName, attrValue string) error }
DAO is the data access object interface for sbom report
Click to show internal directories.
Click to hide internal directories.