MCPcopy
hub / github.com/perkeep/perkeep / PerkeepConfigDir

Function PerkeepConfigDir

internal/osutil/paths.go:162–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160var configDirFuncs []func() string
161
162func PerkeepConfigDir() (string, error) {
163 if p := os.Getenv("CAMLI_CONFIG_DIR"); p != "" {
164 return p, nil
165 }
166 for _, f := range configDirFuncs {
167 if v := f(); v != "" {
168 return v, nil
169 }
170 }
171
172 failInTests()
173 return perkeepConfigDir()
174}
175
176func perkeepConfigDir() (string, error) {
177 oldName := configDirNamed("camlistore")

Callers 11

GetAPIKeyPathFunction · 0.92
GetAPIKeyFunction · 0.92
env.goFile · 0.92
loadConfigFunction · 0.92
UserServerConfigPathFunction · 0.85
UserClientConfigPathFunction · 0.85
identitySecretRingFunction · 0.85
DefaultTLSCertFunction · 0.85
DefaultTLSKeyFunction · 0.85
DefaultLetsEncryptCacheFunction · 0.85
NewJSONConfigParserFunction · 0.85

Calls 3

failInTestsFunction · 0.85
perkeepConfigDirFunction · 0.85
fFunction · 0.50

Tested by

no test coverage detected