MCPcopy Index your code
hub / github.com/cargo-lambda/cargo-lambda / cached_key_path

Method cached_key_path

crates/cargo-lambda-remote/src/tls.rs:157–164  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

155 }
156
157 fn cached_key_path(&self) -> Option<PathBuf> {
158 let cache = self.config_dir().map(|p| p.join("key.pem"));
159 if cache.as_ref().is_some_and(|p| p.exists() && p.is_file()) {
160 return cache;
161 }
162
163 None
164 }
165
166 fn cached_ca_path(&self) -> Option<PathBuf> {
167 let cache = self.config_dir().map(|p| p.join("ca.pem"));

Callers 1

key_pathMethod · 0.80

Calls 1

config_dirMethod · 0.80

Tested by

no test coverage detected