MCPcopy
hub / github.com/perkeep/perkeep / SecretRingFile

Function SecretRingFile

internal/osutil/paths.go:286–294  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

284// registered with AddSecretRingFlag), or the CAMLI_SECRET_RING environment
285// variable, or the operating system default location.
286func 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

Callers 8

SecretRingFileMethod · 0.92
FlagEntityFetcherFunction · 0.92
secretRingPathMethod · 0.92
EntityFromSecringFunction · 0.92
secretRingPathMethod · 0.92
DefaultEnvConfigFunction · 0.92
getOrMakeKeyringFunction · 0.92
initSecretRingMethod · 0.92

Calls 1

identitySecretRingFunction · 0.85

Tested by

no test coverage detected