package albatross

  1. Overview
  2. Docs

Module Vmm_commandsSource

Sourcetype version = [
  1. | `AV3
  2. | `AV4
  3. | `AV5
]

The type of versions of the grammar defined below.

Sourceval current : version

current is the current version.

Sourceval is_current : version -> bool
Sourceval eq_version : version -> version -> bool
Sourceval pp_version : version Fmt.t

pp_version ppf version pretty prints version onto ppf.

Sourcetype since_count = [
  1. | `Since of Ptime.t
  2. | `Count of int
]
Sourcetype console_cmd = [
  1. | `Console_add
  2. | `Console_subscribe of since_count
  3. | `Old_console_subscribe of since_count
]
Sourcetype stats_cmd = [
  1. | `Stats_add of string * int * (string * string) list
  2. | `Stats_remove
  3. | `Stats_subscribe
  4. | `Stats_initial
]
Sourcetype unikernel_cmd = [
  1. | `Unikernel_info
  2. | `Unikernel_create of Vmm_core.Unikernel.config
  3. | `Unikernel_force_create of Vmm_core.Unikernel.config
  4. | `Unikernel_restart of Vmm_core.Unikernel.arguments option
  5. | `Unikernel_destroy
  6. | `Unikernel_get of int
  7. | `Old_unikernel_info1
  8. | `Old_unikernel_info2
  9. | `Old_unikernel_info3
  10. | `Old_unikernel_get
]
Sourcetype policy_cmd = [
  1. | `Policy_info
  2. | `Policy_add of Vmm_core.Policy.t
  3. | `Policy_remove
]
Sourcetype block_cmd = [
  1. | `Block_info
  2. | `Old_block_add of int * bool * string option
  3. | `Block_remove
  4. | `Old_block_set of bool * string
  5. | `Old_block_dump of int
  6. | `Block_dump of int
  7. | `Block_add of int
  8. | `Block_set of bool
]
Sourcetype t = [
  1. | `Console_cmd of console_cmd
  2. | `Stats_cmd of stats_cmd
  3. | `Unikernel_cmd of unikernel_cmd
  4. | `Policy_cmd of policy_cmd
  5. | `Block_cmd of block_cmd
]
Sourceval pp : verbose:bool -> t Fmt.t
Sourcetype data = [
  1. | `Console_data of Ptime.t * string
  2. | `Utc_console_data of Ptime.t * string
  3. | `Stats_data of Vmm_core.Stats.t
  4. | `Block_data of string option
]
Sourceval pp_data : data Fmt.t
Sourcetype header = {
  1. version : version;
  2. sequence : int64;
  3. name : Vmm_core.Name.t;
}
Sourceval header : ?version:version -> ?sequence:int64 -> Vmm_core.Name.t -> header
Sourcetype success = [
  1. | `Empty
  2. | `String of string
  3. | `Policies of (Vmm_core.Name.t * Vmm_core.Policy.t) list
  4. | `Old_unikernels of (Vmm_core.Name.t * Vmm_core.Unikernel.config) list
  5. | `Old_unikernel_info2 of (Vmm_core.Name.t * Vmm_core.Unikernel.info) list
  6. | `Old_unikernel_info3 of (Vmm_core.Name.t * Vmm_core.Unikernel.info) list
  7. | `Unikernel_info of (Vmm_core.Name.t * Vmm_core.Unikernel.info) list
  8. | `Unikernel_image of bool * string
  9. | `Block_devices of (Vmm_core.Name.t * int * bool) list
  10. | `Old_block_device_image of bool * string
  11. | `Block_device_image of bool
]
Sourcetype res = [
  1. | `Command of t
  2. | `Success of success
  3. | `Failure of string
  4. | `Data of data
]
Sourcetype wire = header * res
Sourceval pp_wire : verbose:bool -> wire Fmt.t
Sourceval endpoint : t -> Vmm_core.service * [ `Single | `Read | `Dump ]
OCaml

Innovation. Community. Security.