MCPcopy
hub / github.com/perkeep/perkeep / DefaultSecretRingFile

Function DefaultSecretRingFile

internal/osutil/paths.go:264–270  ·  view source on GitHub ↗

DefaultSecretRingFile returns the path to the default GPG secret keyring. It is not influenced by any flag or CAMLI* env var.

()

Source from the content-addressed store, hash-verified

262// DefaultSecretRingFile returns the path to the default GPG secret
263// keyring. It is not influenced by any flag or CAMLI* env var.
264func 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.

Callers 1

RunCommandMethod · 0.92

Calls 2

perkeepConfigDirFunction · 0.85
FatalfMethod · 0.65

Tested by

no test coverage detected