package irmin-pack

  1. Overview
  2. Docs
module Inter : sig ... end
module Pack' : sig ... end
type 'a t
type key = H.t Pack_key.t
type value = Inter.Val.t
val mem : [> Irmin.Perms.read ] t -> key -> bool Lwt.t
val find : [> Irmin.Perms.read ] t -> key -> value option Lwt.t
val close : 'a t -> unit Lwt.t
type hash = H.t
val add : [> Irmin.Perms.write ] t -> value -> key Lwt.t
val unsafe_add : [> Irmin.Perms.write ] t -> hash -> value -> key Lwt.t
val index : [> Irmin.Perms.read ] t -> hash -> key option Lwt.t
val batch : Irmin.Perms.read t -> ([ `Read | `Write ] t -> 'a Lwt.t) -> 'a Lwt.t
module Key : sig ... end
module Hash : sig ... end
val unsafe_find : check_integrity:bool -> [< Irmin.Perms.read ] t -> key -> value option
module Val : sig ... end
val decode_bin_length : string -> int -> int
val save : ?allow_non_root:bool -> 'a t -> value -> key
type file_manager = Pack'.file_manager
type dict = Pack'.dict
type dispatcher = Pack'.dispatcher
val v : config:Irmin.Backend.Conf.t -> fm:file_manager -> dict:dict -> dispatcher:dispatcher -> Irmin.Perms.read t
val integrity_check : offset:Optint.Int63.t -> length:int -> hash -> 'a t -> (unit, [ `Absent_value | `Wrong_hash ]) Stdlib.result
val integrity_check_inodes : [ `Read ] t -> key -> (unit, string) Stdlib.result Lwt.t
module Pack : sig ... end
module Raw : sig ... end
module Snapshot : sig ... end
val to_snapshot : Raw.t -> Snapshot.inode
val of_snapshot : 'a t -> index:(hash -> key) -> Snapshot.inode -> value
val purge_lru : 'a t -> unit
OCaml

Innovation. Community. Security.