package opam-core

  1. Overview
  2. Docs
type t
include OpamStd.ABSTRACT with type t := t
val compare : t -> t -> int
val equal : t -> t -> bool
val of_string : string -> t
val to_string : t -> string
val to_json : t OpamJson.encoder
val of_json : t OpamJson.decoder
module Set : OpamStd.SET with type elt = t
module Map : OpamStd.MAP with type key = t
val hash : t -> string
val is_valid : OpamUrl.t -> bool

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

val of_url : OpamUrl.t -> t option

Extract an swhid from an url

val to_url : t -> OpamUrl.t

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

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

Compute and SWH identifier from the given directory

OCaml

Innovation. Community. Security.