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

Method store

kms/src/onboard_service.rs:312–317  ·  view source on GitHub ↗
(&self, cfg: &KmsConfig)

Source from the content-addressed store, hash-verified

310 }
311
312 fn store(&self, cfg: &KmsConfig) -> Result<()> {
313 self.store_keys(cfg)?;
314 self.store_certs(cfg)?;
315 safe_write(cfg.rpc_domain(), self.rpc_domain.as_bytes())?;
316 Ok(())
317 }
318
319 fn store_keys(&self, cfg: &KmsConfig) -> Result<()> {
320 safe_write(cfg.tmp_ca_key(), self.tmp_ca_key.serialize_pem())?;

Callers 5

bootstrapMethod · 0.80
onboardMethod · 0.80
bootstrap_keysFunction · 0.80
set_freezedMethod · 0.80
setMethod · 0.80

Calls 3

store_keysMethod · 0.80
store_certsMethod · 0.80
rpc_domainMethod · 0.80

Tested by

no test coverage detected