DefaultSecretRingFile returns the path to the default GPG secret keyring. It is not influenced by any flag or CAMLI* env var.
()
| 262 | // DefaultSecretRingFile returns the path to the default GPG secret |
| 263 | // keyring. It is not influenced by any flag or CAMLI* env var. |
| 264 | func DefaultSecretRingFile() string { |
| 265 | dir, err := perkeepConfigDir() |
| 266 | if err != nil { |
| 267 | log.Fatalf("couldn't compute DefaultSecretRingFile: %v", err) |
| 268 | } |
| 269 | return filepath.Join(dir, "identity-secring.gpg") |
| 270 | } |
| 271 | |
| 272 | // identitySecretRing returns the path to the default GPG |
| 273 | // secret keyring. It is still affected by CAMLI_CONFIG_DIR. |
no test coverage detected