Devices.Runtime_argCommand-line arguments for Mirage applications.
include module type of Functoria.Runtime_argtype t = Functoria.Runtime_arg.tThe type command-line arguments where the type of the value is abstract.
val packages : t -> Functoria.Package.t listmodule Set = Functoria.Runtime_arg.SetSet implements sets over t elements.
serialize ctx ppf k outputs the Cmdliner runes to parse command-line arguments represented by k at runtime.
val var_name : t -> stringtype 'a arg = 'a Functoria.DSL.runtime_argThe type for command-line arguments that reads a value of type 'a.
val create :
pos:(string * int * int * int) ->
?packages:Functoria.DSL.package list ->
string ->
'a argval v : 'a arg -> Functoria.Runtime_arg.tv k is the k with its type hidden.
The OCaml runtime is usually configurable via the OCAMLRUNPARAM environment variable. We provide boot parameters covering these options.
val backtrace : bool Functoria.DSL.runtime_arg--backtrace: Output a backtrace if an uncaught exception terminated the unikernel.
val randomize_hashtables : bool Functoria.DSL.runtime_arg--randomize-hashtables: Randomize all hash tables.
The OCaml garbage collector can be configured, as described in detail in GC control.
The following arguments allow boot time configuration.
val allocation_policy :
[ `Next_fit | `First_fit | `Best_fit ] Functoria.DSL.runtime_argval minor_heap_size : int option Functoria.DSL.runtime_argval major_heap_increment : int option Functoria.DSL.runtime_argval space_overhead : int option Functoria.DSL.runtime_argval max_space_overhead : int option Functoria.DSL.runtime_argval gc_verbosity : int option Functoria.DSL.runtime_argval gc_window_size : int option Functoria.DSL.runtime_argval custom_major_ratio : int option Functoria.DSL.runtime_argval custom_minor_ratio : int option Functoria.DSL.runtime_argval custom_minor_max_size : int option Functoria.DSL.runtime_argval interface :
?group:string ->
?docs:string ->
string ->
string Functoria.DSL.runtime_argA network interface.
module V4 : sig ... endIpv4 Arguments.
module V6 : sig ... endIpv6 Arguments.
val ipv4_only :
?group:string ->
?docs:string ->
unit ->
bool Functoria.DSL.runtime_argAn option for dual stack to only use IPv4.
val ipv6_only :
?group:string ->
?docs:string ->
unit ->
bool Functoria.DSL.runtime_argAn option for dual stack to only use IPv6.
val resolver :
?group:string ->
?docs:string ->
?default:string list ->
unit ->
string list option Functoria.DSL.runtime_argThe address of the DNS resolver to use. See $REFERENCE for format.
val syslog :
?group:string ->
?docs:string ->
Ipaddr.t option ->
Ipaddr.t option Functoria.DSL.runtime_argThe address to send syslog frames to.
val monitor :
?group:string ->
?docs:string ->
Ipaddr.t option ->
Ipaddr.t option Functoria.DSL.runtime_argThe address to send monitor statistics to.
val syslog_port :
?group:string ->
?docs:string ->
int option ->
int option Functoria.DSL.runtime_argThe port to send syslog frames to.
val syslog_hostname :
?group:string ->
?docs:string ->
string ->
string Functoria.DSL.runtime_argThe hostname to use in syslog frames.
The type for log threshold. A log level of None disables logging.
val logs : log_threshold list Functoria.DSL.runtime_argval delay : int Functoria.DSL.runtime_argThe initial delay, specified in seconds, before a unikernel starting up. Defaults to 0. Useful for tenders and environments that take some time to bring devices up.