knownvulns

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BulletinURL is the URL where Istio vulnerabilities are published.
	BulletinURL string = "https://istio.io/latest/news/security/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IstioCVEData

type IstioCVEData struct {
	AffectedVersions []VersionRange
	DisclosureID     string
	DisclosureURL    string
	DisclosureDate   string
	ImpactScore      string
	RelatedString    string
}

IstioCVEData represents a single CVE in Istio.

func GetVulnsForVersion

func GetVulnsForVersion(version string) ([]IstioCVEData, error)

GetVulnsForVersion returns an array of Istio CVEs matching a given version.

type VersionRange

type VersionRange struct {
	MinVersion uint64
	MaxVersion uint64
}

VersionRange represents the range of vulnerable versions. Versions are represented as integers using the following formula:

major * 100^2 + minor*100^1 + revision*100^0

func (*VersionRange) MatchesVersion

func (vr *VersionRange) MatchesVersion(version uint64) bool

MatchesVersion returns true if the given version is within the range.

Jump to

Keyboard shortcuts

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