package capnp-rpc-unix

  1. Overview
  2. Docs

Module Capnp_rpc_unix.Cap_fileSource

Utilities for capability files.

Sourceval load : Vat.t -> string -> (_ Capnp_rpc_lwt.Sturdy_ref.t, [> `Msg of string ]) result

load vat path loads the contents of path as a capability URI.

Sourceval save_sturdy : Vat.t -> _ Capnp_rpc_lwt.Sturdy_ref.t -> string -> (unit, [> `Msg of string ]) result

save_sturdy vat sr path saves sr to path, with a mode of 0o600.

Sourceval save_service : Vat.t -> Capnp_rpc_net.Restorer.Id.t -> string -> (unit, [> `Msg of string ]) result

save_service vat id path saves vat/id to path, with a mode of 0o600.

Sourceval save_uri : Uri.t -> string -> (unit, [> `Msg of string ]) result

save_url uri path saves uri to path, with a mode of 0o600.