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

Method cached_cert_path

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

Source from the content-addressed store, hash-verified

146 }
147
148 fn cached_cert_path(&self) -> Option<PathBuf> {
149 let cache = self.config_dir().map(|p| p.join("cert.pem"));
150 if cache.as_ref().is_some_and(|p| p.exists() && p.is_file()) {
151 return cache;
152 }
153
154 None
155 }
156
157 fn cached_key_path(&self) -> Option<PathBuf> {
158 let cache = self.config_dir().map(|p| p.join("key.pem"));

Callers 1

cert_pathMethod · 0.80

Calls 1

config_dirMethod · 0.80

Tested by

no test coverage detected