MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / getAgeDir

Function getAgeDir

internal/config/encryption.go:44–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44func getAgeDir() string {
45 ageDirOverrideMu.RLock()
46 defer ageDirOverrideMu.RUnlock()
47 if ageDirOverride != "" {
48 return ageDirOverride
49 }
50 return getConfigDir()
51}
52
53// getOrCreateAgeIdentity returns an age identity for encryption/decryption.
54// Creates a new identity if one doesn't exist, storing it in the config directory.

Callers 1

getOrCreateAgeIdentityFunction · 0.85

Calls 1

getConfigDirFunction · 0.85

Tested by

no test coverage detected