syndicate-rs/syndicate-server/protocols/schemas/externalServices.prs

19 lines
614 B
Plaintext
Raw Normal View History

version 1 .
embeddedType EntityRef.Cap .
Service = DaemonService .
DaemonService = <daemon @id DaemonId> .
ServiceDependency = <depends-on @depender any @dependee any> .
DaemonProcess = <daemon @id DaemonId @config DaemonSpec>.
DaemonId = any .
DaemonSpec = { argv: [string ...] } & @env DaemonEnv & @dir DaemonDir & @clearEnv ClearEnv .
2021-09-20 13:43:13 +00:00
DaemonEnv = @present { env: { EnvVariable: EnvValue ...:... } } / @absent {} .
DaemonDir = @present { dir: string } / @absent {} .
ClearEnv = @present { clearEnv: bool } / @absent {} .
2021-09-20 13:43:13 +00:00
EnvVariable = @string string / @symbol symbol .
EnvValue = @set string / @remove #f .