1
0
mirror of https://github.com/opencontainers/runtime-spec.git synced 2026-02-05 09:45:57 +01:00

Fix camelCasing on idType to align with other Windows spec conventions

Signed-off-by: Craig Wilhite <crwilhit@microsoft.com>
This commit is contained in:
Craig Wilhite
2018-07-10 14:00:50 -07:00
parent da8adc9528
commit 65fac2bf18
3 changed files with 6 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ The Windows container specification uses APIs provided by the Windows Host Compu
Each entry has the following structure:
* **`id`** *(string, REQUIRED)* - specifies the device which the runtime MUST make available in the container.
* **`id_type`** *(string, REQUIRED)* - tells the runtime how to interpret `id`. Today, Windows only supports a value of `class`, which identifies `id` as a [device interface class GUID][interfaceGUID].
* **`idType`** *(string, REQUIRED)* - tells the runtime how to interpret `id`. Today, Windows only supports a value of `class`, which identifies `id` as a [device interface class GUID][interfaceGUID].
[interfaceGUID]: https://docs.microsoft.com/en-us/windows-hardware/drivers/install/overview-of-device-interface-classes
@@ -37,11 +37,11 @@ Each entry has the following structure:
"devices": [
{
"id": "24E552D7-6523-47F7-A647-D3465BF1F5CA",
"id_type": "class"
"idType": "class"
},
{
"id": "5175d334-c371-4806-b3ba-71fd53c9258d",
"id_type": "class"
"idType": "class"
}
]
}

View File

@@ -6,7 +6,7 @@
"id": {
"type": "string"
},
"id_type": {
"idType": {
"type": "string",
"enum": [
"class"
@@ -15,7 +15,7 @@
},
"required": [
"id",
"id_type"
"idType"
]
}
}

View File

@@ -454,7 +454,7 @@ type WindowsDevice struct {
// Device identifier: interface class GUID, etc.
ID string `json:"id"`
// Device identifier type: "class", etc.
IDType string `json:"id_type"`
IDType string `json:"idType"`
}
// WindowsResources has container runtime resource constraints for containers running on Windows.