package conex

  1. Overview
  2. Docs

A package lists all releases of a given package. There is one package resource for each package.

type t = private {
  1. created : Conex_utils.Uint.t;
  2. counter : Conex_utils.Uint.t;
  3. wraps : Conex_utils.Uint.t;
  4. name : name;
  5. releases : Conex_utils.S.t;
}

The record for a package: a header, and a set of release names.

pp is a pretty printer.

val t : ?counter:Conex_utils.Uint.t -> ?wraps:Conex_utils.Uint.t -> ?releases:Conex_utils.S.t -> Conex_utils.Uint.t -> name -> t

t ~counter ~wraps ~releases created name is a constructor.

val equal : t -> t -> bool

equal t t' is true if the names are equal and the set of releases.

val of_wire : Wire.t -> (t, string) Stdlib.result

of_wire w converts w to a package or error.

val wire : t -> Wire.t

wire t is the wire representation of t, as stored on disk.

val add : t -> name -> t

add t name adds name to t.releases.

val remove : t -> name -> t

remove t name removes name from t.releases.

val prep : t -> t * bool

prep t increments t.counter, the carry bit is returned as second component.

OCaml

Innovation. Community. Security.