Documentation
¶
Overview ¶
Package idstr provides utilities for working with vulnerability identifier strings.
Index ¶
- func AdvisoryLink(id string) string
- func FindCVE(s string) string
- func FindGHSA(s string) string
- func FindID(s string) string
- func GoAdvisory(id string) string
- func IsAdvisory(u string) bool
- func IsAdvisoryFor(u, alias string) bool
- func IsAdvisoryForOneOf(u string, aliases []string) (string, bool)
- func IsAliasType(id string) bool
- func IsCVE(s string) bool
- func IsCVELink(u string) bool
- func IsGHSA(s string) bool
- func IsGHSAGlobalLink(u string) bool
- func IsGHSARepoLink(u string) bool
- func IsGoAdvisory(u string) bool
- func IsGoID(s string) bool
- func IsIdentifier(id string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdvisoryLink ¶
func GoAdvisory ¶
func IsAdvisory ¶
func IsAdvisoryFor ¶
func IsAliasType ¶
IsAliasType returns whether the given ID is a recognized alias type (currently, either a GHSA or CVE).
func IsGHSAGlobalLink ¶
func IsGHSARepoLink ¶
func IsGoAdvisory ¶
func IsIdentifier ¶
IsIdentifier returns whether the given ID is a recognized identifier (currently, either a GHSA, CVE, or Go ID).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.