Documentation ¶
Index ¶
Constants ¶
View Source
const ( Version3 = "3" Version5 = "5" )
Variables ¶
View Source
var ( ListingJson = "listing.json" VulnerabilityDbStore = "vulnerability" ListingPath = path.Join(VulnerabilityDbStore, ListingJson) TOAE_THREAT_INTEL_URL = "https://threat-intel.toae.io/vulnerability-db/listing.json" )
Functions ¶
func DownloadDatabase ¶
func DownloadDatabase()
func UpdateListing ¶
Types ¶
type DBUploadRequest ¶
type VulnerabilityDBListing ¶
func LoadListing ¶
func LoadListing(d []byte) (*VulnerabilityDBListing, error)
func NewVulnerabilityDBListing ¶
func NewVulnerabilityDBListing() *VulnerabilityDBListing
func (*VulnerabilityDBListing) Append ¶
func (v *VulnerabilityDBListing) Append(db Database, version string)
func (*VulnerabilityDBListing) Bytes ¶
func (v *VulnerabilityDBListing) Bytes() ([]byte, error)
func (*VulnerabilityDBListing) Latest ¶
func (v *VulnerabilityDBListing) Latest(version string) *Database
func (*VulnerabilityDBListing) Sort ¶
func (v *VulnerabilityDBListing) Sort(version string)
Click to show internal directories.
Click to hide internal directories.