Library
Module
Module type
Parameter
Class
Class type
Mirage keys.
Release 3.3.1
module Arg : sig ... end
include Functoria.KEY with module Arg := Arg
val pure : 'a -> 'a value
val default : 'a value -> 'a
module Set : sig ... end
val hash : t -> int
val pp : t Fmt.t
val pp_deps : 'a value Fmt.t
val is_runtime : t -> bool
val is_configure : t -> bool
module Alias : sig ... end
val name : t -> string
val dump_context : context Fmt.t
val empty_context : context
val ocaml_name : t -> string
val serialize_call : t Fmt.t
-t TARGET
: Key setting the configuration mode for the current project. Is one of "unix"
, "macosx"
, "xen"
, "qubes"
, "virtio"
, "hvt"
, "muen"
or "genode"
.
val pp_target : mode Fmt.t
Pretty printer for the mode.
val warn_error : bool key
--warn-error
. Enable -warn-error for OCaml sources. Set to false
by default, but might might enabled by default in later releases.
val target_debug : bool key
-g
. Enables target-specific support for debugging.
val no_depext : bool key
--no-depext
. Disables opam depext in depend target of generated Makefile.
val tracing_size : int -> int key
--tracing-size
: Key setting the tracing ring buffer size.
Some keys have a group
optional argument. This group argument allows to give several keys a prefix.
For example, if we have two ip
stacks, one external and one internal, We can use the group
option to name them in
and out
. This way, the available keys will be --in-ip
and --out-ip
.
If a key has another, non-optional argument. It is the default value.
Keys are always named the same as their command line option.
val kv_ro :
?group:string ->
unit ->
[ `Archive | `Crunch | `Direct | `Fat ] key
The type of key value store. Is one of "archive"
, "crunch"
, "direct"
, or "fat"
.
val block :
?group:string ->
unit ->
[ `XenstoreId | `BlockFile | `Ramdisk ] key
Block device keys
val prng : ?group:string -> unit -> [ `Stdlib | `Nocrypto ] key
The type of pseudo random number generator to use by default. Is one of "stdlib"
(lagged Fibonacci), or "nocrypto"
(Fortuna).
val dhcp : ?group:string -> unit -> bool key
Enable dhcp. Is either true
or false
.
val net : ?group:string -> unit -> [ `Direct | `Socket ] key
The type of stack. Is either "direct"
or "socket"
.
val interface : ?group:string -> string -> string key
A network interface.
module V4 : sig ... end
Ipv4 keys.
module V6 : sig ... end
Ipv6 keys.
val syslog : Ipaddr.V4.t option -> Ipaddr.V4.t option key
The address to send syslog frames to.
val syslog_port : int option -> int option key
The port to send syslog frames to.
val syslog_hostname : string -> string key
The hostname to use in syslog frames.
val logs : Mirage_runtime.log_threshold list key