cve

package
v0.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CVE

type CVE struct {
	ID          string    `db:"id" json:"id"`
	PackageName string    `db:"package" json:"package_name"`
	Body        string    `db:"body" json:"raw"`
	Source      string    `db:"source" json:"source"`
	CreatedAt   time.Time `db:"created_at" json:"created_at"`
}

type FindFilter

type FindFilter struct {
	ID      string `db:"id"`
	Package string `db:"package"`
	Source  string `db:"source"`
}

type Repository

type Repository interface {
	Replace(ctx context.Context, cve []CVE) error
	Find(ctx context.Context, filter *FindFilter) ([]CVE, error)
}

func NewCVERepo

func NewCVERepo(db *sqlx.DB) Repository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL