Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader holds an instance of the database connection.
func (*Reader) GetID ¶
GetID fetches the metadata about the databases schema version and build time.
func (*Reader) GetVulnerability ¶
func (b *Reader) GetVulnerability(namespace, name string) ([]v3.Vulnerability, error)
GetVulnerability retrieves one or more vulnerabilities given a namespace and package name.
func (*Reader) GetVulnerabilityMetadata ¶
func (b *Reader) GetVulnerabilityMetadata(id, namespace string) (*v3.VulnerabilityMetadata, error)
GetVulnerabilityMetadata retrieves metadata for the given vulnerability ID relative to a specific record source.
Click to show internal directories.
Click to hide internal directories.