package opam-core

  1. Overview
  2. Docs

doc/opam-core/OpamSWHID/index.html

Module OpamSWHIDSource

Sourcetype t
include OpamStd.ABSTRACT with type t := t
Sourceval compare : t -> t -> int
Sourceval equal : t -> t -> bool
Sourceval of_string : string -> t
Sourceval to_string : t -> string
Sourcemodule Set : OpamStd.SET with type elt = t
Sourcemodule Map : OpamStd.MAP with type key = t
Sourceval hash : 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 -> t option

Extract an swhid from an url

Sourceval to_url : t -> OpamUrl.t

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

OCaml

Innovation. Community. Security.