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

Function deploy

supervisor/src/web_api.rs:41–43  ·  view source on GitHub ↗
(supervisor: &State<Supervisor>, config: Json<ProcessConfig>)

Source from the content-addressed store, hash-verified

39
40#[post("/deploy", data = "<config>")]
41async fn deploy(supervisor: &State<Supervisor>, config: Json<ProcessConfig>) -> Json<Response<()>> {
42 to_json(supervisor.deploy(config.into_inner()))
43}
44
45#[post("/start/<id>")]
46async fn start(supervisor: &State<Supervisor>, id: &str) -> Json<Response<()>> {

Callers

nothing calls this directly

Calls 3

to_jsonFunction · 0.85
into_innerMethod · 0.80
deployMethod · 0.45

Tested by

no test coverage detected