conex
Conex_resource.Target
conex.openssl
conex.unix
type t = {
filename : Conex_utils.path;
digest : Digest.t list;
size : Conex_utils.Uint.t;
}
val equal : t -> t -> bool
equal a b is true if targets a and b are identical.
equal a b
true
a
b
val valid_opam_path : t -> bool
valid_path t is true if the filename sticks to opam repository rules: foo/foo.version/opam of foo.version/opam.
valid_path t
foo/foo.version/opam
foo.version/opam
val pp : t Conex_utils.fmt
pp is a pretty printer for a target.
pp
val of_wire : Wire.s -> (t, string) result
of_wire w converts w to a target or error.
of_wire w
w
val wire_raw : t -> Wire.s
wire_raw t is the raw wire representation of t.
wire_raw t
t