Inventory: init draft ideas

This commit is contained in:
Johannes Kirschbauer
2024-06-15 13:41:51 +02:00
parent 7474f01193
commit 13aa60529f
9 changed files with 243 additions and 171 deletions

View File

@@ -1,8 +1,20 @@
package machines
#ServiceRole: "server" | "client" | "both"
#machine: machines: [string]: {
"name": string,
"description": string,
"icon": string,
"system": string
name: string,
description?: string,
icon?: string,
// each machines service
services?: [string]: {
// Roles if specificed must contain one or more roles
// If no roles are specified, the service module defines the default roles.
roles?: [ ...#ServiceRole ],
// The service config to use
// This config is scoped to the service.module, only serializable data (strings,numbers, etc) can be assigned here
config: {
...
}
}
}