package irmin-pack

  1. Overview
  2. Docs
Irmin backend which stores values in a pack file

Install

Dune Dependency

Authors

Maintainers

Sources

irmin-3.7.1.tbz
sha256=8d1a49318bda711ed44d9ea27ecd044b1d650390633d5b08f76590689c22056f
sha512=2995e6acc53dee2c59bf473c7c16c74daebfa193df552ec83ffe88fe598e26d4d8ff5da4f0cd575adaa49efa4b317d74f2c814c1b5601bed3833d76f377b6da7

doc/irmin-pack.unix/Irmin_pack_unix/Checks/Integrity_checks/argument-2-X/Slice/index.html

Module X.Slice

A slice abstraction.

Slices

type t

The type for slices.

val t : t Irmin.Type.t
type contents = Contents.hash * Contents.value

The type for exported contents.

val contents_t : contents Irmin.Type.t
type node = Node.hash * Node.value

The type for exported nodes.

val node_t : node Irmin.Type.t
type commit = Commit.hash * Commit.value

The type for exported commits.

val commit_t : commit Irmin.Type.t
type value = [
  1. | `Contents of contents
  2. | `Node of node
  3. | `Commit of commit
]

The type for exported values.

val value_t : value Irmin.Type.t
val empty : unit -> t Lwt.t

Create a new empty slice.

val add : t -> value -> unit Lwt.t

add t v adds v to t.

val iter : t -> (value -> unit Lwt.t) -> unit Lwt.t

iter t f calls f on all values of t.

OCaml

Innovation. Community. Security.