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

Function SetAgeDirOverride

internal/config/encryption.go:37–42  ·  view source on GitHub ↗

SetAgeDirOverride sets the directory used for storing age identity and recipient files. Provide an empty string to reset to the default config directory.

(dir string)

Source from the content-addressed store, hash-verified

35// SetAgeDirOverride sets the directory used for storing age identity and recipient files.
36// Provide an empty string to reset to the default config directory.
37func SetAgeDirOverride(dir string) {
38 trimmed := strings.TrimSpace(dir)
39 ageDirOverrideMu.Lock()
40 ageDirOverride = trimmed
41 ageDirOverrideMu.Unlock()
42}
43
44func getAgeDir() string {
45 ageDirOverrideMu.RLock()

Callers 7

BootstrapFunction · 0.92
applyFlagsToConfigFunction · 0.92
TestSetAgeDirOverrideFunction · 0.85
NewConfigFunction · 0.85
MergeWithFileMethod · 0.85
SetDefaultsMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestSetAgeDirOverrideFunction · 0.68