Přeskočit obsah

Sensorium Virt Host Request v1

Source schema: doc/schemas/sensorium-virt.host.request.v1.schema.json

Bounded internal request envelope for daemon-owned Sensorium Virt host authority.

Governing Basis

Project Lineage

Requirements

Stories

Fields

Field Required Shape Description
schema yes const: sensorium-virt.host.request.v1
schema/v yes const: 1
operation yes enum: fixture.prepare, vfkit.allocate, environment.start, environment.inspect, environment.drain, environment.teardown, environment.recover, host.reconcile
payload yes object

Definitions

Definition Shape Description
ref string
fixturePrepare object
environmentBinding object
vfkitAllocate object
environmentLimits object
emptyPayload object

Conditional Rules

Rule 1

When:

{
  "properties": {
    "operation": {
      "const": "fixture.prepare"
    }
  },
  "required": [
    "operation"
  ]
}

Then:

{
  "properties": {
    "payload": {
      "$ref": "#/$defs/fixturePrepare"
    }
  }
}

Rule 2

When:

{
  "properties": {
    "operation": {
      "const": "vfkit.allocate"
    }
  },
  "required": [
    "operation"
  ]
}

Then:

{
  "properties": {
    "payload": {
      "$ref": "#/$defs/vfkitAllocate"
    }
  }
}

Rule 3

When:

{
  "properties": {
    "operation": {
      "enum": [
        "environment.inspect",
        "environment.start",
        "environment.drain",
        "environment.teardown",
        "environment.recover"
      ]
    }
  },
  "required": [
    "operation"
  ]
}

Then:

{
  "properties": {
    "payload": {
      "$ref": "#/$defs/environmentBinding"
    }
  }
}

Rule 4

When:

{
  "properties": {
    "operation": {
      "const": "host.reconcile"
    }
  },
  "required": [
    "operation"
  ]
}

Then:

{
  "properties": {
    "payload": {
      "$ref": "#/$defs/emptyPayload"
    }
  }
}

Field Semantics

schema

  • Required: yes
  • Shape: const: sensorium-virt.host.request.v1

schema/v

  • Required: yes
  • Shape: const: 1

operation

  • Required: yes
  • Shape: enum: fixture.prepare, vfkit.allocate, environment.start, environment.inspect, environment.drain, environment.teardown, environment.recover, host.reconcile

payload

  • Required: yes
  • Shape: object

Definition Semantics

$defs.ref

  • Shape: string

$defs.fixturePrepare

  • Shape: object

$defs.environmentBinding

  • Shape: object

$defs.vfkitAllocate

  • Shape: object

$defs.environmentLimits

  • Shape: object

$defs.emptyPayload

  • Shape: object