package tezos-context
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b
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.t
module Block_header : sig ... end
module Commit_hash : sig ... end
module Kinded_hash : Context_dump_intf.Kinded_hash with type hash := hash
val context_parents : context -> Commit_hash.t list
val context_info : context -> commit_info
val checkout : index -> Commit_hash.t -> context option Lwt.t
val set_context :
info:commit_info ->
parents:Commit_hash.t list ->
context ->
Commit_hash.t ->
bool Lwt.t
val 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.t
module Snapshot : sig ... end
This 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.t
tree_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.t
save_inode index importer elt
saves elt
to the store.