clair: github.com/coreos/clair/database/pgsql/vulnerability Index | Files

package vulnerability

import "github.com/coreos/clair/database/pgsql/vulnerability"

Index

Package Files

vulnerability.go vulnerability_affected_feature.go vulnerability_affected_namespaced_feature.go

func CacheAffectedNamespacedFeatures Uses

func CacheAffectedNamespacedFeatures(tx *sql.Tx, features []database.NamespacedFeature) error

func CacheVulnerabiltyAffectedNamespacedFeature Uses

func CacheVulnerabiltyAffectedNamespacedFeature(tx *sql.Tx, affected map[int64]affectedFeatureRows) error

cacheVulnerabiltyAffectedNamespacedFeature takes in a map of vulnerability ID to affected feature rows and caches them.

func DeleteVulnerabilities Uses

func DeleteVulnerabilities(tx *sql.Tx, vulnerabilities []database.VulnerabilityID) error

func FindAffectedNamespacedFeatures Uses

func FindAffectedNamespacedFeatures(tx *sql.Tx, features []database.NamespacedFeature) ([]database.NullableAffectedNamespacedFeature, error)

FindAffectedNamespacedFeatures retrieves vulnerabilities associated with the feature.

func FindLatestDeletedVulnerabilityIDs Uses

func FindLatestDeletedVulnerabilityIDs(tx *sql.Tx, vulnIDs []database.VulnerabilityID) ([]sql.NullInt64, error)

findLatestDeletedVulnerabilityIDs requires all elements in vulnIDs are in database and the order of output array is not guaranteed.

func FindNotDeletedVulnerabilityIDs Uses

func FindNotDeletedVulnerabilityIDs(tx *sql.Tx, vulnIDs []database.VulnerabilityID) ([]sql.NullInt64, error)

func FindPagedVulnerableAncestries Uses

func FindPagedVulnerableAncestries(tx *sql.Tx, vulnID int64, limit int, currentToken pagination.Token, key pagination.Key) (database.PagedVulnerableAncestries, error)

func FindVulnerabilities Uses

func FindVulnerabilities(tx *sql.Tx, vulnerabilities []database.VulnerabilityID) ([]database.NullableVulnerability, error)

func FindVulnerabilityIDs Uses

func FindVulnerabilityIDs(tx *sql.Tx, vulnIDs []database.VulnerabilityID, withLatestDeleted bool) ([]sql.NullInt64, error)

func InsertVulnerabilities Uses

func InsertVulnerabilities(tx *sql.Tx, vulnerabilities []database.VulnerabilityWithAffected) error

func InsertVulnerabilityAffected Uses

func InsertVulnerabilityAffected(tx *sql.Tx, vulnerabilityIDs []int64, vulnerabilities []database.VulnerabilityWithAffected) (map[int64]affectedFeatureRows, error)

insertVulnerabilityAffected inserts a set of vulnerability affected features for each vulnerability provided.

i_th vulnerabilityIDs corresponds to i_th vulnerabilities provided.

func InvalidateVulnerabilityCache Uses

func InvalidateVulnerabilityCache(tx *sql.Tx, vulnerabilityIDs []int64) error

func LockFeatureVulnerabilityCache Uses

func LockFeatureVulnerabilityCache(tx *sql.Tx) error

func MarkVulnerabilitiesAsDeleted Uses

func MarkVulnerabilitiesAsDeleted(tx *sql.Tx, vulnerabilities []database.VulnerabilityID) ([]int64, error)

func SearchAffectingVulnerabilities Uses

func SearchAffectingVulnerabilities(tx *sql.Tx, features []database.NamespacedFeature) ([]vulnerabilityCache, error)

Package vulnerability imports 13 packages (graph) and is imported by 4 packages. Updated 2019-03-27. Refresh now. Tools for package owners.