(ca: Option<PathBuf>, cert: Option<PathBuf>, key: Option<PathBuf>)
| 46 | |
| 47 | impl TlsOptions { |
| 48 | pub fn new(ca: Option<PathBuf>, cert: Option<PathBuf>, key: Option<PathBuf>) -> Self { |
| 49 | Self { |
| 50 | ca, |
| 51 | cert, |
| 52 | key, |
| 53 | gateway_name: None, |
| 54 | edge_token: None, |
| 55 | oidc_token: None, |
| 56 | gateway_insecure: false, |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | pub fn has_any(&self) -> bool { |
| 61 | self.ca.is_some() || self.cert.is_some() || self.key.is_some() |
nothing calls this directly
no outgoing calls
no test coverage detected