Module Mirage_fs.To_KV_RO

Consider a filesystem device as a key/value read-only store.

Parameters

module FS : S

Signature

include Mirage_kv.RO with type t = FS.t
type nonrec error = private [>
| Mirage_kv.error
]
val pp_error : error Fmt.t
type t = FS.t
val disconnect : t -> unit Lwt.t
type key = Mirage_kv.Key.t
val exists : t -> key -> ([ `Dictionary | `Value ] optionerror) Stdlib.result Lwt.t
val get : t -> key -> (string, error) Stdlib.result Lwt.t
val list : t -> key -> ((string * [ `Dictionary | `Value ]) listerror) Stdlib.result Lwt.t
val last_modified : t -> key -> (int * int64, error) Stdlib.result Lwt.t
val digest : t -> key -> (string, error) Stdlib.result Lwt.t
val connect : FS.t -> t Lwt.t