Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EcosystemForType ¶
EcosystemForType maps a PURL type to the VDB ecosystem name.
Types ¶
type PackageURL ¶
type PackageURL struct {
Type string
Namespace string
Name string
Version string
Qualifiers map[string]string
Subpath string
}
PackageURL represents a parsed Package URL (PURL) per the spec.
func Parse ¶
func Parse(raw string) (*PackageURL, error)
Parse parses a PURL string into a PackageURL struct.
func (*PackageURL) PackageName ¶
func (p *PackageURL) PackageName() string
PackageName returns the type-specific package name suitable for VDB API queries.
func (*PackageURL) String ¶
func (p *PackageURL) String() string
String returns the canonical PURL string representation.
Click to show internal directories.
Click to hide internal directories.