Documentation
¶
Overview ¶
Package packageurl builds package URLs from ecosystem-native package names.
Index ¶
- func Make(ecosystem, name, version string) *purl.PURL
- func MakeCacheStrings(ecosystem, name, version string) (packagePURL, versionPURL string)
- func MakeString(ecosystem, name, version string) string
- func PolicyPackageKey(packagePURL string) string
- func WithVersionString(packagePURL, version string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeCacheStrings ¶
MakeCacheStrings returns package and version PURLs suitable for artifact cache records. Swift registry identities keep their generic storage PURLs. Cache keys are independent of the configured upstream.
func MakeString ¶
MakeString constructs a package URL string. It returns an empty string when the package identity cannot be represented as a PURL.
func PolicyPackageKey ¶ added in v0.11.0
PolicyPackageKey maps a canonical versionless PURL to its policy key. Go policies match module names case-insensitively for compatibility.
func WithVersionString ¶
WithVersionString returns a package PURL with its version replaced. It returns an empty string when packagePURL is invalid.
Types ¶
This section is empty.