OpamSWHIDinclude OpamStd.ABSTRACT with type t := tval of_string : string -> tval to_string : t -> stringval to_json : t OpamJson.encoderval of_json : t OpamJson.decodermodule Set : OpamStd.SET with type elt = tmodule Map : OpamStd.MAP with type key = tval hash : t -> stringval is_valid : OpamUrl.t -> boolCheck url validity regarding its form: http backend and swhid path prefix swhid.opam.ocaml.org
Create an opam url from an swhid, in the form of https://swhid.opam.ocaml.org/swhi
val compute : OpamFilename.Dir.t -> string optionCompute and SWH identifier from the given directory