package irmin

  1. Overview
  2. Docs
On This Page
  1. Actions
Legend:
Library
Module
Module type
Parameter
Class
Class type

Action provides information about operations performed on a view.

Each view stores the list of actions that have already been performed on it. These actions are useful when the view needs to be rebased: write operations are replayed while read results are checked against the original run.

Signature for actions performed on a view.

Actions

type t = [
  1. | `Read of key * value option
  2. | `Write of key * value option
  3. | `Rmdir of key
  4. | `List of key * key list
]

Operations on views. The read results are kept to be able to replay them on merge and to check for possible conflict: this happens if the result read is different from the one recorded.

include Tc.S0 with type t := t
val equal : t Tc.equal
val compare : t Tc.compare
val hash : t Tc.hash
val to_json : t Tc.to_json

The REST inteface.

val of_json : t Tc.of_json
val size_of : t Tc.size_of

The serialization format.

val write : t Tc.writer
val read : t Tc.reader
val pretty : t -> string

Pretty-print an action.

val prettys : t list -> string

Pretty-print a sequence of actions.

OCaml

Innovation. Community. Security.