Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CheckEcosystems = []string{
"npm",
"PyPI",
"Go",
"crates.io",
"RubyGems",
"Maven",
}
CheckEcosystems lists ecosystems queried for bare package names (no -e / no prefix).
Functions ¶
func HasExplicitEcosystem ¶
HasExplicitEcosystem reports whether the input already pins a single ecosystem.
func IsAdvisoryID ¶
IsAdvisoryID reports whether input is an OSV advisory identifier rather than a package ref.
func IsKnownEcosystem ¶
IsKnownEcosystem reports whether eco names a supported ecosystem, accepting common synonyms (e.g. "golang" -> Go, "pypi" -> PyPI, "cargo" -> crates.io).
Types ¶
type PackageRef ¶
func Parse ¶
func Parse(input, defaultEcosystem string) (PackageRef, error)
func (PackageRef) OSVPackage ¶
func (r PackageRef) OSVPackage() map[string]string
func (PackageRef) String ¶
func (r PackageRef) String() string
Click to show internal directories.
Click to hide internal directories.