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.2.tbz
sha256=6aa5ba4c6a0233747d4bd3ab396f2b3a33bb80f9d8ed4a178c83a035033c0e52
sha512=8a5506a57e8569a11c883ca25b3c60ae7a9a03c2da111668193d7b4296434c43f1a310e78f189e4b38c234da790259d2961c6a0ae481282c18bb97f618fccfb6

doc/irmin-pack.unix/Irmin_pack_unix/Checks/Integrity_checks/index.html

Module Checks.Integrity_checksSource

Parameters

module XKey : Pack_key.S
module X : Irmin.Backend.S with type Commit.key = XKey.t and type Node.key = XKey.t and type Schema.Hash.t = XKey.hash
module Index : sig ... end

Signature

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 : ?ppf:Format.formatter -> iter: (pred_node: (X.Repo.t -> XKey.t -> [> `Contents of XKey.t | `Node of XKey.t ] as 'a 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 -> 'a 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.