To focus the search input from anywhere on the page, press the 'S' key.
in-package search v0.1.0
The type for errors.
type write_error = private [>
The type for FS write errors.
val pp_write_error : write_error Fmt.t
pp_write_error is the pretty-printer for write errors.
include Mirage_device.S with type 'a io = 'a Lwt.t
type 'a io = 'a Lwt.t
The type for potentially blocking I/O operation
type page_aligned_buffer = Cstruct.t
The type for memory buffers.
val read : t -> string -> int -> int -> (page_aligned_buffer list, error) result io
read t key offset length reads up to
length bytes from the value associated with
key. If less data is returned than requested, this indicates the end of the value.
val create : t -> string -> (unit, write_error) result io
create t path creates an empty file at
path contains directories that do not yet exist,
create will attempt to create them.
val mkdir : t -> string -> (unit, write_error) result io
mkdir t path creates an empty directory at
path contains intermediate directories that do not yet exist,
mkdir will create them. If a directory already exists at
`Ok () and takes no action.
val destroy : t -> string -> (unit, write_error) result io
destroy t path removes a
path (which may be a file or an empty directory) on filesystem
val stat : t -> string -> (Mirage_fs.stat, error) result io
stat t path returns information about file or directory at
listdir t path returns the names of files and subdirectories within the directory
val write : t -> string -> int -> page_aligned_buffer -> (unit, write_error) result io
write t path offset data writes
offset in file
path on filesystem
path contains directories that do not exist,
write will attempt to create them. If
path already exists,
write will overwrite existing information starting at