| 130 | } |
| 131 | |
| 132 | type CertContainer struct { |
| 133 | CertPEM []byte |
| 134 | KeyPEM []byte |
| 135 | CertWatcher *fswatch.Watcher |
| 136 | KeyWatcher *fswatch.Watcher |
| 137 | Cert tls.Certificate |
| 138 | } |
| 139 | |
| 140 | func NewCertContainer() (*CertContainer, error) { |
| 141 | CertPEM, err := os.ReadFile(certPath) |
nothing calls this directly
no outgoing calls
no test coverage detected