db

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountNvd

func CountNvd() (int, error)

CountNvd count nvd table

func Get

func Get(cveID string, priorityDB ...*gorm.DB) models.CveDetail

Get Select Cve information from DB.

func GetByCpeName

func GetByCpeName(cpeName string) (details []models.CveDetail)

GetByCpeName Select Cve information from DB.

func InsertJvn

func InsertJvn(items []jvn.Item) error

InsertJvn insert items fetched from JVN.

func InsertNvd

func InsertNvd(entries []nvd.Entry) error

InsertNvd inserts CveInformation into DB

func MigrateDB

func MigrateDB() error

MigrateDB migrates Database

func OpenDB

func OpenDB() (err error)

OpenDB opens Database

Types

This section is empty.

Jump to

Keyboard shortcuts

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