package
0.0.0-20240409024651-c4af43db5027
Repository: https://github.com/ossf/package-analysis.git
Documentation: pkg.go.dev
# Functions
EcosystemsAsStrings converts a slice of Ecosystems to a string slice.
Parse returns an Ecosystem corresponding to the given string name, or the None ecosystem along with an error if there is no matching Ecosystem.
ParsePurlType converts from a Package URL type, defined at https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst to an Ecosystem object.
Unsupported returns a new ErrUnsupported that adds the unsupported ecosystem name to the error message.
# Variables
ErrUnsupported is returned by Ecosystem.UnmarshalText when bytes that do not correspond to a defined ecosystem constant is passed in as a parameter.
SupportedEcosystems is a list of all the ecosystems supported.
SupportedEcosystemsStrings is the list of supported ecosystems represented as strings.
# Type aliases
Ecosystem represents an open source package ecosystem from which packages can be downloaded.