package extism-manifest

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type memory_options = {
  1. max_pages : int option;
}

Memory options

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
type dict = (string * string) list

Key/value dictionary

val yojson_of_dict : dict -> Ppx_yojson_conv_lib.Yojson.Safe.t
val dict_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> dict
type config = (string * string option) list

Key/value dictionary with optional values

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 = {
  1. wasm : Wasm.t list;
  2. memory : memory_options option;
  3. config : config option;
  4. allowed_hosts : string list option;
  5. allowed_paths : dict option;
  6. 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

val with_config : t -> config -> t

Updates a manifest config

OCaml

Innovation. Community. Security.