MCPcopy
hub / github.com/perkeep/perkeep / DefaultLetsEncryptCache

Function DefaultLetsEncryptCache

internal/osutil/paths.go:329–340  ·  view source on GitHub ↗

DefaultLetsEncryptCache returns the path to the default Let's Encrypt cache directory (or file, depending on the ACME implementation).

()

Source from the content-addressed store, hash-verified

327// DefaultLetsEncryptCache returns the path to the default Let's Encrypt cache
328// directory (or file, depending on the ACME implementation).
329func 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.

Callers 2

setupTLSFunction · 0.92
setupTLSFunction · 0.92

Calls 3

PerkeepConfigDirFunction · 0.85
FatalfMethod · 0.65
fFunction · 0.50

Tested by

no test coverage detected