package irmin-pack

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

Install

Dune Dependency

Authors

Maintainers

Sources

irmin-3.4.0.tbz
sha256=9e72efdc13324602d8da46e0492b1f4e09ad524149845e1a9106882f60ad6e1f
sha512=ae9cb4b086c7b93962aafc2ea339ac85c6d66bdf769f70a16f62fa5c74d9b194e12ac00b510be5ffac5adff3aa20fd69c4ca4067dcc966767fefcf5c02bc9969

doc/irmin-pack.unix/Irmin_pack_unix/Checks/Make/argument-1-_/Backend/Slice/index.html

Module Backend.Slice

A slice abstraction.

Slices

type t = slice

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.