Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DBCheck ¶
func DBCheck()
Check if database file and metadata is exist from the local path, * when files are existing, it will check the latest version from the global metadata and it will compare from the local version to determine if needed to update.
func Fetch ¶
func Fetch(packages *[]model.Package, vulnerabilities *[]model.Vulnerability) error
Fetch all vulnerabilities in database based on the list of keywords from packages
func Filter ¶
func Filter(vulnerabilities *[]model.Vulnerability, ignore *config.Vulnerability)
Check and locate and remove all of elements that matches the values based ignore policy in configuration
Types ¶
type Metadata ¶
type Metadata struct { Build int64 `json:"build,omitempty"` Schema string `json:"schema,omitempty"` URL string `json:"url,omitempty"` Checksum string `json:"checksum,omitempty"` }
func GetLocalMetadata ¶
func GetLocalMetadata() Metadata
Get local metadata to be use on file integrity checking and version checking from the global metadata.
Click to show internal directories.
Click to hide internal directories.