jon.recoil.org

Module OpamSWHIDSource

Sourcetype t
include OpamStd.ABSTRACT with type t := OpamSWHID.t
Sourceval compare : OpamSWHID.t -> OpamSWHID.t -> int
Sourceval equal : OpamSWHID.t -> OpamSWHID.t -> bool
Sourceval of_string : string -> OpamSWHID.t
Sourceval to_string : OpamSWHID.t -> string
Sourcemodule Set : OpamStd.SET with type elt = OpamSWHID.t
Sourcemodule Map : OpamStd.MAP with type key = OpamSWHID.t
Sourceval hash : OpamSWHID.t -> string
Sourceval is_valid : OpamUrl.t -> bool

Check url validity regarding its form: http backend and swhid path prefix swhid.opam.ocaml.org

Sourceval of_url : OpamUrl.t -> OpamSWHID.t option

Extract an swhid from an url

Create an opam url from an swhid, in the form of https://swhid.opam.ocaml.org/swhi

Sourceval compute : OpamFilename.Dir.t -> string option

Compute and SWH identifier from the given directory