{
  "repo": "pingcap/diag",
  "binary": "k8s",
  "binary_path": "cmd/k8s/main.go",
  "dependencies": {
    "HTTP GET /api/v1/": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /api/v1/version": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /api/v1/status": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /api/v1/collectors": {
      "infrastructure": {
        "kubernetes": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "LIST",
              "trigger": "Serve collector job state from the in-cluster API server context",
              "conditions": [
                "When the endpoint is queried"
              ],
              "implementation": "k8s/server getJobList with client-go clients initialized by server.NewServer"
            }
          ]
        }
      },
      "services": []
    },
    "HTTP GET /api/v1/data": {
      "infrastructure": {
        "filesystem": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "READ",
              "trigger": "Enumerate collected diagnostic bundles under /diag",
              "conditions": [
                "When the endpoint is queried"
              ],
              "implementation": "k8s/server data handlers over unified storage paths"
            }
          ]
        }
      },
      "services": []
    }
  }
}
