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

Function list

supervisor/src/web_api.rs:61–63  ·  view source on GitHub ↗
(supervisor: &State<Supervisor>)

Source from the content-addressed store, hash-verified

59
60#[get("/list")]
61fn list(supervisor: &State<Supervisor>) -> Json<Response<Vec<ProcessInfo>>> {
62 to_json(Ok(supervisor.list()))
63}
64
65#[get("/info/<id>")]
66fn info(supervisor: &State<Supervisor>, id: &str) -> Json<Response<Option<ProcessInfo>>> {

Callers 6

list_dns_recordsFunction · 0.85
update_vm_envMethod · 0.85
update_vmMethod · 0.85
get_tls_keyMethod · 0.85

Calls 2

to_jsonFunction · 0.85
listMethod · 0.45

Tested by 2