{ "module": "mesh-watcher", "version": "1", "slug": "watch", "consumes": [ "mesh-controller.doctor-heartbeat" ], "invokes": [ "mesh-watcher.watcher_ping", "seat:mesh-controller.seats" ], "own-secrets": { "telegram-token": "${dir:state}/telegram-token" }, "tools": [ "watcher_status", "watcher_last_heard", "watcher_test", "watcher_ping" ], "resources": [ { "id": "state", "type": "directory", "mode": "0700", "place": "." }, { "id": "settings", "type": "file", "path": "${dir:state}/settings.json", "mode": "0600", "merge": "json", "content": "{\n \"telegram-chat-id\": \"\"\n}\n" } ], "build": { "artifacts": [ { "name": "tools", "kind": "bundle", "language": "go", "system": "arch", "from": "cmd/mesh-watcher", "binary": "mesh-watcher", "loads": [ "mesh-watcher" ], "env": { "MESH_WATCHER_SETTINGS": "${dir:state}/settings.json", "MESH_WATCHER_TELEGRAM_TOKEN_FILE": "${dir:state}/telegram-token" } } ] } }