ghsa

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advisory

type Advisory struct {
	// contains filtered or unexported fields
}

Advisory implements VulnSrc

func NewAdvisory

func NewAdvisory(ecosystem ghsa.Ecosystem, comparer comparer.Comparer) *Advisory

NewAdvisory is the factory method to return advisory

func (*Advisory) DetectVulnerabilities

func (s *Advisory) DetectVulnerabilities(pkgName, pkgVer string) ([]types.DetectedVulnerability, error)

DetectVulnerabilities scans package for vulnerabilities

type VulnSrc

type VulnSrc interface {
	Get(pkgName string) ([]ghsa.Advisory, error)
}

VulnSrc defines the operations on vulnerability source

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL