package xenstore

  1. Overview
  2. Docs
Xenstore protocol in pure OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

xenstore-2.3.0.tbz
sha256=d63c6bbcb2d3c297767d83c0a0f6dd46cecfd4e691f1cf5c5b6554445ec1b3f4
sha512=5cea990ab16ef708e53605172f708dde6ed15981cca6890939274db6efde1e5b2f9ec5c659d4d2f4115c5e0c3b69bcacc798a0d7fd5c1b75b83ddccd699de189

doc/src/xenstore.server/namespace.ml.html

Source file namespace.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

module type IO = sig
  val exists: Transaction.t -> Perms.t -> Store.Path.t -> bool
  val mkdir: ?with_watch:bool -> Transaction.t -> int -> Perms.t -> Store.Path.t -> unit
  val read: Transaction.t -> Perms.t -> Store.Path.t -> string
  val write: Transaction.t -> int -> Perms.t -> Store.Path.t -> string -> unit
  val list: Transaction.t -> Perms.t -> Store.Path.t -> string list
  val rm: Transaction.t -> Perms.t -> Store.Path.t -> unit
  val getperms: Transaction.t -> Perms.t -> Store.Path.t -> Xs_protocol.ACL.t
  val setperms: Transaction.t -> Perms.t -> Store.Path.t -> Xs_protocol.ACL.t -> unit
end

exception Unsupported

module Unsupported = struct
  let exists _ _ _ = raise Unsupported
  let mkdir ?with_watch:_ _ _ _ _ = raise Unsupported
  let read _ _ _ = raise Unsupported
  let write _ _ _ _ _ = raise Unsupported
  let list _ _ _ = raise Unsupported
  let rm _ _ _ = raise Unsupported
  let getperms _ _ _ = raise Unsupported
  let setperms _ _ _ _ = raise Unsupported
end
OCaml

Innovation. Community. Security.