package irmin-pack

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type misc_error = File_manager.Io.misc_error
val misc_error_t : misc_error Irmin.Type.t
type create_error = [
  1. | `File_exists of string
  2. | `Io_misc of misc_error
]
type open_error = [
  1. | `Io_misc of misc_error
  2. | `No_such_file_or_directory
  3. | `Not_a_file
]
type read_error = [
  1. | `Closed
  2. | `Invalid_argument
  3. | `Io_misc of misc_error
  4. | `Read_out_of_bounds
]
type write_error = [
  1. | `Closed
  2. | `Io_misc of misc_error
  3. | `Ro_not_allowed
]
type close_error = [
  1. | `Double_close
  2. | `Io_misc of misc_error
]
type mkdir_error = [
  1. | `File_exists of string
  2. | `Invalid_parent_directory
  3. | `Io_misc of misc_error
  4. | `No_such_file_or_directory
]
val create : path:string -> overwrite:bool -> (t, [> create_error ]) result
val open_ : path:string -> readonly:bool -> (t, [> open_error ]) result
val close : t -> (unit, [> close_error ]) result
val write_string : t -> off:Optint.Int63.t -> string -> (unit, [> write_error ]) result
val fsync : t -> (unit, [> write_error ]) result
val move_file : src:string -> dst:string -> (unit, [> `Sys_error of string ]) result
val copy_file : src:string -> dst:string -> (unit, [> `Sys_error of string ]) result
val mkdir : string -> (unit, [> mkdir_error ]) result
val read_to_string : t -> off:Optint.Int63.t -> len:int -> (string, [> read_error ]) result
val read_all_to_string : t -> (string, [> `Closed | `Io_misc of misc_error ]) result
val read_size : t -> (Optint.Int63.t, [> read_error ]) result
val size_of_path : string -> (Optint.Int63.t, [> `Io_misc of misc_error | `No_such_file_or_directory | `Not_a_file ]) result
val classify_path : string -> [> `Directory | `File | `No_such_file_or_directory | `Other ]
val readonly : t -> bool
val path : t -> string
val page_size : int
val read_exn : t -> off:Optint.Int63.t -> len:int -> bytes -> unit
val write_exn : t -> off:Optint.Int63.t -> len:int -> string -> unit
val raise_misc_error : misc_error -> 'a
val catch_misc_error : (unit -> 'a) -> ('a, [> `Io_misc of misc_error ]) result
OCaml

Innovation. Community. Security.