package irmin-pack

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

Install

Dune Dependency

Authors

Maintainers

Sources

irmin-2.7.1.tbz
sha256=fac7c032f472fb369378ad2d8fe77e7cd3b3c1c6a0d7bf59980b69528891b399
sha512=06db1c4e90d43bdfbea2d4f15037eef77207877c05019a6ce0f7f7771afe7d9200da019e3d845ff98ee86947f3e538e1521d818e6d6ddd97105fcaeb746fe418

doc/irmin-pack.layered/Irmin_pack_layered/Maker/Private/Slice/index.html

Module Private.Slice

Private slices.

Slices

type t = slice

The type for slices.

type contents = Contents.key * Contents.value

The type for exported contents.

type node = Node.key * Node.value

The type for exported nodes.

type commit = Commit.key * Commit.value

The type for exported commits.

type value = [
  1. | `Contents of contents
  2. | `Node of node
  3. | `Commit of commit
]

The type for exported values.

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.

Value Types

val t : t Irmin__.Type.t

t is the value type for t.

val contents_t : contents Irmin__.Type.t

content_t is the value type for contents.

val node_t : node Irmin__.Type.t

node_t is the value type for node.

val commit_t : commit Irmin__.Type.t

commit_t is the value type for commit.

val value_t : value Irmin__.Type.t

value_t is the value type for value.

OCaml

Innovation. Community. Security.