package xenstore

  1. Overview
  2. Docs
Xenstore protocol in pure OCam

Install

Dune Dependency

Authors

Maintainers

Sources

xenstore-2.4.0.tbz
sha256=11b63bb2a5a8bc487d36f36ecb195b2a2135aa13ab401cbc73da67505c08faa4
sha512=b921aa4265503677f4984007efee6865461a18031dc49583be040781307cc6cbfcd84bc11e9ebc0a23e9b0cf281bd94528c475624bc30471ad8ff70607e0732f

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
25
26
27
28
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.