purl

package
v0.13.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PURLToRef

func PURLToRef(purl string) (string, *ocispecs.Platform, error)

PURLToRef converts a package URL to an image reference and platform.

func RefToPURL

func RefToPURL(purlType string, ref string, platform *ocispecs.Platform) (string, error)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL