Documentation ¶
Index ¶
- type Closer
- type MatchExclusionProvider
- type VulnerabilityMetadataProvider
- type VulnerabilityProvider
- func (pr *VulnerabilityProvider) Get(id, namespace string) ([]vulnerability.Vulnerability, error)
- func (pr *VulnerabilityProvider) GetByCPE(requestCPE cpe.CPE) ([]vulnerability.Vulnerability, error)
- func (pr *VulnerabilityProvider) GetByDistro(d *distro.Distro, p pkg.Package) ([]vulnerability.Vulnerability, error)
- func (pr *VulnerabilityProvider) GetByLanguage(l syftPkg.Language, p pkg.Package) ([]vulnerability.Vulnerability, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Closer ¶ added in v0.43.0
Closer lets receiver close the db connection and free any allocated db resources. It's especially useful if vulnerability DB loaded repeatedly during some periodic SBOM scanning process.
type MatchExclusionProvider ¶ added in v0.41.0
type MatchExclusionProvider struct {
// contains filtered or unexported fields
}
func NewMatchExclusionProvider ¶ added in v0.41.0
func NewMatchExclusionProvider(reader grypeDB.VulnerabilityMatchExclusionStoreReader) *MatchExclusionProvider
func (*MatchExclusionProvider) GetRules ¶ added in v0.41.0
func (pr *MatchExclusionProvider) GetRules(vulnerabilityID string) ([]match.IgnoreRule, error)
type VulnerabilityMetadataProvider ¶ added in v0.32.0
type VulnerabilityMetadataProvider struct {
// contains filtered or unexported fields
}
func NewVulnerabilityMetadataProvider ¶ added in v0.32.0
func NewVulnerabilityMetadataProvider(reader grypeDB.VulnerabilityMetadataStoreReader) *VulnerabilityMetadataProvider
func (*VulnerabilityMetadataProvider) GetMetadata ¶ added in v0.32.0
func (pr *VulnerabilityMetadataProvider) GetMetadata(id, namespace string) (*vulnerability.Metadata, error)
type VulnerabilityProvider ¶ added in v0.32.0
type VulnerabilityProvider struct {
// contains filtered or unexported fields
}
func NewVulnerabilityProvider ¶ added in v0.32.0
func NewVulnerabilityProvider(reader grypeDB.VulnerabilityStoreReader) (*VulnerabilityProvider, error)
func (*VulnerabilityProvider) Get ¶ added in v0.54.0
func (pr *VulnerabilityProvider) Get(id, namespace string) ([]vulnerability.Vulnerability, error)
func (*VulnerabilityProvider) GetByCPE ¶ added in v0.32.0
func (pr *VulnerabilityProvider) GetByCPE(requestCPE cpe.CPE) ([]vulnerability.Vulnerability, error)
func (*VulnerabilityProvider) GetByDistro ¶ added in v0.32.0
func (pr *VulnerabilityProvider) GetByDistro(d *distro.Distro, p pkg.Package) ([]vulnerability.Vulnerability, error)
func (*VulnerabilityProvider) GetByLanguage ¶ added in v0.32.0
func (pr *VulnerabilityProvider) GetByLanguage(l syftPkg.Language, p pkg.Package) ([]vulnerability.Vulnerability, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.