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

Method init_all

gateway/src/distributed_certbot.rs:52–60  ·  view source on GitHub ↗

Initialize all ZT-Domain certificates

(&self)

Source from the content-addressed store, hash-verified

50
51 /// Initialize all ZT-Domain certificates
52 pub async fn init_all(&self) -> Result<()> {
53 let configs = self.kv_store.list_zt_domain_configs();
54 for config in configs {
55 if let Err(err) = self.init_domain(&config.domain).await {
56 error!("cert[{}]: failed to initialize: {err:?}", config.domain);
57 }
58 }
59 Ok(())
60 }
61
62 /// Initialize certificate for a specific domain
63 pub async fn init_domain(&self, domain: &str) -> Result<()> {

Callers 1

newMethod · 0.80

Calls 2

init_domainMethod · 0.80

Tested by

no test coverage detected