package irmin-test

  1. Overview
  2. Docs

Module Node.PortableSource

Sourcetype t
Sourceval metadata_t : metadata Irmin.Type.t
Sourcetype contents_key = hash
Sourceval contents_key_t : contents_key Irmin.Type.t
Sourcetype node_key = hash
Sourceval node_key_t : node_key Irmin.Type.t
Sourcetype value = [
  1. | `Contents of contents_key * metadata
  2. | `Node of node_key
]
Sourceval of_list : (step * value) list -> t
Sourceval list : ?offset:int -> ?length:int -> ?cache:bool -> t -> (step * value) list
Sourceval of_seq : (unit -> (step * value) Seq.node) -> t
Sourceval seq : ?offset:int -> ?length:int -> ?cache:bool -> t -> unit -> (step * value) Seq.node
Sourceval empty : unit -> t
Sourceval is_empty : t -> bool
Sourceval length : t -> int
Sourceval hash_exn : ?force:bool -> t -> hash
Sourceval clear : t -> unit
Sourceval find : ?cache:bool -> t -> step -> value option
Sourceval add : t -> step -> value -> t
Sourceval remove : t -> step -> t
Sourcemodule Metadata : sig ... end
Sourceval with_handler : ((expected_depth:int -> node_key -> t option) -> expected_depth:int -> node_key -> t option) -> t -> t
Sourceval head : t -> [ `Inode of int * (int * hash) list | `Node of (step * value) list ]
Sourceval of_node : t -> t
Sourceval merge : contents:contents_key option Irmin.Merge.t -> node:node_key option Irmin.Merge.t -> t Irmin.Merge.t
Sourcetype proof = [
  1. | `Blinded of hash
  2. | `Inode of int * (int * proof) list
  3. | `Values of (step * value) list
]
Sourceval to_proof : t -> proof
Sourceval of_proof : depth:int -> proof -> t option
OCaml

Innovation. Community. Security.