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

Method keys_exists

kms/src/config.rs:65–73  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

63
64impl KmsConfig {
65 pub fn keys_exists(&self) -> bool {
66 self.tmp_ca_cert().exists()
67 && self.tmp_ca_key().exists()
68 && self.root_ca_cert().exists()
69 && self.root_ca_key().exists()
70 && self.rpc_cert().exists()
71 && self.rpc_key().exists()
72 && self.k256_key().exists()
73 }
74
75 pub fn tmp_ca_cert(&self) -> PathBuf {
76 self.cert_dir.join(TEMP_CA_CERT)

Callers 1

mainFunction · 0.80

Calls 7

tmp_ca_certMethod · 0.80
tmp_ca_keyMethod · 0.80
root_ca_certMethod · 0.80
root_ca_keyMethod · 0.80
rpc_certMethod · 0.80
rpc_keyMethod · 0.80
k256_keyMethod · 0.80

Tested by

no test coverage detected