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

Method get_zt_domain

gateway/src/admin_service.rs:464–473  ·  view source on GitHub ↗
(self, request: GetZtDomainRequest)

Source from the content-addressed store, hash-verified

462 }
463
464 async fn get_zt_domain(self, request: GetZtDomainRequest) -> Result<ZtDomainInfo> {
465 let kv_store = self.state.kv_store();
466 let cert_resolver = &self.state.cert_resolver;
467
468 let config = kv_store
469 .get_zt_domain_config(&request.domain)
470 .context("ZT-Domain config not found")?;
471
472 Ok(zt_domain_to_proto(config, kv_store, cert_resolver))
473 }
474
475 async fn add_zt_domain(self, request: ProtoZtDomainConfig) -> Result<ZtDomainInfo> {
476 let kv_store = self.state.kv_store();

Callers

nothing calls this directly

Calls 3

zt_domain_to_protoFunction · 0.85
kv_storeMethod · 0.80
get_zt_domain_configMethod · 0.80

Tested by

no test coverage detected