package irmin-pack

  1. Overview
  2. Docs
module Io : sig ... end
val create_rw : path:string -> overwrite:bool -> Irmin_pack_unix__Control_file_intf.Latest_payload.t -> (t, [> `Closed | `File_exists of string | `Io_misc of Io.misc_error | `Ro_not_allowed ]) Stdlib.result
val open_ : path:string -> readonly:bool -> (t, [> `Closed | `Corrupted_control_file | `Io_misc of Io.misc_error | `No_such_file_or_directory | `Not_a_file | `Unknown_major_pack_version of string ]) Stdlib.result
val close : t -> (unit, [> Io.close_error ]) Stdlib.result
val payload : t -> Irmin_pack_unix__Control_file_intf.Latest_payload.t
val reload : t -> (unit, [> `Closed | `Corrupted_control_file | `Io_misc of Io.misc_error | `Rw_not_allowed | `Unknown_major_pack_version of string ]) Stdlib.result
val set_payload : t -> Irmin_pack_unix__Control_file_intf.Latest_payload.t -> (unit, [> Io.write_error ]) Stdlib.result
val readonly : t -> bool
val fsync : t -> (unit, [> Io.write_error ]) Stdlib.result
OCaml

Innovation. Community. Security.