package datakit-server

  1. Overview
  2. Docs

Module VfsSource

Virtual filesystem.

A virtual filesystem is an abstract description of files, directoires, inodes and error codes.

Sourcemodule Error : sig ... end

Error codes.

Sourcetype 'a or_err = ('a, Error.t) Result.result Lwt.t

The type of errors.

Sourceval ok : 'a -> 'a or_err

ok x is Lwt.return (Ok x)

Sourceval error : ('a, unit, string, 'b or_err) format4 -> 'a

error fmt is Lwt.return (Error <fmt>).

Sourcetype perm = [
  1. | `Normal
  2. | `Exec
]
Sourcetype metadata = {
  1. length : int64;
  2. perm : perm;
}
Sourcemodule File : sig ... end

File operations.

Sourcemodule Dir : sig ... end

Directory operations.

Sourcemodule Inode : sig ... end

Inode.t operations.

Sourcemodule Logs : sig ... end
OCaml

Innovation. Community. Security.