MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / info

Function info

supervisor/src/web_api.rs:66–68  ·  view source on GitHub ↗
(supervisor: &State<Supervisor>, id: &str)

Source from the content-addressed store, hash-verified

64
65#[get("/info/<id>")]
66fn info(supervisor: &State<Supervisor>, id: &str) -> Json<Response<Option<ProcessInfo>>> {
67 to_json(Ok(supervisor.info(id)))
68}
69
70#[get("/ping")]
71fn ping() -> Json<Response<&'static str>> {

Callers

nothing calls this directly

Calls 2

to_jsonFunction · 0.85
infoMethod · 0.45

Tested by

no test coverage detected