SecretRingFile returns the path to the user's GPG secret ring file. The value comes from either the --secret-keyring flag (if previously registered with AddSecretRingFlag), or the CAMLI_SECRET_RING environment variable, or the operating system default location.
()
| 284 | // registered with AddSecretRingFlag), or the CAMLI_SECRET_RING environment |
| 285 | // variable, or the operating system default location. |
| 286 | func SecretRingFile() string { |
| 287 | if flagSecretRing != "" { |
| 288 | return flagSecretRing |
| 289 | } |
| 290 | if e := os.Getenv("CAMLI_SECRET_RING"); e != "" { |
| 291 | return e |
| 292 | } |
| 293 | return identitySecretRing() |
| 294 | } |
| 295 | |
| 296 | // DefaultTLSCert returns the path to the default TLS certificate |
| 297 | // file that is used (creating if necessary) when TLS is specified |
no test coverage detected