package purl
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module PurlSource
Source
type t = private {typ : string;namespace : string list;name : string;version : string option;qualifiers : (string * string) list;subpath : string list;
}The type of a package URL. The namespace, version, qualifiers, and subpath are optional. The scheme is always "pkg:".
of_string str decodes the string and either returns an error or a purl.
Source
val make :
string ->
?namespace:string ->
string ->
?version:string ->
?qualifiers:string ->
?subpath:string ->
unit ->
(t, string) resultmake typ ~namespace name ~version ~qualifiers ~subpath () returns either a purl or an error. An error is returned if a parameter does not conform to the purl specification, i.e. if the name is empty.