package tezos-context
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc
doc/tezos-context.dump/Tezos_context_dump/Context_dump/Make/argument-1-I/index.html
Parameter Make.I
val commit_info_encoding : commit_info Tezos_base.TzPervasives.Data_encoding.tmodule Block_header : sig ... endmodule Commit_hash : sig ... endmodule Kinded_hash : Context_dump_intf.Kinded_hash with type hash := hashval context_parents : context -> Commit_hash.t listval context_info : context -> commit_infoval checkout : index -> Commit_hash.t -> context option Lwt.tval set_context :
info:commit_info ->
parents:Commit_hash.t list ->
context ->
Commit_hash.t ->
bool Lwt.tval add_dir :
batch ->
(step * Kinded_hash.t,
Tezos_base.TzPervasives.error Tezos_base.TzPervasives.trace)
Tezos_base.TzPervasives.Seq_es.t ->
(tree option, Tezos_base.TzPervasives.error Tezos_base.TzPervasives.trace)
result
Lwt.tmodule Snapshot : sig ... endThis type exposes the internal nodes used in irmin in order to use them during snapshot import and export.
val tree_iteri_unique :
?on_disk:bool ->
index ->
(Snapshot.t -> unit Lwt.t) ->
tree ->
int Lwt.ttree_iteri_unique ?on_disk index f tree traverses tree, applying f to all inodes and contents.
f is called in post-order, that is f is first called on the leaves, and the last call to f is on the root of the tree.
The traversal order is stable.
The traversal skips objects that are structurally equal to objects that were already traversed. In other words, tree_iteri_unique internally uses a hash set in order to guarantee that all the objects passed to f don't hash the same way.
If on_disk is true (by default its false), it uses an on_disk index.
Returns the total number of elements visited.
v_import ?in_memory index creates an importer instance. If in_memory is true, the import will be fully in memory. in_memory is set to false by default.
val save_inode : index -> import -> Snapshot.t -> tree option Lwt.tsave_inode index importer elt saves elt to the store.