Documentation
¶
Overview ¶
File: connection.go
File: host_operations.go
File: vulnerability_operations.go
Index ¶
- func AddHost(db *gorm.DB, host models.Host) error
- func AddVulnerability(db *gorm.DB, entry models.CVEData) error
- func GetAllHosts(db *gorm.DB) ([]models.Host, error)
- func GetCVEID(db *gorm.DB, cve string) (uint, error)
- func GetConnectionError() error
- func GetDB() *gorm.DB
- func GetHost(db *gorm.DB, ip string) (models.Host, error)
- func GetVulnerability(db *gorm.DB, cveID string) (models.CVEItem, error)
- func IsConnected() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConnectionError ¶ added in v0.0.4
func GetConnectionError() error
GetConnectionError returns the last connection error
func GetVulnerability ¶
* GetVulnerability accepts a CVE ID and returns the corresponding CVEItem
func IsConnected ¶ added in v0.0.4
func IsConnected() bool
IsConnected returns whether the database is connected
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.