DefaultLetsEncryptCache returns the path to the default Let's Encrypt cache directory (or file, depending on the ACME implementation).
()
| 327 | // DefaultLetsEncryptCache returns the path to the default Let's Encrypt cache |
| 328 | // directory (or file, depending on the ACME implementation). |
| 329 | func DefaultLetsEncryptCache() string { |
| 330 | for _, f := range letsEncryptCacheFuncs { |
| 331 | if v := f(); v != "" { |
| 332 | return v |
| 333 | } |
| 334 | } |
| 335 | dir, err := PerkeepConfigDir() |
| 336 | if err != nil { |
| 337 | log.Fatalf("Could not compute DefaultLetsEncryptCache: %v", err) |
| 338 | } |
| 339 | return filepath.Join(dir, "letsencrypt.cache") |
| 340 | } |
| 341 | |
| 342 | // NewJSONConfigParser returns a jsonconfig.ConfigParser with its IncludeDirs |
| 343 | // set with PerkeepConfigDir and the contents of CAMLI_INCLUDE_PATH. |
no test coverage detected