package purl
import "github.com/moby/buildkit/util/purl"
Index ¶
- func PURLToRef(purl string) (string, *ocispecs.Platform, error)
- func RefToPURL(purlType string, ref string, platform *ocispecs.Platform) (string, error)
Functions ¶
func PURLToRef ¶
PURLToRef converts a package URL to an image reference and platform.
func RefToPURL ¶
RefToPURL converts an image reference with optional platform constraint to a package URL. Image references are defined in https://github.com/distribution/distribution/blob/v2.8.1/reference/reference.go#L1 Package URLs are defined in https://github.com/package-url/purl-spec
Source Files ¶
- Version
- v0.12.5
- Published
- Jan 31, 2024
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 15 seconds ago –
Tools for package owners.