PUrl

Package URL (purl) is a string that is used to identify and locate a software package. It follows the specification defined at https://github.com/package-url/purl-spec.

A purl is a URL string with seven components:

  • scheme: always 'pkg'

  • type: the package type such as maven, npm, nuget, etc.

  • namespace: the name prefix such as a Maven groupId or a GitHub user or organization

  • name: the name of the package

  • version: the version of the package

  • qualifiers: extra qualifying data for a package such as OS, architecture, etc.

  • subpath: extra subpath within a package, relative to the package root

Types

Link copied to clipboard
class Builder

Builder class for creating PUrl instances. Use this class to construct a PUrl object with the desired components.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val qualifiers: List<<Error class: unknown class><String, String>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String

Returns the string representation of this PUrl.

Link copied to clipboard
fun toUriString(): <Error class: unknown class>