package git-mirage

  1. Overview
  2. Docs
type error = private [>
  1. | `Is_a_directory
  2. | `No_directory_entry
  3. | `Not_a_directory
]
val pp_error : error Fmt.t
type write_error = private [>
  1. | `File_already_exists
  2. | `Is_a_directory
  3. | `No_directory_entry
  4. | `No_space
  5. | `Not_a_directory
]
val pp_write_error : write_error Fmt.t
type 'a io = 'a Lwt.t
type t
val disconnect : t -> unit io
type page_aligned_buffer = Cstruct.t
val read : t -> string -> int -> int -> (page_aligned_buffer list, error) Pervasives.result io
val size : t -> string -> (int64, error) Pervasives.result io
val create : t -> string -> (unit, write_error) Pervasives.result io
val mkdir : t -> string -> (unit, write_error) Pervasives.result io
val destroy : t -> string -> (unit, write_error) Pervasives.result io
val stat : t -> string -> (Mirage_fs.stat, error) Pervasives.result io
val listdir : t -> string -> (string list, error) Pervasives.result io
val write : t -> string -> int -> page_aligned_buffer -> (unit, write_error) Pervasives.result io
val connect : unit -> t Lwt.t
OCaml

Innovation. Community. Security.