{
  "repo": "pingcap/tidb-lightning",
  "binary": "tidb-lightning",
  "binary_path": "cmd/tidb-lightning/main.go",
  "kind": "worker",
  "dependencies": {
    "Runtime LightningServer.ManageTasks": {
      "description": "Runs Lightning in server mode and enqueues import tasks that execute the restore pipeline.",
      "infrastructure": {
        "tidb_sql": {
          "conditions": [
            "Import tasks are executed"
          ],
          "operations": [
            {
              "operation": "Connect to TiDB and execute restore workflow steps",
              "implementation": "cmd/tidb-lightning/main.go"
            }
          ]
        },
        "pd_http_api": {
          "conditions": [
            "Import tasks or status APIs need cluster metadata"
          ],
          "operations": [
            {
              "operation": "Talk to PD through Lightning TLS helpers and importer backends",
              "implementation": "lightning/lightning.go"
            }
          ]
        }
      },
      "services": []
    },
    "HTTP GET /metrics": {
      "description": "Exposes Prometheus metrics for the running importer.",
      "infrastructure": {},
      "services": []
    }
  }
}
