Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val yojson_of_memory_options :
memory_options ->
Ppx_yojson_conv_lib.Yojson.Safe.t
val memory_options_of_yojson :
Ppx_yojson_conv_lib.Yojson.Safe.t ->
memory_options
val yojson_of_dict : dict -> Ppx_yojson_conv_lib.Yojson.Safe.t
val dict_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> dict
val yojson_of_config : config -> Ppx_yojson_conv_lib.Yojson.Safe.t
val config_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> config
module Wasm : sig ... end
type t = {
wasm : Wasm.t list;
memory : memory_options option;
config : config option;
allowed_hosts : string list option;
allowed_paths : dict option;
timeout_ms : int option;
}
Manifest type
include Ppx_yojson_conv_lib.Yojsonable.S with type t := t
val t_of_yojson : Yojson.Safe.t -> t
val yojson_of_t : t -> Yojson.Safe.t
val create :
?config:config ->
?memory:memory_options ->
?allowed_hosts:string list ->
?allowed_paths:dict ->
?timeout_ms:int ->
Wasm.t list ->
t
Create new manifest
val to_json : t -> string
Convert manifest to JSON
val of_json : string -> t
Read manifest from JSON string
val of_file : string -> t
Read manifest from JSON file