package irmin-pack

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

Install

Dune Dependency

Authors

Maintainers

Sources

irmin-3.5.2.tbz
sha256=2a1e6a7577e498fbfeb678d666da210dc48d1344637e8ecb653e1dd88c640b5f
sha512=3fb6f49a1af2f8bab1df5b6f5affaaa09f09fe892a08eb2d9de58138e56646d4a6797f3c087b22875e36e3411218ab2435fe5437ac78f323dd661932af021fad

doc/irmin-pack.unix/Irmin_pack_unix/KV/Make/Integrity_checks/index.html

Module Make.Integrity_checksSource

Sourceval check_always : ?ppf:Format.formatter -> auto_repair:bool -> check: (kind:[> `Commit | `Contents | `Node ] -> offset:Optint.Int63.t -> length:int -> Index.key -> (unit, [< `Absent_value | `Wrong_hash ]) result) -> Index.t -> ([> `Fixed of int | `No_error ], [> `Cannot_fix of string | `Corrupted of int ]) result
Sourceval check_minimal : ?ppf:Format.formatter -> pred: (X.Node.value -> (X.Node.Path.step option * [< `Contents of XKey.t | `Inode of XKey.t | `Node of XKey.t ]) list) -> iter: (contents:(XKey.hash Pack_key.t -> unit Lwt.t) -> node:(XKey.t -> unit Lwt.t) -> pred_node: (X.Repo.t -> XKey.t -> [> `Contents of XKey.t | `Node of XKey.t ] list Lwt.t) -> pred_commit:(X.Repo.t -> XKey.t -> [> `Node of XKey.t ] list Lwt.t) -> X.Repo.t -> unit Lwt.t) -> check: (offset:Optint.Int63.t -> length:int -> XKey.hash -> (unit, [< `Absent_value | `Wrong_hash ]) result) -> recompute_hash:(X.Node.value -> XKey.hash) -> X.Repo.t -> ([> `No_error ], [> `Cannot_fix of string ]) result Lwt.t
Sourceval check_inodes : iter: (pred_node: (X.Repo.t -> XKey.t -> ([> `Contents of XKey.t | `Node of XKey.t ] as 'b) list Lwt.t) -> node:(XKey.t -> unit Lwt.t) -> commit:(XKey.t -> unit Lwt.t) -> X.Repo.t -> unit Lwt.t) -> pred:(X.Repo.t -> XKey.t -> 'b list Lwt.t) -> check:(XKey.t -> (unit, string) result Lwt.t) -> X.Repo.t -> ([> `No_error ], [> `Cannot_fix of string ]) result Lwt.t
OCaml

Innovation. Community. Security.