Versions in this module Expand all Collapse all v0 v0.1.4 Aug 8, 2020 Changes in this version type SummaryRecord + Modified time.Time + Published time.Time v0.1.3 Apr 28, 2019 Changes in this version + const TimeLayout + func InitSchemaSQL(ctx context.Context, db *sql.DB) error + func ParseTime(s string) (time.Time, error) + func SchemaSQL() []string + type CustomDataDeleter struct + DB *sql.DB + FilterCVEs []string + Provider string + func (o CustomDataDeleter) Delete(ctx context.Context) error + type CustomDataExporter struct + DB *sql.DB + FilterCVEs []string + Provider string + func (o CustomDataExporter) CSV(ctx context.Context, w io.Writer, header bool) error + func (o CustomDataExporter) JSON(ctx context.Context, w io.Writer, indent string) error + type CustomDataImporter struct + DB *sql.DB + Owner string + Provider string + func (o CustomDataImporter) ImportFile(ctx context.Context, name string) error + func (o CustomDataImporter) ImportJSON(ctx context.Context, r io.Reader) error + type CustomDataRecord struct + BaseScore float64 + CVE string + JSON []byte + Modified time.Time + Owner string + Provider string + Published time.Time + Summary string + type DataExporter struct + DB *sql.DB + FilterCVEs []string + FilterProviders []string + func (exp DataExporter) CSV(ctx context.Context, w io.Writer, header bool) error + func (exp DataExporter) JSON(ctx context.Context, w io.Writer, indent string) error + type SnoozeCreator struct + Collector string + DB *sql.DB + Deadline time.Time + Metadata []byte + Owner string + Provider string + func (s SnoozeCreator) Create(ctx context.Context, cve ...string) error + type SnoozeDeleter struct + Collector string + DB *sql.DB + FilterCVEs []string + Provider string + func (s SnoozeDeleter) Delete(ctx context.Context) error + type SnoozeGetter struct + Collector string + DB *sql.DB + FilterCVEs []string + Provider string + func (s SnoozeGetter) CSV(ctx context.Context, w io.Writer, header bool) error + type SnoozeRecord struct + CVE string + Collector string + Deadline sqlutil.NullTime + Metadata []byte + Owner string + Provider string + type SummaryExporter struct + DB *sql.DB + func (exp SummaryExporter) CSV(ctx context.Context, w io.Writer, header bool) error + func (exp SummaryExporter) SummaryRecords(ctx context.Context) ([]SummaryRecord, error) + type SummaryRecord struct + CVEs int64 + DataType string + Provider string + Version string + type VendorDataExporter struct + DB *sql.DB + FilterCVEs []string + Provider string + func (v VendorDataExporter) CSV(ctx context.Context, w io.Writer, header bool) error + func (v VendorDataExporter) JSON(ctx context.Context, w io.Writer, indent string) error + type VendorDataImporter struct + DB *sql.DB + OnFile func(filename string) + Owner string + Provider string + func (v VendorDataImporter) ImportFiles(ctx context.Context, files ...string) (*VendorRecord, error) + type VendorDataRecord struct + BaseScore float64 + CVE string + JSON []byte + Modified time.Time + Published time.Time + Summary string + Version int64 + func VendorDataFromFile(vendor *VendorRecord, name string) ([]VendorDataRecord, error) + type VendorDataTrimmer struct + DB *sql.DB + DeleteLatestVersion bool + FilterProviders []string + func (v VendorDataTrimmer) Trim(ctx context.Context) error + type VendorRecord struct + Owner string + Provider string + Ready bool + TS time.Time + Version int64