Inventory: add concrete use-case examples

This commit is contained in:
Johannes Kirschbauer
2024-06-19 13:03:15 +02:00
parent 6c11e0ced7
commit afdfa6181b
6 changed files with 130 additions and 79 deletions

View File

@@ -1,20 +1,8 @@
package machines
#ServiceRole: "server" | "client" | "both"
#machine: machines: [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: {
...
}
}
icon?: string
}